Skip to content

Instantly share code, notes, and snippets.

View supercow's full-sized avatar

James Sweeny supercow

View GitHub Profile
package { 'blah'
ensure => '1.2.3.4',
provider => 'gem',
}
file { 'long_ass_filename':
ensure => file,
path => '/var/www/some/really/freaking/long/path/name/do_you_want_to_repeat.html',
}
service { 'some_service':
ensure => running,
subscribe => File['long_ass_filename'],
}
@supercow
supercow / hiera.yaml
Created July 24, 2012 22:21
Defining vhosts in Hiera, assigining them with an ENC
---
:hieradata:
- vhosts/%{hostname}/%{vhost_name}
- vhosts/%{vhost_name}
- vhosts/common.yaml
- common.yaml
:backends:
- yaml
notify {'Should see this.': }
exec { '/bin/false':
refreshonly => true, # Does not work
# refreshonly => false, # Does work
subscribe => Notify['Should see this.'],
}
notify { 'Should not see this.':
require => Exec['/bin/false'],