Created
March 8, 2013 01:19
-
-
Save rca/5113481 to your computer and use it in GitHub Desktop.
roles pillar data works on salt master, but do not show up on minions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!py | |
def get_roles(nodename): | |
""" | |
Stub function that will by replaced by a dynamic lookup | |
""" | |
roles = [] | |
if 'allinone' in nodename: | |
roles.append('allinone') | |
if 'django' in nodename: | |
roles.append('django') | |
if 'rails' in nodename: | |
roles.append('rails') | |
return roles | |
def run(): | |
return { | |
'roles': get_roles(grains['nodename']), | |
'hi': 'hello', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base: | |
'*': | |
- roles | |
'*allinone*': | |
- lxc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.bizegel.net/google-8-mart-dunya-kadinlar-gunu-kutlama-mesaji/