Skip to content

Instantly share code, notes, and snippets.

@jarpy
Last active August 29, 2015 14:18
Show Gist options
  • Save jarpy/75f1ada8eee09873a423 to your computer and use it in GitHub Desktop.
Save jarpy/75f1ada8eee09873a423 to your computer and use it in GitHub Desktop.
Enviroment variables in Puppet Exec.
$secret = 'SESAME'
exec {'read_secret_variable':
command => '/bin/echo $ENVSECRET > /tmp/secret',
environment => "ENVSECRET=$secret"
}
# $ cat /tmp/secret
# SESAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment