Compare commits

...

4 Commits

Author SHA1 Message Date
Fritz Grimpen e53fbcb802 Add rudimentary README 2022-11-26 23:50:39 +00:00
Fritz Grimpen 3ad3372f84 Jabber stuff 2022-11-26 23:49:01 +00:00
Fritz Grimpen f5a258b9a1 Changes 2022-11-26 22:38:59 +01:00
Fritz Grimpen ca45f138f9 Define frab vm for blazr 2022-11-26 20:55:44 +01:00
11 changed files with 65 additions and 15 deletions

View File

@ -1,3 +1,7 @@
# ansible
CCC HB Ansible
CCC HB Ansible
## Deployment
ansible-playbook -i hosts/ [-l HOSTS] [-t TAGS] sites.yml

View File

@ -1,19 +1,9 @@
---
- hosts:
- localhost
become: yes
tasks:
- name: Install passlib
package:
name: py39-netaddr
state: present
- hosts:
- emma
become: yes
tags: bhyve
roles:
- bhyve

View File

@ -3,4 +3,3 @@
become: yes
roles:
- debian
- { role: user_mgmt, tags: [user_mgmt]}

View File

@ -31,3 +31,8 @@ user_mgmt_default:
present:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDSHkU00aO4U98ikMiiiWiEeRj/597UzFcFctwY8iwLy humm@fluorine"
absent: []
blazr:
ssh_key:
present:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDbxgesllBFfJUfwYX58rZln0ZpOq/Jyp361OmKohiQFHUyWK6wlPqDmfhqJuLPkAZQOjmK25gvLQXJ19+y1arjtGgbgf2nrjkCJ1l/2SHIa088DVYvZDLly+cSDMOUwgM1bzlKrHYK5asFihM+XJDV2oKUBIWaVNLHK99hpmiDXQ== jollyjinx@planetexpress.local"
absent: []

View File

@ -1,5 +1,5 @@
---
ansible_python_interpreter: /usr/bin/python3.7
ansible_python_interpreter: /usr/bin/python3
dns: 213.133.98.98 8.8.8.8
ipv6_subnet: '2a01:4f8:150:926f::'
@ -8,6 +8,6 @@ ipv4_subnet: 10.0.0.0
ipv6: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)+1) }}/127'
ipv6route: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)) }}'
ansible_ssh_host: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}'
#ansible_ssh_host: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}'
ipv4: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}/31'
ipv4route: '{{ ipv4_subnet | ipmath(2 * vm_index) }}'

View File

@ -40,6 +40,8 @@ haproxy_http:
addr: '2a01:4f8:150:926f::13'
- host: 'element.ccchb.de'
addr: '2a01:4f8:150:926f::13'
- host: 'frab.ccchb.de'
addr: '2a01:4f8:150:926f::17'
haproxy_sni:
- host: 'ccchb.de'
@ -68,6 +70,8 @@ haproxy_sni:
addr: '2a01:4f8:150:926f::13'
- host: 'element.ccchb.de'
addr: '2a01:4f8:150:926f::13'
- host: 'frab.ccchb.de'
addr: '2a01:4f8:150:926f::17'
bhyve_ipv4: 10.0.0.0
bhyve_ipv6: 2a01:4f8:150:926f::4
@ -219,3 +223,19 @@ bhyve_guests:
volsize: 128g
volblocksize: 64k
primarycache: metadata
- name: frab
index: 9
enabled: true
ram: 1G
cpus: 1
image: ubuntu-22.04.1-live-server-amd64.iso
password: foobar
order:
- DISKS
disks:
- name: disk
properties:
volsize: 128g
volblocksize: 64k
primarycache: metadata

View File

@ -0,0 +1,15 @@
vm_index: 9
user_mgmt:
crest:
state: present
groups: sudo
fritz:
state: present
groups: sudo
humm:
state: present
groups: sudo
blazr:
state: present
groups: sudo

2
hosts/10_frab Normal file
View File

@ -0,0 +1,2 @@
[frab]
frab.emma.ccchb.de

8
jabber.yml Normal file
View File

@ -0,0 +1,8 @@
---
- hosts:
- jabber
become: yes
tags: [jabber]
roles:
- certbot
- prosody

View File

@ -7,3 +7,4 @@
- import_playbook: mail.yml
- import_playbook: restic.yml
- import_playbook: wiki.yml
- import_playbook: users.yml

6
users.yml Normal file
View File

@ -0,0 +1,6 @@
---
- hosts: debian frab
become: yes
tags: [user_mgmt]
roles:
- user_mgmt