Skip to content

Commit 6664974

Browse files
committed
Make the base-devel package for Arch idempotent
1 parent 98187fe commit 6664974

File tree

1 file changed

+3
-2
lines changed
  • modules/build_essential/manifests

1 file changed

+3
-2
lines changed

modules/build_essential/manifests/init.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
class build_essential {
66
case $operatingsystem {
77
'Archlinux': {
8-
package { "base-devel":
9-
ensure => installed,
8+
exec { "pacman-base-devel":
9+
command => "pacman --noconfirm --noprogressbar -Sy base-devel",
10+
unless => "pacman -Qg base-devel",
1011
}
1112
}
1213

0 commit comments

Comments
 (0)