shha
shha

Reputation: 321

Puppet - install module through other module manifest

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

Answers (1)

Sergiu
Sergiu

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

Related Questions