6 Commits

Author SHA1 Message Date
Egon Rijpkema
51e2bf3544 Login to docker repo is now needed. 2018-11-21 15:49:06 +01:00
Egon Rijpkema
375d5fa4c9 changes for openstack03 2018-10-11 09:59:16 +02:00
Egon Rijpkema
4d95b0ddbd openstack04 added to openstack03 cluster. 2018-10-10 10:44:09 +02:00
Egon Rijpkema
981b1eff63 Better security for machine that runs horizon. 2018-10-03 13:45:54 +02:00
Egon Rijpkema
31e3506d30 Added sane ansible.cfg 2018-10-03 11:50:42 +02:00
Egon Rijpkema
03a619823d This makes a neutron net-list possible
as well as a openstack network list.
2018-07-19 15:01:56 +02:00
10 changed files with 36 additions and 4 deletions

View File

@@ -1,2 +1,6 @@
[defaults] [defaults]
inventory = merlin inventory = hosts
stdout_callback = debug
vault_password_file = .vault_pass.txt
forks = 20
host_key_checking = false

View File

@@ -1,7 +1,13 @@
--- ---
- hosts: all - hosts: all
name: Dummy to gather facts name: Dummy to gather facts
tasks: [] tasks:
- name: gather facts even if hosts are excluded.
setup:
delegate_to: "{{item}}"
delegate_facts: True
loop: "{{groups['all']}}"
- hosts: cinder-controller - hosts: cinder-controller
become: True become: True

View File

@@ -1,5 +1,11 @@
--- ---
- hosts: all - hosts: all
become: True become: True
vars_prompt:
- name: "docker_user"
prompt: "What is your p number?"
- name: "docker_pass"
prompt: "What is your password?"
private: yes
roles: roles:
- common - common

2
group_vars/horizon.yml Normal file
View File

@@ -0,0 +1,2 @@
---
security_fail2ban_enabled: false

View File

@@ -6,4 +6,5 @@
- hosts: horizon - hosts: horizon
become: True become: True
roles: roles:
- geerlingguy.security
- horizon - horizon

2
host_vars/openstack03 Normal file
View File

@@ -0,0 +1,2 @@
---
listen_ip: '172.23.40.243'

2
host_vars/openstack04 Normal file
View File

@@ -0,0 +1,2 @@
---
listen_ip: '172.23.40.253'

View File

@@ -27,9 +27,9 @@ openstack03
[cinder-storage] [cinder-storage]
openstack03 storage_volume=/dev/sdb1 openstack03 storage_volume=/dev/sdb1
openstack04 storage_volume=/dev/sdb1
[nova-compute] [nova-compute]
openstack03 physical_interface_mappings=provider:enp4s0f0 openstack03 physical_interface_mappings=provider:enp4s0f0
openstack04 physical_interface_mappings=provider:eno1
[all:vars]
listen_ip=172.23.40.243

View File

@@ -27,3 +27,10 @@
group: root group: root
- import_tasks: docker.yml - import_tasks: docker.yml
- name: Log into DockerHub
docker_login:
registry: registry.webhosting.rug.nl
username: "{{ docker_user }}"
password: "{{ docker_pass }}"

View File

@@ -1,3 +1,5 @@
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_TENANT_NAME=admin export OS_TENANT_NAME=admin
export OS_USERNAME=admin export OS_USERNAME=admin
export OS_PASSWORD={{ hostvars[groups['keystone'][0]]['OS_PASSWORD'] }} export OS_PASSWORD={{ hostvars[groups['keystone'][0]]['OS_PASSWORD'] }}