File: init.pp

package info (click to toggle)
python-hpilo 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 988 kB
  • sloc: python: 2,528; ruby: 467; makefile: 119
file content (20 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class ilo::proxy($devices) {
    package{['ruby-json', 'python-hpilo']:
        ensure => latest,
    }
    concat{"/etc/puppet/device.conf":
        ensure => present,
        mode   => 400,
        owner  => root,
        group  => root,
    }
    device{$devices:}

    define device() {
        concat::fragment{"ilo-device-$name":
            target => "/etc/puppet/device.conf",
            content => template("ilo/ilo-device.erb")
        }
    }
}