Skip to content

Instantly share code, notes, and snippets.

@bradwright
Forked from kerin/gist:4594819
Created January 22, 2013 14:04
Show Gist options
  • Save bradwright/4594874 to your computer and use it in GitHub Desktop.
Save bradwright/4594874 to your computer and use it in GitHub Desktop.
Vagrantfile:
Vagrant::Config.run do |config|
config.vm.define :web do |web_config|
web_config.vm.provision :puppet, :options => "--verbose --debug" do |web_puppet|
web_puppet.module_path = "puppet/modules"
web_puppet.manifests_path = "puppet/manifests"
web_puppet.manifest_file = "web.pp"
end
end
end
puppet/manifests/web.pp:
include "python-essential"
puppet/modules/python-essential/manifests/init.pp:
class python-essential {
class["git"] ->
class["svn"] ->
Class["python-essential"]
package { "python-dev":
ensure => present,
}
package { "python-pip":
ensure => present,
}
}
puppet/modules/git/manifests/init.pp:
class git {
package { "git-core":
ensure => present,
}
}
puppet/modules/svn/manifests/init.pp:
class svn {
package { "subversion":
ensure => present,
}
}
$ vagrant provision web
[web] Running provisioner: Vagrant::Provisioners::Puppet...
[web] Running Puppet with /tmp/vagrant-puppet/manifests/web.pp...
stdin: is not a tty
warning: Could not retrieve fact fqdn
debug: importing '/tmp/vagrant-puppet/modules-0/python-essential/manifests/init.pp' in environment production
debug: Automatically imported python-essential from python-essential into production
debug: importing '/tmp/vagrant-puppet/modules-0/git/manifests/init.pp' in environment production
debug: Automatically imported git from git into production
debug: importing '/tmp/vagrant-puppet/modules-0/svn/manifests/init.pp' in environment production
debug: Automatically imported svn from svn into production
Could not find resource 'Class[Git]' for relationship from 'Class[Python-essential]' on node precise32
The following SSH command responded with a non-zero exit status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment