Skip to content

Instantly share code, notes, and snippets.

@supercow
Created April 25, 2013 19:29
Show Gist options
  • Save supercow/5462441 to your computer and use it in GitHub Desktop.
Save supercow/5462441 to your computer and use it in GitHub Desktop.
notice: /Stage[main]//File[/tmp/${::uptime_seconds}]/ensure: created
err: /Stage[main]//Service[fail_on_refresh]: Failed to call refresh: Could not restart Service[fail_on_refresh]: Execution of '/bin/false' returned 1: at /root/service.pp:12
notice: /Stage[main]//File[/tmp/doesnt_exist]/ensure: created
notice: Finished catalog run in 0.07 seconds
file { '/tmp/${::uptime_seconds}':
ensure => present,
notify => Service['fail_on_refresh'],
}
service { 'fail_on_refresh':
ensure => running,
start => '/bin/true',
stop => '/bin/true',
status => '/bin/true',
restart => '/bin/false',
}
file { '/tmp/doesnt_exist':
ensure => present,
require => Service['fail_on_refresh'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment