File: init.pp

package info (click to toggle)
python-hpilo 4.4.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,784 kB
  • sloc: python: 3,418; ruby: 467; makefile: 122; sh: 31
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")
        }
    }
}