Kapitel 11: Webcluster
This commit is contained in:
parent
31d1b763c1
commit
3ab68cf98a
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -23,3 +23,9 @@
|
|||
[submodule "roles.extern/prepare-dnf5"]
|
||||
path = roles.extern/prepare-dnf5
|
||||
url = https://git.velt.biz/svelt/role.prepare-dnf5.git
|
||||
[submodule "roles.webcluster"]
|
||||
path = roles.webcluster
|
||||
url = https://git.velt.biz/Ansible/roles.webcluster.git
|
||||
[submodule "roles.extern/selfsignedcert"]
|
||||
path = roles.extern/selfsignedcert
|
||||
url = https://git.velt.biz/Ansible/selfsignedcert.git
|
||||
|
|
37
11/ansible.cfg
Normal file
37
11/ansible.cfg
Normal file
|
@ -0,0 +1,37 @@
|
|||
[defaults]
|
||||
|
||||
# Inventory
|
||||
inventory = ./hosts.ini
|
||||
|
||||
# Roles paths
|
||||
roles_path = ./roles:./roles.extern:./roles.webcluster:/etc/ansible/roles
|
||||
|
||||
# Interpreter Discovery - Ohne Warnings
|
||||
interpreter_python = auto_silent
|
||||
|
||||
# SSH
|
||||
remote_user = root
|
||||
#host_key_checking = False
|
||||
|
||||
# Retry files
|
||||
retry_files_enabled = yes
|
||||
retry_files_save_path = ./.cache/Retry/
|
||||
|
||||
# Log files
|
||||
#log_path = ./log/ansible.log
|
||||
|
||||
# Fact caching
|
||||
gathering = smart
|
||||
fact_caching_timeout = 86400
|
||||
fact_caching = yaml
|
||||
fact_caching_connection = ./.cache/facts/
|
||||
|
||||
# Farben ausschalten
|
||||
#nocolor = 1
|
||||
|
||||
[colors]
|
||||
# Für dunklen Hintergrund in der Console
|
||||
verbose = bright blue
|
||||
debug = bright gray
|
||||
error = bright red
|
||||
|
5
11/webcluster-cert.yml
Normal file
5
11/webcluster-cert.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: selfsignedcert
|
1
11/webcluster-db.yml
Symbolic link
1
11/webcluster-db.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../roles.webcluster/webcluster-db.yml
|
1
11/webcluster-lb.yml
Symbolic link
1
11/webcluster-lb.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../roles.webcluster/webcluster-lb.yml
|
1
11/webcluster-site.yml
Symbolic link
1
11/webcluster-site.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../roles.webcluster/webcluster-site.yml
|
1
11/webcluster-worker.yml
Symbolic link
1
11/webcluster-worker.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../roles.webcluster/webcluster-worker.yml
|
|
@ -1 +1 @@
|
|||
07/ansible.cfg
|
||||
11/ansible.cfg
|
12
helper/11_gitmodules.sh
Executable file
12
helper/11_gitmodules.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
mkdir -p roles.extern
|
||||
|
||||
git submodule add https://git.velt.biz/Ansible/roles.webcluster.git roles.webcluster
|
||||
git submodule add https://git.velt.biz/Ansible/selfsignedcert.git roles.extern/selfsignedcert
|
||||
|
||||
cd roles.webcluster
|
||||
git submodule init
|
||||
git submodule update
|
||||
cd ..
|
||||
|
2
host_vars/tn00-debian12.yml
Normal file
2
host_vars/tn00-debian12.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
worker_phpversion: 8.2
|
25
hosts.ini
25
hosts.ini
|
@ -70,4 +70,29 @@ voidlinux
|
|||
[zypper:children]
|
||||
opensuse
|
||||
|
||||
############################################################
|
||||
|
||||
[lb]
|
||||
tn00-alpine3k
|
||||
tn00-alpine3l
|
||||
|
||||
[lb:vars]
|
||||
ansible_ssh_transfer_method=piped
|
||||
|
||||
[worker]
|
||||
tn00-ubu2404a
|
||||
tn00-ubu2404b
|
||||
tn00-ubu2404c
|
||||
tn00-ubu2404d
|
||||
|
||||
tn00-debian12
|
||||
|
||||
[db]
|
||||
tn00-ubu2404a
|
||||
tn00-ubu2404b
|
||||
|
||||
[webcluster:children]
|
||||
lb
|
||||
worker
|
||||
db
|
||||
|
||||
|
|
1
roles.extern/selfsignedcert
Submodule
1
roles.extern/selfsignedcert
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 52ae5ce3bb1f9918651c09d68da8a14c0e75eba9
|
1
roles.webcluster
Submodule
1
roles.webcluster
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 36ce0d1f9ff1a012320d80c1835f787ac151773b
|
Loading…
Reference in a new issue