Permalink
Browse files

Added update-apt step to puppet manifest

  • Loading branch information...
1 parent 8465b92 commit bd2e3dbaee30caf4e6f373c36001f3e17f948465 @mikedamage mikedamage committed Feb 14, 2013
Showing with 12 additions and 3 deletions.
  1. +12 −3 manifests/base.pp
View
@@ -1,13 +1,22 @@
#= Main Puppet Manifest
+# Update Apt Repo
+exec {"update-apt":
+ command => "apt-get update",
+ cwd => "/",
+ path => ["/usr/bin", "/usr/local/bin", "/bin", "/usr/local/sbin", "/usr/sbin", "/sbin"],
+}
+
# Install cURL
package {"curl":
- ensure => present
+ ensure => present,
+ require => Exec["update-apt"],
}
# Install MySQL Client Libraries
package {"libmysqlclient-dev":
- ensure => present
+ ensure => present,
+ require => Exec["update-apt"],
}
# Download WordPress
@@ -50,6 +59,6 @@
exec {"setup_mysql":
command => "echo 'create database wordpress_dev;' | mysql --user=root --password=root",
path => ["/usr/bin", "/usr/local/bin", "/bin", "/usr/local/sbin", "/usr/sbin", "/sbin"],
- unless => "echo 'show databases' | mysql --user=root --password=k2130k | grep alteredimage",
+ unless => "echo 'show databases' | mysql --user=root --password=k2130k | grep wordpress_dev",
}

0 comments on commit bd2e3db

Please sign in to comment.