Last active
December 11, 2015 11:38
-
-
Save kerin/4594819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
include "svn" | |
include "git" | |
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