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
| package { 'A': | |
| ensure => $version, | |
| } | |
| if $::package_a_version != $version { | |
| exec { 'do something reasonable': | |
| subscribe => Package['A'], | |
| notify => Resource['the_next_thing'], | |
| } | |
| } |
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
| use console_inventory_service; | |
| select r.restype 'Resource',r.title 'Title',h.name 'Exporting Host' | |
| from resources as r | |
| left join hosts as h on h.id = r.host_id | |
| where r.exported=1 |
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
| # /etc/puppetlabs/puppet/users/init.pp | |
| class users { | |
| $users_list = hiera('users::users_list') | |
| users::user { $users_list: } | |
| } |
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 "1 imported" | |
| import "2.pp" |
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
| Debug: Received report to process from util.fusion.local | |
| Debug: Processing report from util.fusion.local with processor Puppet::Reports::Fail | |
| Error: Report processor failed: Oh crap. | |
| Debug: Processing report from util.fusion.local with processor Puppet::Reports::Store |
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
| $rules = ["RewriteRule ^(/sub2/.*) /www/${::domain}\$1"] | |
| apache::vhost { 'blah': | |
| rewrite_rules => $rules, | |
| } |
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]/Copyfile/File[/etc/file.txt]/content: content changed '{md5}b35da899f493edca60224127f8cd5e9b' to '{md5}49e500f80eaf8cda0b48d1be009ad080' | |
| notice: Finished catalog run in 0.45 seconds | |
| All your catalog are belong to Craig | |
| notice: /Stage[main]/Copyfile/File[/etc/file.txt]/content: content changed '{md5}47dbe29533f7223b9e66fb585ad494c8' to '{md5}49e500f80eaf8cda0b48d1be009ad080' | |
| notice: Finished catalog run in 0.45 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
| [root@james modules]# cat /tmp/one /tmp/two | |
| three | |
| three |
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 { | |
| ensure => file, | |
| } | |
| file { '/tmp/link': | |
| target => '/tmp/target', | |
| } |
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
| # in /etc/puppet/hieradata/ | |
| --- | |
| someclass::setting1: 'blah' | |
| someclass::another_setting: 1234 | |
| someclass::array_setting: | |
| - 'oneval' | |
| - 'twoval' | |
| - 'redval' | |
| - 'blueval' |