Given that the following is config'd in my Vagrantfile:
puppet.facter = {
'variableOne' => 'one',
'variableTwo' => 'two'
}
... and the following is in the manifest:
notify{ "Got here with ${variableOne} and ${variableTwo}":}
When I run vagrant up
(or vagrant provision
if it's already up) I see the following line in the output:
==> default: Notice: Got here with and
and when I add --debug
to the vagrant command, I also see this in the output:
==> default: Running Puppet with default.pp...
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: FACTER_variableOne='one' FACTER_variableTwo='two' puppet apply --verbose --debug --manifestdir /tmp/vagrant-puppet-3/manifests --detailed-exitcodes /tmp/vagrant-puppet-3/manifests/default.pp (sudo=true)
Why aren't the variables getting populated in the manifest?
Example repo to reproduce: https://github.com/ericsmalling/vagrantpuppet