Allow for python-daemon already defined

log_processor class may be applied to a server along with
other classes also declaring python-daemon as a dependency.

As puppet cannmot handle this, add a if defined check.

Change-Id: I40dc68bd93f113912373cb10b376819d30eb3087
This commit is contained in:
Andrea Frittoli (andreaf) 2016-01-13 15:28:21 +00:00
parent d7d9d50ee2
commit 08274f5f35
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,10 @@
#
class log_processor (
) {
package { 'python-daemon':
ensure => present,
if ! defined(Package['python-daemon']) {
package { 'python-daemon':
ensure => present,
}
}
package { 'python-zmq':