Add CentOS support for os_neutron
Depends-On: Ib00fdf2d652316f80c33be19dd3ee39831b1c491 Depends-On: I4c954ca8517ae1d456eda4f841cf64da233a78cd Change-Id: Iff4a5999be0263a2c1843d7ca29843468cbc0ccc
This commit is contained in:
parent
cec9b07062
commit
491b27859a
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- CentOS7/RHEL support has been added to the os_neutron role.
|
@ -23,5 +23,6 @@
|
|||||||
service:
|
service:
|
||||||
name: "{{ program_name }}"
|
name: "{{ program_name }}"
|
||||||
enabled: "yes"
|
enabled: "yes"
|
||||||
|
state: started
|
||||||
notify:
|
notify:
|
||||||
- Restart neutron services
|
- Restart neutron services
|
||||||
|
86
tasks/neutron_install-yum.yml
Normal file
86
tasks/neutron_install-yum.yml
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2014, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: Install RDO package
|
||||||
|
yum:
|
||||||
|
pkg: "{{ rdo_package }}"
|
||||||
|
state: "present"
|
||||||
|
register: install_cloud_rdo_package
|
||||||
|
until: install_cloud_rdo_package | success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
|
||||||
|
- name: Install neutron yum dependencies
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: "{{ neutron_package_state }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_distro_packages }}"
|
||||||
|
|
||||||
|
- name: Install yum packages for LXB
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: "{{ neutron_package_state }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_lxb_distro_packages }}"
|
||||||
|
when:
|
||||||
|
- neutron_services['neutron-linuxbridge-agent']['group'] in group_names
|
||||||
|
- neutron_services['neutron-linuxbridge-agent'].service_en | bool
|
||||||
|
|
||||||
|
- name: Install yum packages for OVS
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: "{{ neutron_package_state }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_ovs_distro_packages }}"
|
||||||
|
when:
|
||||||
|
- neutron_services['neutron-openvswitch-agent']['group'] in group_names
|
||||||
|
- neutron_services['neutron-openvswitch-agent'].service_en | bool
|
||||||
|
|
||||||
|
- name: Install yum packages for LBaaS
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: "{{ neutron_package_state }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_lbaas_distro_packages }}"
|
||||||
|
when:
|
||||||
|
- neutron_services['neutron-lbaasv2-agent']['group'] in group_names
|
||||||
|
- neutron_lbaasv2 | bool
|
||||||
|
|
||||||
|
- name: Install yum packages for VPNaaS
|
||||||
|
yum:
|
||||||
|
pkg: "{{ item }}"
|
||||||
|
state: "{{ neutron_package_state }}"
|
||||||
|
register: install_packages
|
||||||
|
until: install_packages|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
with_items: "{{ neutron_vpnaas_distro_packages }}"
|
||||||
|
when:
|
||||||
|
- neutron_services['neutron-vpnaas-agent']['group'] in group_names
|
||||||
|
- neutron_vpnaas | bool
|
||||||
|
|
@ -16,6 +16,9 @@
|
|||||||
- include: neutron_install-apt.yml
|
- include: neutron_install-apt.yml
|
||||||
when: ansible_pkg_mgr == 'apt'
|
when: ansible_pkg_mgr == 'apt'
|
||||||
|
|
||||||
|
- include: neutron_install-yum.yml
|
||||||
|
when: ansible_pkg_mgr == 'yum'
|
||||||
|
|
||||||
- name: Create developer mode constraint file
|
- name: Create developer mode constraint file
|
||||||
copy:
|
copy:
|
||||||
dest: "/opt/developer-pip-constraints.txt"
|
dest: "/opt/developer-pip-constraints.txt"
|
||||||
|
42
vars/redhat-7.yml
Normal file
42
vars/redhat-7.yml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2016, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
rdo_package: "https://rdoproject.org/repos/rdo-release.rpm"
|
||||||
|
|
||||||
|
neutron_ovs_distro_packages:
|
||||||
|
- openvswitch
|
||||||
|
|
||||||
|
neutron_distro_packages:
|
||||||
|
- conntrack-tools
|
||||||
|
- dnsmasq
|
||||||
|
- dnsmasq-utils
|
||||||
|
- ebtables
|
||||||
|
- ipset
|
||||||
|
- iputils
|
||||||
|
- keepalived
|
||||||
|
- libpqxx-devel
|
||||||
|
- radvd
|
||||||
|
|
||||||
|
neutron_lxb_distro_packages:
|
||||||
|
- bridge-utils
|
||||||
|
|
||||||
|
neutron_lbaas_distro_packages:
|
||||||
|
- haproxy
|
||||||
|
|
||||||
|
neutron_vpnaas_distro_packages:
|
||||||
|
- openswan
|
||||||
|
|
||||||
|
neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf"
|
||||||
|
neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent"
|
Loading…
x
Reference in New Issue
Block a user