Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #2270, support env variables in puppet apply run #6688

Closed
wants to merge 0 commits into from
Closed

fixes #2270, support env variables in puppet apply run #6688

wants to merge 0 commits into from

Conversation

Azulinho
Copy link
Contributor

for a config of:

   config.vm.provision :puppet do |puppet|
     puppet.environment_variables = { 'FOO' => 'BAR' }
   end

it provides 'FOO' in the same execution context as the puppet apply run:

\>VAGRANT_LOG=info bundle exec vagrant provision 2>&1 | grep 'puppet apply'
 INFO ssh: Execute: FOO='BAR'   puppet apply --color=false
 --detailed-exitcodes --manifestdir
 /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513
 /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513/default.pp

this should fix #2270

@sethvargo
Copy link
Contributor

Hi @Azulinho

Thank you for opening an PR. Unfortunately this will not merge cleanly and there appears to be other changes to the CFEngine provider as well. Could you please rebase and remove the unrelated changes or submit them in another PR? Thanks! 😄

@murphyj
Copy link

murphyj commented Apr 23, 2016

Any movement on this? Seems like the sort of thing you'd ideally want.

Is there a suggested workaround?

@Azulinho
Copy link
Contributor Author

not sure how the cfengine stuff had appeared there, probably branched out some random feature branch

dropped this PR in favour of:
#7252

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing Environment Variables through to Puppet Apply
3 participants