- if $::hostname in [lobos,villa] {
- concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli':
- target => '/etc/cron.d/dsa-puppet-stuff',
- order => '020',
- content => @(EOF)
- 27 */2 * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli --no-battery
- | EOF
- }
- } else {
- concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli':
- target => '/etc/cron.d/dsa-puppet-stuff',
- order => '020',
- content => @(EOF)
- 27 */2 * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli
- | EOF
- }
+ $cmd = $hostname ? {
+ 'lobos' => 'dsa-check-hpssacli --no-battery',
+ 'villa' => 'dsa-check-hpssacli --no-battery',
+ default => 'dsa-check-hpssacli'
+ }
+
+ concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli':
+ target => '/etc/cron.d/dsa-puppet-stuff',
+ order => '020',
+ content => @("EOF")
+ 27 */2 * * * root sleep $(( RANDOM \% 900 )); dsa-wrap-nagios-check ${cmd}
+ | EOF