Various tinkerings to run on master
This commit is contained in:
parent
fd8d523757
commit
f8d092cbae
4
ansible/playbooks/all.yml
Normal file
4
ansible/playbooks/all.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- import_playbook: init-nodes.yml
|
||||||
|
- import_playbook: adhoc-reboot.yml
|
||||||
|
- import_playbook: role-infra-host.yml
|
@ -106,21 +106,28 @@
|
|||||||
name:
|
name:
|
||||||
- git-core
|
- git-core
|
||||||
- wget
|
- wget
|
||||||
- python36
|
#- python36
|
||||||
- chrony
|
- chrony
|
||||||
- openssh-server
|
- openssh-server
|
||||||
- python3-devel
|
#- python3-devel
|
||||||
- sudo
|
- sudo
|
||||||
state: latest
|
state: latest
|
||||||
tags: packages
|
tags: packages
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://github.com/NeilHanlon/openstack-ansible.git
|
#repo: https://opendev.org/openstack/openstack-ansible.git
|
||||||
|
repo: https://review.opendev.org/openstack/openstack-ansible
|
||||||
#single_branch: yes
|
#single_branch: yes
|
||||||
dest: /opt/openstack-ansible
|
dest: /opt/openstack-ansible
|
||||||
version: 'feature/rocky8'
|
version: 'master'
|
||||||
tags: repos
|
tags: repos
|
||||||
|
|
||||||
|
- name: fetch patch
|
||||||
|
ansible.builtin.shell: 'git fetch https://review.opendev.org/openstack/openstack-ansible refs/changes/73/823573/5 && git checkout FETCH_HEAD'
|
||||||
|
args:
|
||||||
|
chdir: /opt/openstack-ansible/
|
||||||
|
|
||||||
|
|
||||||
- name: Create ssh key for root
|
- name: Create ssh key for root
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: root
|
name: root
|
||||||
|
@ -33,17 +33,18 @@
|
|||||||
tags:
|
tags:
|
||||||
- bootstrap
|
- bootstrap
|
||||||
|
|
||||||
- name: Fix roles
|
#- name: Fix roles
|
||||||
become: true
|
# become: true
|
||||||
ansible.builtin.shell:
|
# ansible.builtin.shell:
|
||||||
cmd: "{{ item }}"
|
# cmd: "{{ item }}"
|
||||||
with_items:
|
# with_items:
|
||||||
- grep -ril 'openstack.config_template.' /etc/ansible/roles/ | xargs sed -i.bak 's,openstack.config_template.,,g'
|
# - grep -ril 'openstack.config_template.' /etc/ansible/roles/ | xargs sed -i.bak 's,openstack.config_template.,,g'
|
||||||
- grep -ril 'openstack.osa.provider_networks' /etc/ansible/roles/ | xargs sed -i.bak 's,openstack.osa.provider_networks,provider_networks,g'
|
# - grep -ril 'openstack.osa.provider_networks' /etc/ansible/roles/ | xargs sed -i.bak 's,openstack.osa.provider_networks,provider_networks,g'
|
||||||
tags:
|
# - grep -ril 'openstack.osa.db_se' /etc/ansible/roles/ | xargs sed -i.bak 's,openstack.osa.provider_networks,provider_networks,g'
|
||||||
- temporary
|
# tags:
|
||||||
- ansible
|
# - temporary
|
||||||
- bootstrap
|
# - ansible
|
||||||
|
# - bootstrap
|
||||||
|
|
||||||
- name: Deploy and setup configuration
|
- name: Deploy and setup configuration
|
||||||
when: not aio_install | default('true') # bootstrap-AIO script instead does these things.
|
when: not aio_install | default('true') # bootstrap-AIO script instead does these things.
|
||||||
@ -89,11 +90,11 @@
|
|||||||
- bootstrap
|
- bootstrap
|
||||||
- aio
|
- aio
|
||||||
|
|
||||||
- name: Create volume group for cinder
|
#- name: Create volume group for cinder
|
||||||
lvg:
|
# lvg:
|
||||||
pv_options: --metadatasize=2048
|
# pv_options: --metadatasize=2048
|
||||||
pvs: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
# pvs: "{{ cinder_pv_device | default('/dev/vdb') }}"
|
||||||
vg: cinder-volumes
|
# vg: cinder-volumes
|
||||||
|
|
||||||
- name: Copy common openstack configs
|
- name: Copy common openstack configs
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -103,6 +104,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- user_lxc
|
- user_lxc
|
||||||
- user_galera
|
- user_galera
|
||||||
|
tags: config
|
||||||
|
|
||||||
- name: Disable SSH Agent Forwarding
|
- name: Disable SSH Agent Forwarding
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user