5/15/2017 - 8:26 AM

Attribute orchestration

Attribute orchestration

On node 1 you will need something like this:

# package installation and configuration

# set an attribute key as the last action
node.set['master']['key'] = 6B0FEJFM

Then on node 2 you are looking for the key that you set during node 1’s run:

# all the node configuration up to master node requirement / dependency

result = search(:node, "role:master")
if result.first['master']['key'] == 6B0FEJFM
  # do required config