Introduce baremetal deployment in upgrade
Change-Id: I8240d3fa54d1badd6ca87bfc02c9d8584fbb8daa
This commit is contained in:
parent
c447648d0f
commit
5da3e60f44
@ -38,6 +38,10 @@ upgrade_log: overcloud_upgrade_console.log
|
|||||||
undercloud_upgrade_log: undercloud_upgrade_console.log
|
undercloud_upgrade_log: undercloud_upgrade_console.log
|
||||||
# user:
|
# user:
|
||||||
undercloud_upgrade_user: stack
|
undercloud_upgrade_user: stack
|
||||||
|
# Deployment type could:
|
||||||
|
# - virtual
|
||||||
|
# - baremetal
|
||||||
|
deployment_type: virtual
|
||||||
# override those lists with your templates that your env needs for upgrade
|
# override those lists with your templates that your env needs for upgrade
|
||||||
# example:
|
# example:
|
||||||
# upgrade_custom_templates_script_delivery:
|
# upgrade_custom_templates_script_delivery:
|
||||||
|
9
playbooks/upgrade-baremetal.yml
Normal file
9
playbooks/upgrade-baremetal.yml
Normal 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 }
|
@ -28,7 +28,7 @@
|
|||||||
sudo iptables -A BOOTSTACK_MASQ -s {{ network_isolation_ipv4_cidr }} ! \
|
sudo iptables -A BOOTSTACK_MASQ -s {{ network_isolation_ipv4_cidr }} ! \
|
||||||
-d {{ network_isolation_ipv4_cidr }} -j MASQUERADE -t nat;
|
-d {{ network_isolation_ipv4_cidr }} -j MASQUERADE -t nat;
|
||||||
sudo iptables-save > /etc/sysconfig/iptables;
|
sudo iptables-save > /etc/sysconfig/iptables;
|
||||||
when: network_isolation
|
when: network_isolation|bool and deployment_type == "virtual"
|
||||||
|
|
||||||
- name: Create major overcloud upgrade script
|
- name: Create major overcloud upgrade script
|
||||||
when: major_upgrade
|
when: major_upgrade
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
ovs-vsctl add-port br-ctlplane {{ network_isolation_vlan }} tag={{ network_isolation_vlan_tag }} \
|
ovs-vsctl add-port br-ctlplane {{ network_isolation_vlan }} tag={{ network_isolation_vlan_tag }} \
|
||||||
-- set interface {{ network_isolation_vlan }} type=internal;
|
-- set interface {{ network_isolation_vlan }} type=internal;
|
||||||
fi
|
fi
|
||||||
when: network_isolation
|
when: network_isolation|bool and deployment_type == "virtual"
|
||||||
|
|
||||||
- name: set vlan up
|
- name: set vlan up
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
sudo: yes
|
sudo: yes
|
||||||
shell: >
|
shell: >
|
||||||
ip l set dev {{ network_isolation_vlan }} up; ip addr add {{ network_isolation_ipv4_cidr }} dev {{ network_isolation_vlan }};
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user