Skip to content

Instantly share code, notes, and snippets.

@skuro
Created April 20, 2012 11:47
Show Gist options
  • Save skuro/2427977 to your computer and use it in GitHub Desktop.
Save skuro/2427977 to your computer and use it in GitHub Desktop.
Vagrant baby steps
class motd {
group { "puppet" :
ensure => "present"
}
File {
'/etc/motd':
mode => 444,
content => "Welcome to your Vagrant-built virtual machine!\nManaged by Puppet.\n"
}
}
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.provision :puppet
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