aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-03-11 12:18:03 +0100
committeralex <alex@pdp7.net>2023-03-11 12:18:03 +0100
commit5e565f0374840245e5012fb57ba0af24de78e34b (patch)
tree45ef53752d69a88004dba15559abf09e96525c07 /personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
parentffae0d6f55f609bf67f54891ea0c95e381a8368c (diff)
Draft proxmox proxy support + route53
Diffstat (limited to 'personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp')
-rw-r--r--personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp b/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
new file mode 100644
index 00000000..33b28de0
--- /dev/null
+++ b/personal_infra/puppet/modules/proxmox/manifests/proxy_host.pp
@@ -0,0 +1,15 @@
+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']
+}