Introduce baremetal deployment in upgrade

Change-Id: I8240d3fa54d1badd6ca87bfc02c9d8584fbb8daa
This commit is contained in:
Mathieu Bultel 2016-09-12 08:58:19 +02:00
parent c447648d0f
commit 5da3e60f44
4 changed files with 16 additions and 3 deletions

View File

@ -38,6 +38,10 @@ upgrade_log: overcloud_upgrade_console.log
undercloud_upgrade_log: undercloud_upgrade_console.log
# user:
undercloud_upgrade_user: stack
# Deployment type could:
# - virtual
# - baremetal
deployment_type: virtual
# override those lists with your templates that your env needs for upgrade
# example:
# upgrade_custom_templates_script_delivery:

View File

@ -0,0 +1,9 @@
---
# Upgrade Undercloud and Overcloud on top of a quickstart Baremetal deployment
- include: baremetal-virt-undercloud-tripleo.yml
- name: Upgrade Tripleo
hosts: undercloud
gather_facts: no
roles:
- { role: tripleo-overcloud-upgrade, deployment_type: baremetal }

View File

@ -28,7 +28,7 @@
sudo iptables -A BOOTSTACK_MASQ -s {{ network_isolation_ipv4_cidr }} ! \
-d {{ network_isolation_ipv4_cidr }} -j MASQUERADE -t nat;
sudo iptables-save > /etc/sysconfig/iptables;
when: network_isolation
when: network_isolation|bool and deployment_type == "virtual"
- name: Create major overcloud upgrade script
when: major_upgrade

View File

@ -15,11 +15,11 @@
ovs-vsctl add-port br-ctlplane {{ network_isolation_vlan }} tag={{ network_isolation_vlan_tag }} \
-- set interface {{ network_isolation_vlan }} type=internal;
fi
when: network_isolation
when: network_isolation|bool and deployment_type == "virtual"
- name: set vlan up
ignore_errors: yes
sudo: yes
shell: >
ip l set dev {{ network_isolation_vlan }} up; ip addr add {{ network_isolation_ipv4_cidr }} dev {{ network_isolation_vlan }};
when: network_isolation
when: network_isolation|bool and deployment_type == "virtual"