Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

/cmdline Secret

Created May 8, 2015 19:35
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 anonymous/07208bd03c3703bfd953 to your computer and use it in GitHub Desktop.
Save anonymous/07208bd03c3703bfd953 to your computer and use it in GitHub Desktop.
salt-run -l debug state.orchestrate orchestrate.bootstrap pillar="{node: mistress}"
{% 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 }}
base:
'*':
- hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment