Re: [Puppet Users] How to specify dependency

2012-12-26 Thread Roman Shaposhnik
On Tue, Dec 25, 2012 at 8:16 PM, Andrey Ageyev a.age...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] How to specify dependency

2012-12-25 Thread Andrey Ageyev
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?

Thanks.

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