Skip to content

Instantly share code, notes, and snippets.

@TronPaul
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TronPaul/4df07b105e97d543d9a8 to your computer and use it in GitHub Desktop.
Save TronPaul/4df07b105e97d543d9a8 to your computer and use it in GitHub Desktop.
PIllar troubles v2015.8
gitfs_env_whitelist:
- base
- production
gitfs_remotes:
- https://github.com/TronPaul/unpro-salt.git
- https://github.com/TronPaul/sun-java-formula.git
- https://github.com/TronPaul/sensu-formula.git
- https://github.com/TronPaul/rabbitmq-formula.git
- https://github.com/saltstack-formulas/nfs-formula.git
- https://github.com/TronPaul/openvpn-formula.git
- https://github.com/TronPaul/openvpn-client-formula.git
- https://github.com/TronPaul/bind-formula.git
- https://github.com/saltstack-formulas/ntp-formula.git
- https://github.com/TronPaul/deluge-formula.git
s3.buckets:
production:
- salt-teamunpro
ext_pillar:
- s3:
bucket: my-secret-bucket
environment: production
- git:
- master https://example.com/giturl.git:
- env: base
ext_pillar_first: True
# this is the relevant part of the pillar top in base
base:
'* and G@virtual:VirtualBox':
- match: compound
- sensu
production:
'*':
- sensu
@TronPaul
Copy link
Author

Given this configuration nothing is returned when the node is considered in production.

I see a log message reading Specified SLS 'sensu' in environment 'production' is not found, which might be due to environment 'production' not being present in "pillar_roots" yet!, but even if I add a fake entry to pillar_roots for that entry I don't get anything for that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment