-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
vagrant.pp
32 lines (29 loc) · 654 Bytes
/
vagrant.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 <| |>