FAQ
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 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