diff options
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-12-20 13:23:05 +0000 |
---|---|---|
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2018-01-15 11:34:24 +0000 |
commit | fbcc4df9619fe96fdb72d51ee3eaa9655cea947c (patch) | |
tree | 3e6d95161528951a4b3373588e955116a0eb2129 /playbooks/legacy | |
parent | bf8cb05aa4fcdb3b8c115fda6139d464fc94c014 (diff) | |
download | ironic-fbcc4df9619fe96fdb72d51ee3eaa9655cea947c.tar.gz |
Setup ansible interface in devstack
- enable ansible deploy interface
- install Ansible version from driver-requirements.txt
- generate private SSH key to use by Ansible (if absent)
- add the public ssh key to the tinyipa image during (re)build
By default nodes are not enrolled with it, as they will be assigned this
driver/interface in standalone tests.
For local development, nodes can be enrolled by setting
IRONIC_DEFAULT_DEPLOY_INTERFACE=ansible
in local.conf and enabling 'ansible' deploy interface in the
IRONIC_ENABLED_DEPLOY_INTERFACES variable.
Change-Id: I12c1727c3ded13c381852334cb54e5e976154e98
Diffstat (limited to 'playbooks/legacy')
-rw-r--r-- | playbooks/legacy/ironic-dsvm-standalone/run.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/legacy/ironic-dsvm-standalone/run.yaml b/playbooks/legacy/ironic-dsvm-standalone/run.yaml index 55035ee93..e78a0c212 100644 --- a/playbooks/legacy/ironic-dsvm-standalone/run.yaml +++ b/playbooks/legacy/ironic-dsvm-standalone/run.yaml @@ -74,6 +74,14 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_AUTOMATED_CLEAN_ENABLED=False" export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_MOD_WSGI=True" + # NOTE(pas-ha) ansible deploy is new in Queens, + # and this job does not exist in Newton/Ocata. + # Do not enable ansible deploy for Pike so that stable/pike job on + # branch-less ironic-tempest-plugin passes using branch_override. + if [[ "$ZUUL_BRANCH" != "stable/pike" && "$BRANCH_OVERRIDE" != "stable/pike" ]]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DEPLOY_INTERFACES=iscsi,direct,ansible" + fi + # Ensure the ironic-vars-EARLY file exists touch ironic-vars-early # Pull in the EARLY variables injected by the optional builders |