Compare commits
6 Commits
fb2bdfe543
...
umcg-0.1
Author | SHA1 | Date | |
---|---|---|---|
f8a3179b74 | |||
84b901c8b3 | |||
e3f3d5d3b7 | |||
68ac7a0a6d | |||
8da96590ac | |||
fea7aaaff6 |
5
nuke.yml
5
nuke.yml
@ -1,10 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
# This playbook will reset the instalation to facilitate a new installation.
|
||||||
|
# All data is lost!
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: True
|
become: True
|
||||||
name: Dummy to gather facts
|
name: Dummy to gather facts
|
||||||
tasks:
|
tasks:
|
||||||
- shell: "systemctl stop docker"
|
|
||||||
- name: Stop docker service
|
- name: Stop docker service
|
||||||
|
shell: "systemctl stop docker"
|
||||||
|
- name: Verify docker is stopped.
|
||||||
systemd:
|
systemd:
|
||||||
name: docker
|
name: docker
|
||||||
state: stopped
|
state: stopped
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Openstack Glance Container
|
Description=Openstack Horizon Container
|
||||||
After=docker.service
|
After=docker.service
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
delay: 3
|
delay: 3
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: keystone manage commands to setup db
|
- name: keystone manage commands to setup db_sync
|
||||||
command: >
|
command: >
|
||||||
/usr/bin/docker run --rm
|
/usr/bin/docker run --rm
|
||||||
--add-host=mariadb:{{ listen_ip | default(hostvars[groups['databases'][0]]['ansible_default_ipv4']['address']) }}
|
--add-host=mariadb:{{ listen_ip | default(hostvars[groups['databases'][0]]['ansible_default_ipv4']['address']) }}
|
||||||
@ -69,6 +69,11 @@
|
|||||||
--bootstrap-internal-url http://{{ listen_ip | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }}:35357/v3/
|
--bootstrap-internal-url http://{{ listen_ip | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }}:35357/v3/
|
||||||
--bootstrap-public-url http://{{ listen_ip | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }}:5000/v3/
|
--bootstrap-public-url http://{{ listen_ip | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }}:5000/v3/
|
||||||
--bootstrap-region-id RegionOne
|
--bootstrap-region-id RegionOne
|
||||||
|
# sometimes the initial connect fails.
|
||||||
|
# Retry until it succeeds.
|
||||||
|
retries: 7
|
||||||
|
delay: 3
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: make sure service is started
|
- name: make sure service is started
|
||||||
systemd:
|
systemd:
|
||||||
@ -85,12 +90,18 @@
|
|||||||
-e "OS_AUTH_URL=http://${KEYSTONE_HOST}:35357/v3"
|
-e "OS_AUTH_URL=http://${KEYSTONE_HOST}:35357/v3"
|
||||||
-e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}"
|
-e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}"
|
||||||
{{ docker_image }} bash /etc/bootstrap.sh
|
{{ docker_image }} bash /etc/bootstrap.sh
|
||||||
|
register: result
|
||||||
|
retries: 7
|
||||||
|
delay: 3
|
||||||
|
|
||||||
|
- name: install openstack repo host key.
|
||||||
|
command: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA
|
||||||
|
tags: openstackclient
|
||||||
|
|
||||||
- name: install openstack repo on host.
|
- name: install openstack repo on host.
|
||||||
command: >
|
apt_repository:
|
||||||
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main" > /etc/apt/sources.list.d/ocata.list &&
|
repo: "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main"
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA
|
filename: ocata
|
||||||
tags: openstackclient
|
tags: openstackclient
|
||||||
|
|
||||||
- name: install openstack client for management
|
- name: install openstack client for management
|
||||||
|
48
test_hosts
48
test_hosts
@ -1,36 +1,48 @@
|
|||||||
[databases]
|
[databases]
|
||||||
ansible-test
|
openstack-test05
|
||||||
ansible-test-2
|
openstack-test06
|
||||||
ansible-test-3
|
openstack-test07
|
||||||
|
|
||||||
[keystone]
|
[keystone]
|
||||||
ansible-test-3
|
openstack-test05
|
||||||
|
|
||||||
[glance-controller]
|
[glance-controller]
|
||||||
ansible-test-2
|
openstack-test05
|
||||||
|
|
||||||
[horizon]
|
[horizon]
|
||||||
ansible-test-3
|
openstack-test05
|
||||||
|
|
||||||
[rabbitmq]
|
[rabbitmq]
|
||||||
ansible-test
|
openstack-test05
|
||||||
ansible-test-2
|
openstack-test06
|
||||||
ansible-test-3
|
openstack-test07
|
||||||
|
|
||||||
[cinder-storage]
|
|
||||||
ansible-test
|
|
||||||
|
|
||||||
[memcached]
|
[memcached]
|
||||||
ansible-test-3
|
openstack-test05
|
||||||
|
|
||||||
[neutron-controller]
|
[neutron-controller]
|
||||||
ansible-test physical_interface_mappings=provider:ens10
|
openstack-test05 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
|
||||||
[nova-controller]
|
[nova-controller]
|
||||||
ansible-test
|
openstack-test05
|
||||||
|
|
||||||
[nova-compute]
|
[cinder-controller]
|
||||||
ansible-test-2 physical_interface_mappings=provider:ens10
|
openstack-test05
|
||||||
|
|
||||||
[heat]
|
[heat]
|
||||||
ansible-test
|
openstack-test05
|
||||||
|
|
||||||
|
[cinder-storage]
|
||||||
|
openstack-test05 storage_volume=/dev/openstack-test05-vg/cinder
|
||||||
|
openstack-test06 storage_volume=/dev/openstack-test06-vg/cinder
|
||||||
|
openstack-test07 storage_volume=/dev/openstack-test07-vg/cinder
|
||||||
|
openstack-test08 storage_volume=/dev/openstack-test08-vg/cinder
|
||||||
|
openstack-test09 storage_volume=/dev/openstack-test09-vg/cinder
|
||||||
|
openstack-test10 storage_volume=/dev/openstack-test10-vg/cinder
|
||||||
|
|
||||||
|
[nova-compute]
|
||||||
|
openstack-test06 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
openstack-test07 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
openstack-test08 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
openstack-test09 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
openstack-test10 physical_interface_mappings=provider:enp4s0f0
|
||||||
|
Reference in New Issue
Block a user