Created
March 14, 2012 14:14
-
-
Save martiell/2036744 to your computer and use it in GitHub Desktop.
Vagrant/Puppet example from dcarley
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
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