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

Unified Diff: modules/geoip/manifests/init.pp

Issue 29377772: Issue 134 - Add condition in precise for geoip-database (Closed)
Patch Set: Created March 1, 2017, 8:22 p.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/geoip/manifests/init.pp
===================================================================
--- a/modules/geoip/manifests/init.pp
+++ b/modules/geoip/manifests/init.pp
@@ -49,19 +49,22 @@
},
})
- create_resources('cron', {geoip => $cron}, {
- command => $hook ? {undef => $script, default => "$script && $hook"},
- ensure => $ensure ? {/^(absent|purged)$/ => 'absent', default => 'present'},
- hour => 0,
- minute => 0,
- user => 'root',
- })
+ if $::lsbdistcodename == 'precise' {
+ create_resources('cron', {geoip => $cron}, {
+ command => $hook ? {undef => $script, default => "$script && $hook"},
+ ensure => $ensure ? {/^(absent|purged)$/ => 'absent', default => 'present'},
+ hour => 0,
+ minute => 0,
+ user => 'root',
+ })
- file {$script:
- before => Cron['geoip'],
- ensure => $ensure ? {/^(absent|purged)$/ => 'absent', default => 'present'},
- mode => 0755,
- require => Package[$packages],
- source => 'puppet:///modules/geoip/update.py',
+ file {$script:
+ before => Cron['geoip'],
+ ensure => $ensure ? {/^(absent|purged)$/ => 'absent', default => 'present'},
+ mode => 0755,
+ require => Package[$packages],
+ source => 'puppet:///modules/geoip/update.py',
+ }
}
}
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld