LEFT | RIGHT |
1 # == Type: buildbot::slave | 1 # == Type: buildbot::slave |
2 # | 2 # |
3 # Manage Buildbot (http://buildbot.net/) slave instances. | 3 # Manage Buildbot (http://buildbot.net/) slave instances. |
4 # | 4 # |
5 # === Parameters: | 5 # === Parameters: |
6 # | 6 # |
7 # [*basedir*] | 7 # [*basedir*] |
8 # The base directory of the slave, which can be configured elsewhere or, | 8 # The base directory of the slave, which can be configured elsewhere or, |
9 # if it's anchestors are present, relied upon the builtin defaults. | 9 # if its ancestors are present, relied upon the builtin defaults. |
10 # | 10 # |
11 # [*ensure*] | 11 # [*ensure*] |
12 # Whether to setup the slave (anything but 'absent' or 'purged') or | 12 # Whether to set up the slave (anything but 'absent' or 'purged') or |
13 # remove the associated resources. Note that only 'purged' implies the | 13 # remove the associated resources. Note that only 'purged' implies the |
14 # removal of $basedir. | 14 # removal of $basedir. |
15 # | 15 # |
16 # [*master*] | 16 # [*master*] |
17 # The "$hostname:$port" combination of the build master. | 17 # The "$hostname:$port" combination of the build master. |
18 # | 18 # |
19 # [*name*] | 19 # [*name*] |
20 # The build slave's name. | 20 # The build slave's name. |
21 # | 21 # |
22 # [*password*] | 22 # [*password*] |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 Service['buildslave'] <~ Exec <|creates == "$basedir/buildbot.tac"|> | 101 Service['buildslave'] <~ Exec <|creates == "$basedir/buildbot.tac"|> |
102 | 102 |
103 Service['buildslave'] <~ File <|path == "$basedir"|> | 103 Service['buildslave'] <~ File <|path == "$basedir"|> |
104 Service['buildslave'] <~ File <|path == "$basedir/info/admin"|> | 104 Service['buildslave'] <~ File <|path == "$basedir/info/admin"|> |
105 } | 105 } |
106 | 106 |
107 if $ensure == 'purged' { | 107 if $ensure == 'purged' { |
108 file {$basedir: ensure => 'absent'} | 108 file {$basedir: ensure => 'absent'} |
109 } | 109 } |
110 } | 110 } |
LEFT | RIGHT |