Skip to content

Instantly share code, notes, and snippets.

@TronPaul
Last active August 29, 2015 14:27
Show Gist options
  • 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