tenks/ansible/roles/ironic-enrolment
Will Szumski a5e1b65756 Only set Ironic port attributes when changed
This fixes a lint issue:

[301] Commands should not change things if nothing needs doing
/home/will/code/tenks/ansible/roles/ironic-enrolment/tasks/port.yml:20
Task/Handler: Set Ironic port attributes

TrivialFix

Change-Id: I7940fe25d3518daf268484e292e337abc925080d
2018-11-02 17:27:10 +00:00
..
defaults Move deploy image ID finding to enrolment role 2018-09-21 16:17:11 +00:00
files Add Ironic enrolment Ansible role 2018-08-31 16:57:34 +00:00
tasks Only set Ironic port attributes when changed 2018-11-02 17:27:10 +00:00
README.md Use /usr/bin/virsh instead of /bin/virsh 2018-10-01 13:47:18 +01:00

README.md

Ironic Enrolment

This role enrols nodes with OpenStack Ironic, creates Ironic ports for each of the nodes' NICs, and sets relevant attributes on created resources.

Requirements

  • OS_* environment variables for the OpenStack cloud in question present in the shell environment. These can be sourced from an OpenStack RC file, for example.

  • The virsh command-line tool present at /usr/bin/virsh.

Role Variables

  • ironic_nodes: A list of dicts of details for nodes that are to be enroled in Ironic.
  • ironic_hypervisor: The hostname of the hypervisor on which ironic_nodes exist.
  • ironic_deploy_kernel_uuid: The Glance UUID of the image to use for the deployment kernel.
  • ironic_deploy_ramdisk_uuid: The Glance UUID of the image to use for the deployment ramdisk.
  • ironic_virtualenv_path: The path to the virtualenv in which to install the OpenStack clients.
  • ironic_python_upper_constraints_url: The URL of the upper constraints file to pass to pip when installing Python packages.