Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/manifests/puppet/master.pp

Issue 29370632: NoIssue - Refactor ensure_*state functions (Closed)
Patch Set: Created Jan. 3, 2017, 2:25 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/puppet/agent.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/puppet/master.pp
===================================================================
--- a/modules/adblockplus/manifests/puppet/master.pp
+++ b/modules/adblockplus/manifests/puppet/master.pp
@@ -39,7 +39,7 @@
}, $package))
# https://forge.puppet.com/puppetlabs/stdlib#getparam
- if getparam(Package['puppet'], 'ensure') !~ /^(absent|purged)$/ {
+ if ensure_state(Package['puppetmaster']) {
ensure_resource('service', 'puppetmaster', merge({
'ensure' => 'running',
« no previous file with comments | « modules/adblockplus/manifests/puppet/agent.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld