OLD | NEW |
1 # == Class: adblockplus | 1 # == Class: adblockplus |
2 # | 2 # |
3 # The adblockplus class and the associated adblockplus:: namespace are | 3 # The adblockplus class and the associated adblockplus:: namespace are |
4 # used to integrate Puppet modules with each other, in order to assemble | 4 # used to integrate Puppet modules with each other, in order to assemble |
5 # the setups used by the Adblock Plus project. | 5 # the setups used by the Adblock Plus project. |
6 # | 6 # |
7 # === Parameters: | 7 # === Parameters: |
8 # | 8 # |
9 # [*authority*] | 9 # [*authority*] |
10 # The authorative domain or zone associated with the current environment. | 10 # The authorative domain or zone associated with the current environment. |
11 # | 11 # |
12 # [*hosts*] | 12 # [*hosts*] |
13 # A hash of adblockplus::host $name => $parameter items to set up in this | 13 # A hash of adblockplus::host $name => $parameter items to set up in this |
14 # context, i.e. via Hiera. | 14 # context, i.e. via Hiera. |
15 # | 15 # |
16 # [*users*] | 16 # [*users*] |
17 # A hash of adblockplus::user $name => $parameter items to set up in this | 17 # A hash of adblockplus::user $name => $parameter items to set up in this |
18 # context, i.e. via Hiera. | 18 # context, i.e. via Hiera. |
19 # | 19 # |
20 # [*packages*] | 20 # [*packages*] |
21 # An array of adblockplus::packages items to set up in this context, | 21 # An array of adblockplus::packages items to set up in this context, |
22 # via Hiera, exclusively. | 22 # via Hiera, exclusively. |
23 # | 23 # |
| 24 # [*services*] |
| 25 # A hiera_hash() of zero or more service items used as 2nd parameter for |
| 26 # the ensure_resources('service', ...) function. |
| 27 # |
24 # === Examples: | 28 # === Examples: |
25 # | 29 # |
26 # class {'adblockplus': | 30 # class {'adblockplus': |
27 # hosts => { | 31 # hosts => { |
28 # 'node1' => { | 32 # 'node1' => { |
29 # # see adblockplus::host | 33 # # see adblockplus::host |
30 # }, | 34 # }, |
31 # }, | 35 # }, |
32 # users => { | 36 # users => { |
33 # 'pinocchio' => { | 37 # 'pinocchio' => { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 142 |
139 # See modules/adblockplus/manifests/host.pp | 143 # See modules/adblockplus/manifests/host.pp |
140 create_resources('adblockplus::host', $hosts) | 144 create_resources('adblockplus::host', $hosts) |
141 | 145 |
142 # See modules/adblockplus/manifests/user.pp | 146 # See modules/adblockplus/manifests/user.pp |
143 create_resources('adblockplus::user', $users) | 147 create_resources('adblockplus::user', $users) |
144 | 148 |
145 # modules/adblockplus/manifests/sudoers.pp | 149 # modules/adblockplus/manifests/sudoers.pp |
146 $sudoers = hiera_hash('adblockplus::sudoers', {}) | 150 $sudoers = hiera_hash('adblockplus::sudoers', {}) |
147 create_resources('adblockplus::sudoers', $sudoers) | 151 create_resources('adblockplus::sudoers', $sudoers) |
| 152 |
| 153 # https://puppet.com/docs/puppet/latest/types/service.html |
| 154 $services = hiera_hash('adblockplus::services', {}) |
| 155 create_resources('service', $services) |
148 } | 156 } |
OLD | NEW |