Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How can I install a repo and then a package from that repo in one pass?

$
0
0
Hi folks, Using the apt module from forge: https://forge.puppetlabs.com/puppetlabs/apt I'm also using the openldap module from forge: https://forge.puppetlabs.com/camptocamp/openldap Which allows you to specify a specific openldap package. Trying to install a repo, then a package from that repo in a single pass: class profiles::my_package { class { 'apt': } ::apt::source { 'my_repo': location => 'my.url.com', } class { 'openldap::server': require => [Class['apt'], Class['apt::update'], Apt::Source['my_repo'] ], package => 'my_ldap_package', } } Note that this section: https://forge.puppetlabs.com/puppetlabs/apt#limitations States that you must require the repo in a class that uses the package if you want to install everything in one pass, but it looks like I have already done that. Note however that this works: package { 'my_ldap_package': require => [Class['apt::update'], Apt::Source['my_repo'] ], ensure => 'installed', } (replacing the `class { 'openldap::server': }` block) So...why doesn't the openldap module allow installation of packages in one pass the same way `package` does?

Viewing all articles
Browse latest Browse all 6104

Trending Articles