Permalink
Browse files

Test puppet support

  • Loading branch information...
1 parent 275f77c commit 808641ff7cf3c231a09a3d1818deff5e6bae4f13 @cal committed Apr 21, 2012
Showing with 21 additions and 0 deletions.
  1. +3 −0 test/Vagrantfile
  2. +18 −0 test/manifests/default.pp
View
@@ -1,4 +1,7 @@
Vagrant::Config.run do |config|
# Setup the box
config.vm.box = "ubuntu-precise-64"
+
+ # Enable the Puppet provisioner
+ config.vm.provision :puppet
end
View
@@ -0,0 +1,18 @@
+# Basic Puppet Apache manifest
+
+class apache {
+ exec { 'apt-get update':
+ command => '/usr/bin/apt-get update'
+ }
+
+ package { "apache2":
+ ensure => present,
+ }
+
+ service { "apache2":
+ ensure => running,
+ require => Package["apache2"],
+ }
+}
+
+include apache

0 comments on commit 808641f

Please sign in to comment.