-
-
Save anonymous/5595b9e3f17dd871e9c3 to your computer and use it in GitHub Desktop.
This file contains 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
[ash1] root@v-salt-001-prod:/srv/kubernetes-saltstack# salt 'b-kubernet-r16e14*' state.highstate | |
b-kubernet-r16e14: | |
---------- | |
ID: states | |
Function: no.None | |
Result: False | |
Comment: Unable to render top file: Jinja variable 'dict object' has no attribute 'hostname' | |
Started: | |
Duration: | |
Changes: | |
Summary | |
------------ | |
Succeeded: 0 | |
Failed: 1 | |
------------ | |
Total states run: 1 | |
[ash1] root@v-salt-001-prod:/srv/kubernetes-saltstack# salt 'b-kubernet-r16e14*' pillar.items | |
b-kubernet-r16e14: | |
---------- | |
kube_nodes: | |
---------- | |
kubmasta: | |
---------- | |
ipaddress: | |
10.119.150.81 | |
portal_net: | |
10.100.0.0/16 | |
type: | |
master | |
kubminion1: | |
---------- | |
ipaddress: | |
10.119.150.82 | |
type: | |
minion | |
kubminion2: | |
---------- | |
ipaddress: | |
10.119.150.83 | |
type: | |
minion | |
kubminion3: | |
---------- | |
ipaddress: | |
10.119.150.84 | |
type: | |
minion | |
kubminion4: | |
---------- | |
ipaddress: | |
10.119.150.85 | |
type: | |
minion | |
kubminion5: | |
---------- | |
ipaddress: | |
10.119.150.86 | |
type: | |
minion | |
[ash1] root@v-salt-001-prod:/srv/kubernetes-saltstack# cat salt/top.sls | |
base: | |
'*': | |
- baseinstall | |
{% if 'minion' in salt['pillar.get']('kube_nodes:' ~ grains['hostname'] ~ ':type') %} | |
- minioninstall | |
{% elif 'master' in salt['pillar.get']('kube_nodes:' ~ grains['hostname'] ~ ':type') %} | |
- masterinstall | |
- pods | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment