Reputation: 321
I'd like to use vcsrepo module in my puppet module manifest. So I need to install puppetlabs/vcsrepo.
Is it possible to avoid installing it manualy by command
sudo puppet install puppetlabs-vcsrepo
?
I've tried to use somethink like this in my init.pp file
module { 'puppetlabs/vcsrepo':
ensure => installed,
}
but it doesn't work :(
Upvotes: 1
Views: 169
Reputation: 3185
The best way to use that module would be to add it to your metadata.json file as explained here: https://docs.puppetlabs.com/guides/style_guide.html#module-metadata
Once you've done so the module requested, in your case puppetlabs/vcsrepo will be installed.
Upvotes: 1