Created
March 16, 2012 09:06
-
-
Save jeroenr/2049233 to your computer and use it in GitHub Desktop.
Using puppet templates example
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 template from module 'elmar' | |
class repo-nonfree { | |
file { "/etc/apt/sources.list.d/non-free.list": | |
ensure => present, | |
content => $operatingsystem ? { | |
"ubuntu" => template("elmar/apt/sources.list.d/ubuntu-partner.list.erb"), | |
"debian" => template("elmar/apt/sources.list.d/non-free.list.erb"), | |
default => template("elmar/apt/sources.list.d/non-free.list.erb"), | |
}, | |
notify => Exec["aptgetupdate"], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment