--- /dev/null
+---
+- name: create A entries
+ local_action:
+ module: amazon.aws.route53
+ zone: "{{ network.dns_zone }}"
+ record: "{{ item }}"
+ type: A
+ value: "{{ network.ip }}"
+ wait: true
+ state: present
+ loop: "{{ network.proxmox.proxy_hosts }}"
tags: ipsilon
roles:
- deploy_ipsilon
+
+- name: proxmox route 53
+ hosts: proxmox
+ tags: proxmox_route_53
+ gather_facts: false
+ roles:
+ - proxmox_route_53
file {'/etc/apache2/sites-enabled/test.conf':
content => @("EOT")
- MDomain $base_hostname
+ MDomain $base_hostname auto
MDCertificateAgreement accepted
MDContactEmail $mail
MDNotifyCmd /usr/local/bin/notify_md_renewal
--- /dev/null
+define proxmox::proxy_host (String[1] $target) {
+ file {"/etc/apache2/sites-enabled/$title.conf":
+ content => @("EOT")
+ MDomain $title
+
+ <VirtualHost *:443>
+ ServerName $title
+ SSLEngine on
+ </VirtualHost>
+ | EOT
+ ,
+ }
+ ~>
+ Service['apache2']
+}
node 'h1.pdp7.net' {
class {'proxmox::freeipa':}
+ class {'dns_dhcp':}
+
+ # TODO: ugly; tinc scripts require this :(
+ package {'net-tools':}
+
class {'proxmox::proxy':
mail => lookup('mail.root_mail'),
base_hostname => lookup('network.public_hostname'),
}
- class {'dns_dhcp':}
- # TODO: ugly; tinc scripts require this :(
- package {'net-tools':}
+ proxmox::proxy_host {'ipsilon-test.pdp7.net':
+ target => 'ipsilon-test.h1.int.pdp7.net',
+ }
}
ansible==7.1.0
ansible-core==2.14.1
+boto3==1.26.89
+botocore==1.29.89
cachetools==5.3.0
certifi==2022.12.7
cffi==1.15.1
requests-oauthlib==1.3.1
resolvelib==0.8.1
rsa==4.9
+s3transfer==0.6.0
six==1.16.0
urllib3==1.26.14
websocket-client==1.5.1