master TOC | chapter TOC | support

appendix A: delegation helper files

These two files were briefly mentioned in the delegation setup.

(A1) conf/host-product-map.conf has the following contents:

# For each host foo, there will be one line:
#   @foo    =   foo/..*
# line (for local repos for the host).

# For each product bar whose master is a host foo, there will be one line:
#   @foo    =   bar/..*
# to add bar/..* to the allowed patterns when subconf "foo" is in effect

# ------------------------------------------------------------------------------
# so for our example:

@sam        =   sam/..*
@sam        =   p1/..*

@frodo      =   frodo/..*

(A2) conf/NAME-restrictions.conf has the following contents:

# For each host foo, there will be two lines:
#   RW                          =   username-of-foo-host-admin
#   RW  NAME/conf/master/foo/   =   username-of-foo-host-admin
#           IMPORTANT: DO NOT MISS THE TRAILING SLASH IN THE LINE ABOVE!

# ------------------------------------------------------------------------------

repo gitolite-admin     # this line is required

    RW                          =   sam-admin
    RW  NAME/conf/master/sam/   =   sam-admin

    RW                          =   frodo-admin
    RW  NAME/conf/master/frodo/ =   frodo-admin