Skip to content

Instantly share code, notes, and snippets.

@justlooks
Last active December 25, 2015 15:49
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 justlooks/7001390 to your computer and use it in GitHub Desktop.
Save justlooks/7001390 to your computer and use it in GitHub Desktop.
i have two key-value defined in pillar file
namenode_box: mycluster_master_node_hostname
namenode_ip: mycluster_master_node_ip
i run the deploy sls file many time ,so each time i need change both namenode_box and namenode_ip,
what i want to do is i changed namenode_box ,let salt find the box's ip ,and fill namenode_ip automatically
any good idea?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment