Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit dc8dbe4

Browse files
committed
Requires apt update before installing initial packages
1 parent 1090dc8 commit dc8dbe4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

puppet/manifests/default.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22
ensure => "present",
33
}
44

5+
exec { "apt-update" :
6+
command => "/usr/bin/apt-get update"
7+
}
8+
59
# install vim and all packages required to build PHP
610
$packages = [ "vim", "curl", "libxpm-dev", "libmcrypt-dev", "libbz2-dev", "libcurl4-gnutls-dev", "libjpeg62-dev", "libpng12-dev", "libfreetype6-dev", "libt1-dev", "libgmp3-dev", "libmysqlclient-dev", "libpq-dev", "libpcre3-dev", "libxml2-dev", "libxslt-dev", "make"]
711

812
package { $packages :
913
ensure => installed,
14+
require => Exec["apt-update"],
1015
}
1116

1217
# Update .bashrc

0 commit comments

Comments
 (0)