Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Gists for my series of Vagran/Puppet articles on theantichris.com
include nginx
exec {
'update-package-list':
command => 'sudo apt-get update',
}
class nginx {
}
package {
'nginx':
ensure => present,
require => Exec[' update-package-list'],
}
service {
'nginx':
ensure => running,
require => Package['nginx'],
}
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = 'puppet/modules'
puppet.manifest_file = 'init.pp'
end
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.56.107"
config.vm.hostname = "puppet"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment