Skip to content

Instantly share code, notes, and snippets.

@martiell
Created March 14, 2012 14:14
Show Gist options
  • Save martiell/2036744 to your computer and use it in GitHub Desktop.
Save martiell/2036744 to your computer and use it in GitHub Desktop.
Vagrant/Puppet example from dcarley
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "site.pp"
puppet.modules_path = "modules"
end
.
├── manifests
│ └── site.pp
├── modules
│ └── foo
│ ├── files
│ │ └── bar
│ └── manifests
│ └── init.pp
└── Vagrantfile
$ cat manifests/site.pp
include foo
$ cat modules/foo/manifests/init.pp
class foo {
file { "/tmp/bar":
source => "puppet:///modules/foo/bar",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment