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/devstack | |
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/devstack')
-rw-r--r-- | deployment/noheat/devstack/ansible/create.yml | 43 | ||||
-rw-r--r-- | deployment/noheat/devstack/ansible/group_vars/all/all.yml | 3 | ||||
-rw-r--r-- | deployment/noheat/devstack/ansible/templates/local.conf.j2 | 5 |
3 files changed, 51 insertions, 0 deletions
diff --git a/deployment/noheat/devstack/ansible/create.yml b/deployment/noheat/devstack/ansible/create.yml new file mode 100644 index 000000000..f11fe1194 --- /dev/null +++ b/deployment/noheat/devstack/ansible/create.yml @@ -0,0 +1,43 @@ +--- +- name: Deploy Devstack + hosts: "openstack*" + tasks: + - name: Update Devstack hosts + become: true + ansible.builtin.apt: + upgrade: full + update_cache: true + autoremove: true + autoclean: true + + - name: Reboot OS + become: true + ansible.builtin.reboot: + + - name: Clone Devstack + ansible.builtin.git: + repo: "https://opendev.org/openstack/devstack" + dest: "{{ devstack_dir }}" + version: "{{ devstack_version }}" + + - name: Copy local.conf + ansible.builtin.template: + src: "local.conf.j2" + dest: "{{ devstack_dir }}/local.conf" + mode: '0600' + + - name: Run devstack setup script + ansible.builtin.command: + chdir: "{{ devstack_dir }}" + cmd: "./stack.sh" + creates: /opt/stack + + - name: Run devstack setup script + ansible.builtin.file: + path: "{{ devstack_dir }}" + state: absent + + handlers: + - name: Reboot OS + become: true + ansible.builtin.reboot: diff --git a/deployment/noheat/devstack/ansible/group_vars/all/all.yml b/deployment/noheat/devstack/ansible/group_vars/all/all.yml new file mode 100644 index 000000000..b2d63c672 --- /dev/null +++ b/deployment/noheat/devstack/ansible/group_vars/all/all.yml @@ -0,0 +1,3 @@ +--- +devstack_dir: "{{ ansible_user_dir }}/devstack" +devstack_version: "stable/yoga" diff --git a/deployment/noheat/devstack/ansible/templates/local.conf.j2 b/deployment/noheat/devstack/ansible/templates/local.conf.j2 new file mode 100644 index 000000000..0bfa3bba9 --- /dev/null +++ b/deployment/noheat/devstack/ansible/templates/local.conf.j2 @@ -0,0 +1,5 @@ +[[local|localrc]] +ADMIN_PASSWORD="{{ openstack_passwd }}" +DATABASE_PASSWORD=$ADMIN_PASSWORD +RABBIT_PASSWORD=$ADMIN_PASSWORD +SERVICE_PASSWORD=$ADMIN_PASSWORD |