Created
January 27, 2012 22:38
-
-
Save donjohnson/1691339 to your computer and use it in GitHub Desktop.
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
$source = "puppet:///modules/sitefiles/ipmiserver/" | |
$conserver_files = ['/etc/conserver.cf', '/etc/conserver.passwd', '/etc/console.cf'] | |
file { $conserver_files: | |
source => "$source/$name", #<---would like to use $name here | |
ensure => present, | |
require => Package['conserver'], | |
} |
This is a better example, actually using a resource instead of just a function:
% puppet apply -e 'define foo () { notify { "foo": message => "$name, $title"; } } foo { "bar": ; }'
notice: bar, bar
notice: /Stage[main]//Foo[bar]/Notify[foo]/message: defined 'message' as 'bar, bar'
notice: Finished catalog run in 0.04 seconds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that was a bad example