How to transfer a static file on client systems using puppet module?
Issue
- How to transfer a static file on client systems using puppet module?
- When ever we specify the content of a file comes from in the module, it gets this error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Files must be fully qualified at
/etc/puppet/environments/KT_Example_Library_SOE_RHEL6_6/modules/soe_sslcerts/manifests/cacerts.pp:21
on node client.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Here is the code snippet in question:
file { '/etc/pki/tls/certs/ca.pem':
ensure => 'file',
group => '0',
mode => '0644',
owner => '0',
content => file('soe_sslcerts/ca.pem'),
}
Environment
- Red Hat Satellite v.6
- Puppet
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.