tripleo-image-elements/elements/os-is-bootstrap-host
Gregory Haynes 2677390f16 Add os-is-bootstrap-host element and script
As a very temporary master election we are predetermining a host to be
used as the 'bootstrap host'. Also changing mysql, rabbitmq, and
reset-db to use this script.

This requires Change-Id: I85399019c5fc448e98362ef832988abc8d9d459d

Change-Id: I1369926eb428ee1e3e4af861dc76ffe82a07f629
2014-06-12 13:56:49 -07:00
..
bin Add os-is-bootstrap-host element and script 2014-06-12 13:56:49 -07:00
README.md Add os-is-bootstrap-host element and script 2014-06-12 13:56:49 -07:00

A pre-determined master for initial bootstrapping

Configuration

For initial master election, bootstrap_nodeid and node_id should be set to the ID string of the node which will be used as initial master and the id string of the current node.

A host where os-is-bootstrap-host is true (has exit value and output of 0)

bootstrap_host:
  bootstrap_nodeid: "SomeNode1"
  nodeid: "SomeNode1"

A host where os-is-bootstrap-host is false (has exit value and output of 1)

bootstrap_host:
  bootstrap_nodeid: "SomeNode1"
  nodeid: "SomeNode2"

If either of these values is undefined, the exit value and output of the script will be 255.