forked from openstack-k8s-operators/data-plane-adoption
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openstack-k8s-operators#637 from fmount/tripleo_pr…
…ereq Add TripleO requirements playbook
- Loading branch information
Showing
6 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
- name: TripleO adoption requirements | ||
hosts: "{{ groups['overcloud'][0] | default([]) }}" | ||
gather_facts: true | ||
tasks: | ||
# Propagate StorageNFS network | ||
- name: Propagate Storage NFS network | ||
block: | ||
- name: Load Ceph data | ||
when: | ||
- (manila_backend | default("cephfs")) == "cephnfs" | ||
ansible.builtin.import_role: | ||
name: ceph_migrate | ||
tasks_from: ceph_load | ||
tags: | ||
- ceph_load | ||
- manila_adoption | ||
|
||
# Add firewall rules | ||
- name: Firewall | ||
ansible.builtin.import_role: | ||
name: ceph_migrate | ||
tasks_from: ceph_firewall | ||
tags: | ||
- ceph_firewall | ||
- manila_adoption | ||
|
||
- name: Propagate Storage NFS network | ||
when: | ||
- propagate_storage_nfs | bool | default(false) | ||
- target_nodes | default([]) | length > 0 | ||
ansible.builtin.include_role: | ||
name: ceph_migrate | ||
tasks_from: propagate_storage_nfs | ||
loop: "{{ target_nodes }}" | ||
tags: | ||
- manila_adoption | ||
|
||
# Create the Ceph-NFS cluster | ||
- name: Create a ceph nfs cluster | ||
when: | ||
- (manila_backend | default("cephfs")) == "cephnfs" | ||
- ceph_nfs_vip is defined | ||
ansible.builtin.include_role: | ||
name: ceph_migrate | ||
tasks_from: nfs | ||
tags: | ||
- manila_adoption |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- name: Patch net-config config and add the IP address (target node) | ||
when: | ||
- ceph_storagenfs_ipaddr is defined | ||
- ceph_storagenfs_ipaddr | ansible.builtin.ipaddr | ||
delegate_to: "{{ target_node }}" | ||
become: true | ||
ansible.builtin.blockinfile: | ||
marker_begin: "BEGIN storageNFS network" | ||
marker_end: "END storageNFS network" | ||
path: "{{ os_net_conf_path }}" | ||
block: | | ||
- type: vlan | ||
device: {{ ceph_storagenfs_nic }} | ||
vlan_id: {{ ceph_storagenfs_vlan_id }} | ||
addresses: | ||
- ip_netmask: {{ ceph_storagenfs_ipaddr }}/24 | ||
routes: [] | ||
- name: Refresh os-net-config (target_node) | ||
become: true | ||
delegate_to: "{{ target_node }}" | ||
ansible.builtin.command: | ||
"os-net-config -c {{ os_net_conf_path }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# manila_backend can be 'cephfs' or 'cephnfs' | ||
manila_backend: cephfs | ||
os_net_conf_path: "/etc/os-net-config/config.yaml" | ||
manila_storagenfs_nic: "nic2" | ||
manila_storagenfs_vlan_id: "70" |