browbeat/ansible/oooq/baremetal-virt-undercloud-yoda-browbeat.yml
jkilpatr 2dd7fe17d1 Handle subprocess issues with yoda and system openstacksdk
So, when you pip install openstacksdk you all install some of the
workflows for the openstack * commands, this means when you create
a virtualenv with no system site packages commands like openstack
node import don't work the same way and worse we're not testing
the same stuff we ship.

on the other hand the system version of openstacksdk often isn't
sutible for the api call functionality yoda uses, so we need to
be sure the command line functionality of yoda goes through the
system opesntack client path whereas the api monitoring functions
go through openstack sdk, to make this even more complex the
subprocess function of python insists on not behaving like a normal
shell.

This prefixes all bommands with env -i bash -c "command" which runs
bash with no way to inherit vars (like the python venv) from Browbeat
itself which can then safely rely on the openstacksdk in it's venv

Change-Id: I4da896ea793f44ecff8fa0caa82255259447facc
2017-07-26 15:17:29 -04:00

88 lines
1.8 KiB
YAML

---
- include: baremetal-prep-virthost.yml
- name: Validate IPMI and instackenv.json
hosts: undercloud
gather_facts: yes
roles:
- validate-ipmi
- name: Deploy the undercloud
hosts: undercloud
gather_facts: no
roles:
- undercloud-deploy
- name: copy over config files
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-config
- name: Perpare the baremetal overcloud
hosts: undercloud
gather_facts: yes
roles:
- baremetal-prep-overcloud
- name: Prepare overcloud containers
hosts: undercloud
gather_facts: no
roles:
- { role: overcloud-prep-containers, when: containerized_overcloud|bool }
- name: Prepare the overcloud images for deployment
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-images
- name: Prepare overcloud flavors
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-flavors
- name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-network
- name: Prepare the SSL Configuration for the overcloud deployment
hosts: undercloud
gather_facts: no
roles:
- { role: overcloud-ssl, when: ssl_overcloud|bool }
- name: Configure Browbeat
hosts: undercloud
roles:
- browbeat/pre-install-setup
- browbeat/oooq-metadata
- name: Setup Undercloud CollectD
hosts: undercloud
vars:
config_type: "{{group_names[0]}}"
roles:
- browbeat/common
- browbeat/epel
- browbeat/collectd-openstack
- name: Install Browbeat
hosts: undercloud
vars:
results_in_httpd: false
statsd_host: "{{ graphite_host }}"
roles:
- browbeat/common
- browbeat/browbeat
- browbeat/template-configs
- browbeat/statsd-ironic
- name: Run Browbeat
hosts: undercloud
roles:
- browbeat/browbeat-run