ironic-staging-drivers/imagebuild/ironic-ansible
Andrey Shestakov 841c18e7eb Fix issue with /etc/hosts in ansible element
Ansible require valid hostname in /etc/hosts file.
This file does not exists in ubuntu-minimal Xenial, which causes build fail.

This change ensures that /etc/hosts file exists and has required content.

This change requires dib > 1.25.2 (or current master branch).

Also, move openssh-server from package-installs to element-deps,
as there is a separate element for that.

Change-Id: I5ff78cf6591ef2228a3695d91d8b2c2095fc28b3
2016-12-20 13:27:43 +02:00
..
environment.d Add DIB element for ansible-deploy driver ramdisk 2016-11-08 12:31:06 +02:00
post-install.d Fix issue with /etc/hosts in ansible element 2016-12-20 13:27:43 +02:00
test-elements Add DIB element for ansible-deploy driver ramdisk 2016-11-08 12:31:06 +02:00
README.rst Add DIB element for ansible-deploy driver ramdisk 2016-11-08 12:31:06 +02:00
element-deps Fix issue with /etc/hosts in ansible element 2016-12-20 13:27:43 +02:00
element-provides Add DIB element for ansible-deploy driver ramdisk 2016-11-08 12:31:06 +02:00

README.rst

ironic-ansible

Builds a ramdisk for Ironic Ansible deploy driver.

This element is based on the following elements:

  • devuser to create and configure a user for Ansible to access the node
  • ironic-agent to provide Ironic API lookup and heartbeats via IPA

Consult docs for those elements for available options.

Additionally this element:

  • ensures OpenSSH is installed and configured properly
  • correctly sets hostname to avoid some Ansible problems with elevation

Note: compared to devuser element, this element always gives the configured user password-less sudo permissions (unconfigurable).

Requires Ironic API >= 1.22.