Created
November 15, 2012 08:29
-
-
Save roidelapluie/4077387 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
'initial-config': | |
path => "${config_file}.bak", | |
source => "${config_file}", | |
replace => no, | |
} | |
exec { | |
'rm config': | |
command => "rm ${initial-config}", | |
subscribe => File['initial-config'], | |
refreshonly => true, | |
} | |
file { | |
"init_config": | |
path => "${config_file}", | |
require => Exec['rm config'], | |
replace => no, | |
content => template("${module_name}/foobar.erb") | |
} |
vStone
commented
Nov 15, 2012
There obviously is an error in what I wrote :) the require => Exec['THIS IS WRONG'] ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment