Commit Graph

4 Commits

Author SHA1 Message Date
Pavlo Shchelokovskyy 725b85484f Remove Ansible-deploy interface
it is now part of ironic itself, and version in ironic-staging-drivers
conflicts with version in ironic, blocking ironic-conductor from
starting when ironic-staging-drivers is installed.

Change-Id: I917b7399b3249143ba6cf75f61d96a1c64f94e7d
2017-12-18 14:55:35 +02:00
Pavlo Shchelokovskyy afb682bf54 Re-use tinyipa image for ansbile-deploy
It is possible to rebuild the pre-built tinyipa image available
at tarballs.openstack.org to make it usable with ansible-deploy driver.

The rebuild is rather fast, and only downloads 2 packages from TC mirrors
(SSH server and dependencies).

Change-Id: Ie39ce67dc93e7d53bf75937c7defacafad5fbfcf
Related-Bug: #1526308
2017-02-13 16:39:34 +00:00
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
Pavlo Shchelokovskyy 6aae875ed4 Add DIB element for ansible-deploy driver ramdisk
Based on:
- `ironic-agent` element and uses IPA for lookup/heartbeats
- `devuser` element to set user name, permissions and SSH keys.

Additionally:
- ensures OpenSSH is installed and configured properly
- correctly sets hostname to avoid some Ansible problems with elevation
- overrides DIB_DEV_USER_PWDLESS_SUDO to always be "yes"

Ironic callback functionality requires Ironic API >= 1.22.

Change-Id: I3f6c3baf0197d27f2d423f52611666ca186cd0a4
Related-Bug: #1526308
2016-11-08 12:31:06 +02:00