diff --git a/.zuul.yaml b/.zuul.yaml index 2d6bff490..99745f47c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -165,6 +165,11 @@ - project: check: jobs: + - openstack-tox-pep8 + - openstack-tox-py27 + - build-openstack-releasenotes: + vars: + sphinx_python: python3 - packstack-integration-scenario001-tempest - packstack-integration-scenario002-tempest - packstack-integration-scenario003-tempest @@ -173,6 +178,11 @@ voting: false gate: jobs: + - openstack-tox-pep8 + - openstack-tox-py27 + - build-openstack-releasenotes: + vars: + sphinx_python: python3 - packstack-integration-scenario001-tempest - packstack-integration-scenario002-tempest - packstack-integration-scenario003-tempest diff --git a/playbooks/packstack-multinode.yaml b/playbooks/packstack-multinode.yaml index ec8b70875..33e736e72 100644 --- a/playbooks/packstack-multinode.yaml +++ b/playbooks/packstack-multinode.yaml @@ -18,7 +18,7 @@ become: true - hosts: controller - name: packstack-multinode + name: packstack-ssh-preparation-1 tasks: - name: Generate SSH key on controller shell: ssh-keygen -t rsa -f /root/.ssh/id_rsa -P "" @@ -31,14 +31,6 @@ become: true register: ssh_key - - name: Deploy SSH key on compute node - authorized_key: - user: root - state: present - key: "{{ ssh_key.stdout }}" - delegate_to: "{{ hostvars['compute'].ansible_host }}" - become: true - - name: Deploy SSH key on controller authorized_key: user: root @@ -46,6 +38,23 @@ key: "{{ ssh_key.stdout }}" become: true + - name: Set SSH key fact to be used by the compute node + set_fact: + sshkey: "{{ ssh_key.stdout }}" + +- hosts: compute + name: packstack-ssh-preparation-2 + tasks: + - name: Deploy SSH key on compute node + authorized_key: + user: root + state: present + key: "{{ hostvars['controller'].sshkey }}" + become: true + +- hosts: controller + name: packstack-multinode + tasks: - name: Run Packstack shell: cmd: |