From c6e2851819cfce3f0fb718594bad878adc5f3d8c Mon Sep 17 00:00:00 2001 From: Andrey Shestakov Date: Fri, 9 Dec 2016 18:12:51 +0200 Subject: [PATCH] Fixes to allow install Ironic on remote node This change introduces fixes, which allows install Ironic on remote server. This may not complete list of changes required for all operations. Also added group 'target' to inventory file, which is same as localhost by default, and host in this group can be replaced by remote host. Change-Id: I59c942d2556c5e1b7eee661fb8cf13c4ae02b2d1 --- README.rst | 16 ++--- doc/source/deploy/keystone.rst | 10 +-- playbooks/install.yaml | 5 +- playbooks/inventory/group_vars/target | 72 +++++++++++++++++++ playbooks/inventory/target | 2 + .../required_defaults_RedHat_family.yml | 2 + .../required_defaults_Ubuntu_16.04.yml | 34 +++++++++ .../tasks/bootstrap.yml | 11 ++- .../tasks/create_tftpboot.yml | 8 +-- .../required_defaults_Ubuntu_16.04.yml | 17 +++++ .../tasks/bootstrap.yml | 24 +++++-- ...allow-install-remote-101eea1ea4009fe1.yaml | 6 ++ 12 files changed, 174 insertions(+), 33 deletions(-) create mode 100644 playbooks/inventory/group_vars/target create mode 100644 playbooks/inventory/target create mode 100644 releasenotes/notes/allow-install-remote-101eea1ea4009fe1.yaml diff --git a/README.rst b/README.rst index ce17a5bde..efa5ac590 100644 --- a/README.rst +++ b/README.rst @@ -108,7 +108,7 @@ Bifrost source code should be pulled directly from git first:: cd bifrost Edit ``./playbooks/inventory/group_vars/*`` to match your environment. The -localhost file is intended for steps executed upon the localhost, such as +target file is intended for steps executed upon the target server, such as installation, or image generation. The baremetal file is geared for steps performed on baremetal nodes, such as enrollment, deployment, or any other custom playbooks that a user may bolt on to this toolkit. @@ -180,9 +180,9 @@ restarted. Run:: If you have passwordless sudo enabled, run: - ansible-playbook -vvvv -i inventory/localhost install.yaml + ansible-playbook -vvvv -i inventory/target install.yaml Otherwise, add -K option to let Ansible prompting for the sudo password: - ansible-playbook -K -vvvv -i inventory/localhost install.yaml + ansible-playbook -K -vvvv -i inventory/target install.yaml With regard to testing, ironic's node cleaning capability is disabled by default as it can be an unexpected surprise for a new user that their test @@ -191,7 +191,7 @@ node is unusable for however long it takes for the disks to be wiped. If you wish to enable cleaning, you can achieve this by passing the option ``-e cleaning=true`` to the command line or executing the command below:: - ansible-playbook -K -vvvv -i inventory/localhost install.yaml -e cleaning=true + ansible-playbook -K -vvvv -i inventory/target install.yaml -e cleaning=true After you have performed an installation, you can edit /etc/ironic/ironic.conf to enable or disable cleaning as desired, however it is highly encouraged to @@ -202,7 +202,7 @@ These drivers and information about them can be found `here