Commit 6bf21d0f authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Split basic configuration into generic and site pecific parts

parent c48379c5
---
# Playbook to apply the basic configuration to the system to connect to docker
# registry.
# basic configuration / role out of the EDD to a site.
# The configuration in here should be generic, site specific settings should go
# into a dedicated configuration file. This file should thus be imported
########################################################################
- name: Additional bare metal configuration -- all nodes
- name: Ensure docker registry is available
hosts: registry
roles:
- docker_registry
- name: Ensure access of all nodes to docker registry
hosts: all
vars:
ansible_ssh_user: root
......@@ -17,20 +24,16 @@
copy:
src: data/registry.crt
dest: "/etc/docker/certs.d/{{ docker_registry }}:{{ docker_registry_port }}/registry.crt"
tags:
- baremetal
- never
- name: Additional bare metal configuration -- GPU Nodes
hosts: gpu_server
vars:
ansible_ssh_user: root
roles:
- gpu_node
tags:
- baremetal
- never
#- name: Additional bare metal configuration -- GPU Nodes
# hosts: gpu_server
# vars:
# ansible_ssh_user: root
# roles:
# - gpu_node
# tags:
# - baremetal
# - never
########################################################################
- name: Generate local security relevant data
......@@ -46,7 +49,7 @@
- never
########################################################################
- name: Build base image
hosts: gpu_server[0]
gather_facts: no
......@@ -60,38 +63,25 @@
- buildbase
- never
########################################################################
- name: setup control server basic services
hosts: dev_server
hosts: redis
gather_facts: no
roles:
- docker_registry
- redis_storage
- dhcp
- logspout
- name: setup control server
hosts: dev_server
gather_facts: no
roles:
- edd_master_controller
- effelsberg_status_server
########################################################################
- name: setup worker nodes
hosts: gpu_server
gather_facts: no
roles:
- ansible_interface
- logspout
########################################################################
- name: launch monitoring
hosts: dev_server
gather_facts: yes
- name: launch influx
hosts: influx
roles:
- influxdb_storage
- name: launch grafana
hosts: grafana
roles:
- grafana_monitoring
......@@ -13,3 +13,19 @@ all:
interface:
hosts:
edd00
redis:
hosts:
registry
redis:
hosts:
edd01
grafana:
hosts:
edd01
influx:
hosts:
edd01
---
- name: setup control server
hosts: interface
gather_facts: no
roles:
- edd_master_controller
- effelsberg_status_server
- name: use logspout to centralize logging
hosts: all
roles:
- logspout
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment