diff options
author | Maciej Wereski <m.wereski@partner.samsung.com> | 2022-02-03 16:22:00 +0100 |
---|---|---|
committer | Maciej Wereski <m.wereski@partner.samsung.com> | 2022-10-12 17:21:25 +0200 |
commit | df00edd68426419d789733699584c051e570a43c (patch) | |
tree | e0510d2463f97f8bec5f29305a4544aa6a1c1973 /deployment/noheat/infra-openstack/ansible/roles | |
parent | 5ea85531ec762930e6f34dc4240776e43e2b88e7 (diff) |
noheat: Upgrades, refactor, deploy Devstack
* Revert "Enable VID" (this reverts commit 2223bfaffa8fe5fb90c578ec71a035f001b9ce22)
* make sure ca-certificates is current
* add ability to configure Docker daemon
* upgrade Ubuntu to 20.04
* update tools, dependencies, Ansible Galaxy collections, Docker, RKE, k8s & charts
* make Prometheus & MetalLB optional
* deploy Istio
* use copy instead of ansible.posix.synchronize
* Allow to set IP address pools in OpenStack
* fix ansible-lint issues
* split big tasks files into smaller ones
* migrate to ansible-core
* add 'make onap' task
* add Devstack deployment
* fix NFS exports
* add Strimzi
* install Docker on operator
* override Nexus only on hosts that need it
* ability to set override file (sm-onap is default)
* ability to set ONAP (OOM) branch
* ability to set Devstack version
* add playbook to deploy everything
* describe how to run playbooks
* save operator0 access information
* install Galaxy deps with dedicated module
Issue-ID: INT-1601
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I88cfeeaf281c175340b63909983251ecd62eeb00
Diffstat (limited to 'deployment/noheat/infra-openstack/ansible/roles')
8 files changed, 23 insertions, 11 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/main.yml index 731bca04f..933b2f526 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/main.yml @@ -1,3 +1,5 @@ --- -- include: create_host.yml host={{ item }} +- include_tasks: create_host.yml loop: "{{ hosts }}" + loop_control: + loop_var: host diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_keypair/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/create_keypair/tasks/main.yml index a330875d8..8a7c72092 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_keypair/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_keypair/tasks/main.yml @@ -5,11 +5,11 @@ register: keypair - name: Create local public key - local_action: - module: copy + copy: content: "{{ keypair.key.public_key }}" dest: "~/.ssh/{{ keypair.key.name }}.pub" mode: 0600 + delegate_to: localhost - name: Check if local private key exists stat: @@ -17,9 +17,9 @@ register: local_private_key - name: Create local private key - local_action: - module: copy + copy: content: "{{ keypair.key.private_key }}" dest: "~/.ssh/{{ keypair.key.name }}" mode: 0600 - when: local_private_key.stat.exists == False + delegate_to: localhost + when: not local_private_key.stat.exists diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml index 81d8caae1..3e22ee6ce 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml @@ -15,6 +15,8 @@ network_name: "{{ net.name }}" cidr: "{{ net.cidr }}" dns_nameservers: "{{ dns_ips if dns_ips is defined else omit }}" + allocation_pool_start: '{{ net.allocation_pool_start | default("") }}' + allocation_pool_end: '{{ net.allocation_pool_end | default ("") }}' state: present - name: "Create {{ net.name }} router" diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/main.yml index 5e3ef67f5..cce6f790b 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/main.yml @@ -1,4 +1,6 @@ --- -- include: create_network.yml net={{ item }} +- include_tasks: create_network.yml loop: - "{{ network }}" + loop_control: + loop_var: net diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_securitygroup/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/create_securitygroup/tasks/main.yml index d04b72c34..872988032 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_securitygroup/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_securitygroup/tasks/main.yml @@ -1,5 +1,5 @@ --- -- include: create_securitygroup.yml +- include_tasks: create_securitygroup.yml loop: - "{{ securitygroup }}" loop_control: diff --git a/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml index 5ce130d44..1dd5c7224 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/destroy_hosts/tasks/main.yml @@ -1,3 +1,5 @@ --- -- include: destroy_host.yml host={{ item }} +- include_tasks: destroy_host.yml loop: "{{ hosts }}" + loop_control: + loop_var: host diff --git a/deployment/noheat/infra-openstack/ansible/roles/destroy_network/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/destroy_network/tasks/main.yml index e52dcbdb8..1d84ab62a 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/destroy_network/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/destroy_network/tasks/main.yml @@ -1,4 +1,6 @@ --- -- include: destroy_network.yml net={{ item }} +- include_tasks: destroy_network.yml loop: - "{{ network }}" + loop_control: + loop_var: net diff --git a/deployment/noheat/infra-openstack/ansible/roles/destroy_securitygroup/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/destroy_securitygroup/tasks/main.yml index de098afec..8142e8070 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/destroy_securitygroup/tasks/main.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/destroy_securitygroup/tasks/main.yml @@ -1,4 +1,6 @@ --- -- include: destroy_securitygroup.yml secgrp={{ item }} +- include_tasks: destroy_securitygroup.yml loop: - "{{ securitygroup }}" + loop_control: + loop_var: secgrp |