-
-
Save neotyk/2427987 to your computer and use it in GitHub Desktop.
Vagrant baby steps
This file contains hidden or 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
warning: Could not retrieve fact fqdn | |
Could not parse for environment production: Syntax error at '/etc/motd'; expected '}' at /tmp/vagrant-puppet/manifests/default.pp:12 on node lucid32 | |
The following SSH command responded with a non-zero exit status. | |
Vagrant assumes that this means the command failed! | |
cd /tmp/vagrant-puppet/manifests && puppet apply /tmp/vagrant-puppet/manifests/default.pp |
This file contains hidden or 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
class motd { | |
group { "puppet" : | |
ensure => "present" | |
} | |
File { | |
'/etc/motd': | |
mode => 444, | |
content => "Welcome to your Vagrant-built virtual machine!\nManaged by Puppet.\n" | |
} | |
} |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "lucid32" | |
config.vm.provision :puppet, :options => "--verbose --debug" | |
config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.manifest_file = "default.pp" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment