Skip to content

Commit

Permalink
testing with chef
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Racine committed Mar 23, 2012
1 parent 3c8e4d8 commit 4f595f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Expand Up @@ -2,6 +2,7 @@ Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
config.vm.boot_mode = :gui
config.vm.forward_port 80, 4567

# Enable the Puppet provisioner
config.vm.provision :puppet
Expand Down
11 changes: 10 additions & 1 deletion manifests/default.pp
Expand Up @@ -3,6 +3,7 @@
group { "puppet":
ensure => "present",
}

class apache {
exec { 'apt-get update':
command => '/usr/bin/apt-get update'
Expand All @@ -15,6 +16,14 @@
require => Package["apache2"],
}
}

include apache

notify { "This message is getting logged on the agent node.": }

notify { "Mac warning":
message => $operatingsystem ? {
'Darwin' => "This seems to be a Mac.",
default => "And I'm a PC.",
},
}

6 changes: 3 additions & 3 deletions readme.md
@@ -1,6 +1,6 @@
# Creating a GenCompare Virtual Machine #

You will need to have Ruby and gems installed installed on the host machine.
You will need to have Ruby, Gems and VirtualBox 4.0.x or 4.1.x installed installed on the host machine.
I don't address that here though. Once those are in place install vagrant.

~~~
Expand Down Expand Up @@ -37,10 +37,10 @@ vagrant@lucid32:~$ sudo dpkg --configure -a
vagrant@lucid32:~$ exit
~~~

Now, you should be able to reload the machine be off
Now, you should be able to reload the machine be off:

~~~
$ vagrant up
$ vagrant reload
~~~


Expand Down

0 comments on commit 4f595f2

Please sign in to comment.