Self-training on puppet and wrote the following manifest:
class bratch::test {
file { '/var/cache/tempFile':
owner => 'root',
group => 'root',
mode => '0644',
source => "http://puppet${puppetserver}/modules/bratch/tempFile"
}
exec { "create_file":
command => "/bin/echo boop >> /tmp/outputFile",
}
Works how I expected it but didn't really think about that exec line until after the fact.
If puppet understood the output redirection does that mean it invokes a shell? If so, where does it’s environment come from? Does it initialize the environment each time or does it inherit directly from the puppet agent?
Aucun commentaire:
Enregistrer un commentaire