[Baremetal] Add baremetal support to create-nodes 97/60797/35
authorManuel Buil <mbuil@suse.com>
Thu, 9 Aug 2018 14:52:46 +0000 (16:52 +0200)
committerManuel Buil <mbuil@suse.com>
Wed, 17 Oct 2018 15:18:51 +0000 (17:18 +0200)
commitc380a85cb660d07da714ad3adf43439ad7938270
tree248470a0975c2c2d330082bf8e8c032a2e6f12ad
parentb9b00f336f20bad8bc58b325172ebf9c71c83b6a
[Baremetal] Add baremetal support to create-nodes

Information about baremetal servers is collected for ironic to do
the provisioning. Two main things are done:

1 - baremetalhoststojson.yml fills the json config file fed to ironic
so that it knows how to boot the blades. In the baremetal case, the
create_vm.yml playbook will only create opnfv vm. The variable
vms_to_create holds that information. The variable baremetal_nodes
specifies the physical nodes (empty when non baremetal deployments)

2 - For PXE to work, we create a file called baremetalstaticips that
has the mapping between mac address from servers and its ip. That file
is moved into the dnsmasq config directory

Change-Id: I0e788db1deb50769c183b71524a68ac0b925f8aa
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/infra/bifrost/playbooks/xci-prepare-env.yml
xci/infra/bifrost/playbooks/xci-setup-nodes.yml
xci/playbooks/roles/create-nodes/defaults/main.yml
xci/playbooks/roles/create-nodes/tasks/barematalhoststojson.yml [new file with mode: 0644]
xci/playbooks/roles/create-nodes/tasks/create_vm.yml
xci/playbooks/roles/create-nodes/tasks/main.yml