modules/apt/manifests/init.pp
1 2 3 4 5 6 7 8 9 10 11 |
{ exec {"apt-get-update": command => "/usr/bin/apt-get update", } exec {"apt-key": command => "/usr/bin/wget -q http://apt.example.com/apt/keys/default.pub.gpg -O -|/usr/bin/apt-key add -", unless => "/usr/bin/apt-key list|/bin/grep -c 458F2AD9", } } |
manifests/site.pp
1 2 3 4 5 |
Package { provider => "apt", } import "nodes/*" |
nodes/a.pp
1 2 3 4 5 6 |
|

