-
-
Save anonymous/07208bd03c3703bfd953 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
salt-run -l debug state.orchestrate orchestrate.bootstrap pillar="{node: mistress}" |
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
{% set hostname = pillar['node'] %} | |
{% set node = pillar['hosts'][hostname] %} | |
{% set type = salt['pillar.get']('hosts:' + hostname + ':type',) %} | |
{% set priority = salt['pillar.get']('hosts:' + hostname + ':priority',) %} | |
{% set company = salt['pillar.get']('hosts:' + hostname + ':company',) %} | |
{% set minionid = [ hostname,type,priority,company ]|join('-') %} | |
kickstart_prep: | |
salt.state: | |
- tgt: bootstrapper | |
- sls: kickstart | |
- pillar: | |
minionid: {{ minionid }} | |
node: {{ node }} |
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
base: | |
'*': | |
- hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment