FAQ

On Tue, Dec 25, 2012 at 8:16 PM, Andrey Ageyev wrote:
Hi,

sorry for stupid question, but how I can specify package depends on class
with parameters?

class nginx::install (
$nginx = "nginx-light",
$ensure = 'installed'
) {
include nginx::service

package { $nginx :
ensure => $ensure,
notify => Class["nginx::service"],
}
}
Must depend on:
apt::ppa { "ppa:nginx/stable": }

How to correctly specify this inside class "nginx::install"?
Unless I've misunderstood your question, wouldn't a
simple dependency of the following kind work?
require => Apt::Ppa[ "ppa:nginx/stable" ]

Thanks,
Roman.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedDec 26, '12 at 4:16a
activeDec 26, '12 at 8:50p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Roman Shaposhnik: 1 post Andrey Ageyev: 1 post

People

Translate

site design / logo © 2022 Grokbase