Created
May 5, 2012 20:14
-
-
Save nanliu/2605292 to your computer and use it in GitHub Desktop.
file resource purge.
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
define mytype { | |
# resource type that I don't want file to purge: | |
# vhost { $name: ... } | |
file { "/tmp/www/${name}": | |
} | |
} | |
file { '/tmp/www': | |
ensure => directory, | |
purge => true, | |
} | |
# puppet won't touch the file /tmp/www/site_a or /tmp/www/site_b | |
mytype { 'site_a': | |
} | |
mytype { 'site_b': | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment