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', |
+ } |
} |
} |
+ |