minion defaults to saltenv base

323 katselukertaa
Siirry ensimmäiseen lukemattomaan viestiin

Brian Glogower

lukematon,
23.8.2016 klo 23.26.1823.8.2016
vastaanottaja Salt-users
Hi,

I am trying to get salt running with one master and a test minion. I have used bootstrap_salt.sh to install 2016.3.2 on both servers. The master is using gitfs with two branches, master (base) and stage. The problem that I am seeing is that running salt-call from the minion or salt from the master in debug/trace mode reveals that saltenv is being set to base and the minion never bothers to look at the stage environment in the top file. This causes 'No Top file or external nodes data matches found.', since I am filter targets with help from grains, causing the minion to not match any of the targets in the base environment specified in top.sls.

I know you can specify saltenv on the cli for both salt-call and salt or set environment in the minion's config, but from what I have read, that is not best practice (I believe):
Am I missing something?

Thanks,
Brian

Brian Glogower

lukematon,
24.8.2016 klo 2.41.1424.8.2016
vastaanottaja Salt-users
Vastaa kaikille
Vastaa kirjoittajalle
Välitä
0 uutta viestiä