Created
June 24, 2010 19:29
-
-
Save eric/451853 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
| exec { 'first': | |
| command => '/usr/bin/true', | |
| unless => '/bin/test -f ./mark.txt' | |
| } | |
| exec { 'second': | |
| command => '/usr/bin/false', | |
| subscribe => Exec['first'], | |
| refreshonly => true | |
| } | |
| exec { 'third': | |
| command => '/usr/bin/true', | |
| subscribe => Exec['second'], | |
| refreshonly => true | |
| } | |
| file { 'mark': | |
| path => '/Users/eric/mark.txt', | |
| content => 'success', | |
| subscribe => Exec['third'], | |
| } |
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
| > puppet --debug chaining.pp | |
| debug: Creating default schedules | |
| debug: Failed to load library 'ldap' for feature 'ldap' | |
| debug: Failed to load library 'shadow' for feature 'libshadow' | |
| debug: Finishing transaction 2174832960 with 0 changes | |
| debug: //Exec[second]/subscribe: subscribes to Exec[first] | |
| debug: //Exec[third]/subscribe: subscribes to Exec[second] | |
| debug: //File[mark]/subscribe: subscribes to Exec[third] | |
| debug: //Exec[first]: Executing check '/bin/test -f ./mark.txt' | |
| debug: Executing '/bin/test -f ./mark.txt' | |
| debug: //Exec[first]: Changing returns | |
| debug: //Exec[first]: 1 change(s) | |
| debug: //Exec[first]: Executing '/usr/bin/true' | |
| debug: Executing '/usr/bin/true' | |
| notice: //Exec[first]/returns: executed successfully | |
| info: //Exec[first]: Scheduling refresh of Exec[second] | |
| notice: //Exec[second]: Triggering 'refresh' from 1 dependencies | |
| debug: //Exec[second]: Executing '/usr/bin/false' | |
| debug: Executing '/usr/bin/false' | |
| err: //Exec[second]: Failed to call refresh on Exec[second]: /usr/bin/false returned 1 instead of 0 at /Users/eric/chaining.pp:10 | |
| info: //Exec[second]: Scheduling refresh of Exec[third] | |
| notice: //Exec[third]: Triggering 'refresh' from 1 dependencies | |
| debug: //Exec[third]: Executing '/usr/bin/true' | |
| debug: Executing '/usr/bin/true' | |
| debug: //File[mark]: File does not exist | |
| debug: //File[mark]/checksum: Initializing checksum hash | |
| debug: //File[mark]: Changing content | |
| debug: //File[mark]: 1 change(s) | |
| debug: //File[mark]: Creating checksum {md5}260ca9dd8a4577fc00b7bd5810298076 | |
| notice: //File[mark]/content: defined 'content' as '{md5}260ca9dd8a4577fc00b7bd5810298076' | |
| debug: Finishing transaction 2175655800 with 2 changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment