1
0
mirror of https://github.com/jordansissel/fpm synced 2024-12-21 00:24:13 +01:00
fpm/test/vagrant.pp
2015-10-10 12:31:43 -06:00

33 lines
654 B
Puppet

case $operatingsystem {
centos, redhat, fedora: {
$pkgupdate = "yum clean all"
$devsuffix = "-devel"
}
debian, ubuntu: {
$pkgupdate = "apt-get update"
$devsuffix = "-dev"
package {
"lintian": ensure => latest
}
}
Archlinux: {
$pkgupdate = "pacman -Syu --noconfirm --needed"
$devsuffix = "dev"
}
}
exec {
"update-packages":
command => $pkgupdate,
path => [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ],
timeout => 14400
}
package {
"git": ensure => latest;
"bundler": provider => "gem", ensure => latest;
"ruby$devsuffix": ensure => latest;
}
Exec["update-packages"] -> Package <| |>