Answer the question
In order to leave comments, you need to log in
How to specify a file name?
Puppet guru, tell me plz, I faced such a dilemma:
Error 400 on SERVER: Files must be fully qualified at /etc/puppet/modules/ferm/manifests/extend.pp:6 on node slave.i-free.local
code:
define ferm::extend {
include ferm,
file { "/etc/ferm/ferm.d/${name}":
content => file( "puppet:///modules/ferm/${name}" )
}
}
node :
node 'slave.i-free.local' {
ferm::extend{"server": }
}
Google hasn't answered yet :(
Answer the question
In order to leave comments, you need to log in
Puppet
has files and there are templates. They must lie in clearly defined places.
Templates should be in modules/module_name/templates
Files should be in modules/module_name/files
That is, in your case. You need to create a modules/ferm/files folder , and create your ${name} file in it . That is, the full path to the modules/ferm/files/${name}
file.
You can use it like this:
file { "/etc/ferm/ferm.d/${name}":
source => "puppet:///modules/ferm/${name}"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question