On Tue, Dec 25, 2012 at 8:16 PM, Andrey Ageyev <a.ageyev@gmail.com>
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.