This commit is contained in:
Pim Kunis 2023-04-12 18:19:10 +02:00
parent b21fc40a38
commit c1ff6a0612
4 changed files with 26 additions and 13 deletions

View file

@ -1,4 +1,4 @@
base_data_dir: /data base_data_dir: /mnt/data
base_service_dir: /srv base_service_dir: /srv
# Additional open ports # Additional open ports

14
main.tf
View file

@ -16,10 +16,12 @@ provider "libvirt" {
} }
module "tf-datatest" { module "tf-datatest" {
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian" source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
name = "max2" name = "max2"
domain_name = "tf-max" domain_name = "tf-max"
data_disk = "/kvm/data/max-data" data_disk = "/kvm/data/max-data"
fixed_address = "192.168.30.66/24" fixed_address = "192.168.30.66/24"
ansible_command = "ansible-playbook max.yml" ansible_command = "ansible-playbook max.yml"
insecure_password = true
memory = 1024 * 8
} }

21
max.yml
View file

@ -8,18 +8,29 @@
state: started state: started
port: 22 port: 22
host: max2.dmz host: max2.dmz
timeout: 10 timeout: 300
connect_timeout: 300 connect_timeout: 300
search_regex: OpenSSH search_regex: OpenSSH
delegate_to: localhost delegate_to: localhost
- name: Wait for cloud-init to finish - name: Wait for cloud-init to finish
command: shell:
cmd: cloud-init status --wait cmd: "cloud-init status --wait"
register: cloudinit register: cloudinit
changed_when: "'..' in cloudinit.stdout" changed_when: "'..' in cloudinit.stdout"
- name: Gather facts - name: Gather facts
setup: setup:
roles: roles:
- {role: 'docker', tags: 'docker'} - {role: 'watchtower', tags: 'watchtower'}
- {role: 'traefik', tags: 'traefik'} - {role: 'forgejo', tags: 'forgejo'}
# - {role: 'syncthing', tags: 'syncthing'}
- {role: 'kms', tags: 'kms'}
- {role: 'cyberchef', tags: 'cyberchef'}
#- {role: 'radicale', tags: 'radicale'}
- {role: 'mastodon', tags: 'mastodon'}
- {role: 'seafile', tags: 'seafile'}
- {role: 'jitsi', tags: 'jitsi'}
- {role: 'freshrss', tags: 'freshrss'}
- {role: 'static', tags: 'static'}
- {role: 'inbucket', tags: 'inbucket'}
- {role: 'prometheus', tags: 'prometheus'}

View file

@ -1,3 +1,3 @@
service_name: static service_name: static
service_dir: "{{ base_service_dir }}/{{ service_name }}" service_dir: "{{ base_service_dir }}/{{ service_name }}"
git_origin: "http://localhost:{{ internal_forgejo_port }}/pim/static.git" git_origin: "http://git.pim.kunis.nl/pim/static.git"