Created
April 25, 2013 19:29
-
-
Save supercow/5462441 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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