You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Sven Ketelsen 0e9c26e439 chore: switched workflow search to elastic mode 5 years ago
ansible-builder spike: creating branches for projects on gitlab from ansible 5 years ago
docker/dregsy chore: docker registry sync for sensw 5 years ago
group_vars chore: switched workflow search to elastic mode 5 years ago
host_vars Feature/awx 5 years ago
roles chore: switched workflow search to elastic mode 5 years ago
smardigo/provisioning chore: switched workflow search to elastic mode 5 years ago
templates spike: creating branches for projects on gitlab from ansible 5 years ago
users SMARCH-46: smardigo self service portal (wip) 5 years ago
.gitignore spike: creating branches for projects on gitlab from ansible 5 years ago
README.md chore: switched workflow search to elastic mode 5 years ago
create-branch.yml spike: creating branches for projects on gitlab from ansible 5 years ago
create-database.yml chore: switched workflow search to elastic mode 5 years ago
create-realm.yml chore: switched workflow search to elastic mode 5 years ago
create-server.yml chore: switched workflow search to elastic mode 5 years ago
create-service.yml chore: switched workflow search to elastic mode 5 years ago
elastic-certs.sh SMARCH-33: added elastic stack setup 5 years ago
provisioning.yml SMARCH-46: smardigo self service portal (wip) 5 years ago
setup.yml SMARCH-33: added elastic stack setup 5 years ago
smardigo.yml Feature/awx 5 years ago
stage-dev Feature/awx 5 years ago
start.yml feat: setup servers on hetzner cloud 5 years ago
stop.yml feat: setup servers on hetzner cloud 5 years ago
update.sh chore: switched workflow search to elastic mode 5 years ago

README.md

Prepare ansible Installation

Install ansible with Python.

pip3 install ansible

Install library jmespath (https://jmespath.org/). Will be used to parse JSON data.

pip3 install jmespath

Install ansible role for managing hetzner cloud servers.

pip3 install hcloud
ansible-galaxy collection install hetzner.hcloud
ansible-galaxy collection install community.general
ansible-galaxy install geerlingguy.kubernetes
ansible-galaxy collection install community.kubernetes

Setup

Create/Start servers for stage-dev

ansible-playbook -i stage-dev provisioning.yml --vault-password-file ~/vault-pass
ansible-playbook -i stage-dev start.yml --vault-password-file ~/vault-pass
ansible-playbook -i stage-dev stop.yml --vault-password-file ~/vault-pass

Provisioning

ansible-playbook -i stage-dev setup.yml --vault-password-file ~/vault-pass -u root
ansible-playbook dynamic-provisioning.yml  --vault-password-file ~/vault-pass -e "stage=dev name=test node=01 service=connect"

Setup Smardigo Service

Setup/Configure a Server, Database, Realm (keycloak) and Smardigo
ansible-playbook create-server.yml -e "stage='dev' tenant_id='sken' cluster_name='test01' cluster_size='1' cluster_service='connect' stage='dev'"
ansible-playbook create-database.yml -e "stage='dev' tenant_id='sken' cluster_name='test01' cluster_size='1' cluster_service='connect' stage='dev'"
ansible-playbook create-realm.yml -e "stage='dev' tenant_id='sken' cluster_name='test01' cluster_size='1' cluster_service='connect' stage='dev' current_realm_name='sken' current_realm_display_name='S-K-E-N'"
ansible-playbook create-service.yml -e "stage='dev' tenant_id='sken' cluster_name='test01' cluster_size='1' cluster_service='connect' stage='dev' current_realm_name='sken' current_realm_display_name='S-K-E-N'" 

TODO

212.121.131.106 - Siemansdamm - IPFire

Keykloak Read Flow for Docker Get ID by 'docker auth' Update Client 'docker-registry' Download Installation Docker-Registry Use Installation from Keycloak Client 'docker-registry' Prometheus (Grafana) docker exec -i df4d6b176f5e sh -c 'grafana-cli plugins install grafana-piechart-panel' docker restart df4d6b176f5e