examples/puppet/modules/ilo/manifests/init.pp
raw| 1 | class ilo::proxy($devices) { |
| 2 | package{['ruby-json', 'python-hpilo']: |
| 3 | ensure => latest, |
| 4 | } |
| 5 | concat{"/etc/puppet/device.conf": |
| 6 | ensure => present, |
| 7 | mode => 400, |
| 8 | owner => root, |
| 9 | group => root, |
| 10 | } |
| 11 | device{$devices:} |
| 12 | |
| 13 | define device() { |
| 14 | concat::fragment{"ilo-device-$name": |
| 15 | target => "/etc/puppet/device.conf", |
| 16 | content => template("ilo/ilo-device.erb") |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 |