Permalink
Browse files

Require apt-get update before attempting to install packages.

  • Loading branch information...
1 parent f949376 commit 0cc71113f441847c865a7e72a14b4a1bb4c0a244 @iandees iandees committed May 4, 2013
Showing with 25 additions and 2 deletions.
  1. +24 −1 manifests/base.pp
  2. +1 −1 seed.sh
View
@@ -21,95 +21,118 @@
exec { "/usr/bin/apt-get upgrade -y":
user => "root",
timeout => 3600,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "git-core":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "vim":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "postgresql-contrib":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "ruby":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "rdoc":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "ri":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libpq-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libxml2-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libxslt1-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "ruby-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "apache2-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "graphicsmagick-libmagick-dev-compat":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "build-essential":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libopenssl-ruby":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "subversion":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "apache2":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
-package { "postgresql":
+package { "postgresql-9.1":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libcurl4-openssl-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "expect":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "expect-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "libsasl2-dev":
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
package { "wget" :
ensure => installed,
+ require => [ Exec["/usr/bin/apt-get update -y"] ]
}
service { "apache2":
View
@@ -1,7 +1,7 @@
#!/bin/sh
# bootstrap
-sudo apt-get -y install git-core ruby
+sudo apt-get update && sudo apt-get -y install git-core ruby
git clone https://github.com/puppetlabs/puppet.git
wget http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-1.3.7.tgz
tar -xzvf rubygems-1.3.7.tgz

0 comments on commit 0cc7111

Please sign in to comment.