I'm seeing this with vagrant-salt == 0.4.0, salt == 0.16.3, and vagrant == 1.2.7.
I'm new here, so it's possible I'm misunderstanding something pretty basic about how pillar data is exposed, or when it should be available. But this does seem like a bug at the moment.
To reproduce:
In your Vagrantfile:
config.vm.provision :salt do |salt|
salt.minion_config = "salt/minion"
salt.verbose = true
salt.pillar({"key" => "value"})
salt.run_highstate = true
end
In some init.sls file:
{% for pillar_key in pillar.keys() %}
do-pillar-{{ pillar_key }}:
cmd.run:
- name: echo {{ pillar_key }}
{% endfor %}
Now run vagrant provision. You should see output for every available pillar key.
Expected result:
The key key is present in pillar
Actual result:
The key key is not present in pillar. (I only see one key, called master.)
Since this is annoying to reproduce, I've created a repository that should just reproduce it directly. git clone https://github.com/davepeck/salty-vagrant-pillar-question and then vagrant up.
I'm seeing this with
vagrant-salt == 0.4.0,salt == 0.16.3, andvagrant == 1.2.7.I'm new here, so it's possible I'm misunderstanding something pretty basic about how pillar data is exposed, or when it should be available. But this does seem like a bug at the moment.
To reproduce:
In your
Vagrantfile:In some
init.slsfile:Now run
vagrant provision. You should see output for every availablepillarkey.Expected result:
The
keykey is present inpillarActual result:
The
keykey is not present inpillar. (I only see one key, calledmaster.)Since this is annoying to reproduce, I've created a repository that should just reproduce it directly.
git clone https://github.com/davepeck/salty-vagrant-pillar-questionand thenvagrant up.