"Fossies" - the Fresh Open Source Software Archive

Member "icinga-web-1.14.1/etc/conf.d/access.xml.in" (19 Dec 2017, 3757 Bytes) of package /linux/misc/old/icinga-web-1.14.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "access.xml.in": 1.13.1_vs_1.14.0.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <ae:configurations xmlns="http://icinga.org/api/config/parts/access/1.0"
    3     xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0">
    4     <ae:configuration>
    5 
    6         <!-- Document resources 
    7 	    https://docs.icinga.com/latest/en/icinga-web-config.html#configweb-access -->
    8 
    9         <!-- Map your instances to hosts here -->
   10         <instances>
   11             <!-- For slave commands seperate hosts with ';' 
   12                     <instance name="default">localhost;host1;host15</instance> -->
   13             <instance name="@api_cmd_instance@">localhost</instance>
   14         </instances>
   15 
   16         <!-- Default settings that will be set if useDefaults is true -->
   17         <defaults>
   18             <access>
   19                 <readwrite>
   20                     <folders>
   21                         <resource name="icinga_objects">@icinga_objects_dir@</resource>
   22                     </folders>
   23                     <files>
   24                         <resource name="icinga_cfg">@icinga_cfg@</resource>
   25                     </files>
   26                 </readwrite>
   27                 <!-- allowed to be read from -->
   28                 <read>
   29                 </read>
   30                 <!-- allowed to be written to -->
   31                 <write>
   32                     <files>
   33                         <resource name="icinga_pipe">@api_cmd_file@</resource>
   34                     </files>
   35                 </write>
   36                 <!-- allowed to be executed -->
   37                 <execute>
   38                     <files>
   39                         <resource name="icinga_service">/etc/init.d/icinga</resource>
   40                         <resource name="icinga_bin">@icinga_bin@</resource>
   41                         <resource name="echo">/bin/echo</resource>
   42                         <resource name="printf">printf</resource>
   43                         <resource name="cp">/bin/cp</resource>
   44                         <resource name="ls">/bin/ls</resource>
   45                         <resource name="grep">/bin/grep</resource>
   46                     </files>
   47                 </execute>
   48             </access>
   49         </defaults>
   50 
   51 
   52         <!-- Hosts that can be accessed via the console interface -->
   53         <hosts>
   54             <host name="localhost">
   55                 <type>local</type>
   56                 <!-- Only allow access to these files, folders or executables -->
   57                 <access useDefaults="true">
   58                     <read>
   59                         <!-- <files> <resource name="test">test</resource> 
   60                             </files> -->
   61                     </read>
   62 
   63 
   64                 </access>
   65             </host>
   66 
   67             <!-- Example for ssh connection with user/password auth -->
   68             <!-- <host name="vm_host1"> <type>ssh</type> <ssh-config> <host>localhost</host> 
   69                 <port>22</port> <auth> <type>password</type> <user>testuser</user> <password>test</password> 
   70                 </auth> </ssh-config> <access useDefaults="true" /> </host> -->
   71 
   72             <!-- Example for Key based authentication. Only RSA keys are supported at the moment (DSA won't work)
   73             -->
   74             <!---
   75             <host name="localhost">
   76                 <type>ssh</type>
   77                 <ssh-config>
   78                     <host>debian.www</host>
   79                     <port>22</port>
   80                     <auth>
   81                         <type>key</type>
   82                         <user>icinga</user>   
   83                         <private-key>/usr/local/icinga-web/id_debian</private-key>
   84                         <password>test123</password>
   85                     </auth>
   86                 </ssh-config> 
   87                 
   88                 <access useDefaults="true" />
   89             </host>
   90             -->
   91         </hosts>
   92 
   93     </ae:configuration>
   94 </ae:configurations>