From 335562bbe2753e443a6f1dc3b67b4e422377d15d Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 23 Nov 2019 11:21:19 +0100 Subject: [PATCH] Add initial configuration for trabaci.debian.org running the ddtp role --- data/nodes/trabaci.debian.org.yaml | 3 +++ modules/roles/manifests/ddtp.pp | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 data/nodes/trabaci.debian.org.yaml create mode 100644 modules/roles/manifests/ddtp.pp diff --git a/data/nodes/trabaci.debian.org.yaml b/data/nodes/trabaci.debian.org.yaml new file mode 100644 index 000000000..5dc108f55 --- /dev/null +++ b/data/nodes/trabaci.debian.org.yaml @@ -0,0 +1,3 @@ +--- +classes: + - roles::ddtp diff --git a/modules/roles/manifests/ddtp.pp b/modules/roles/manifests/ddtp.pp new file mode 100644 index 000000000..e18f4e3a9 --- /dev/null +++ b/modules/roles/manifests/ddtp.pp @@ -0,0 +1,11 @@ +# ddtp.debian.org service +# +class roles::ddtp { + include apache2 + + ssl::service { 'ddtp.debian.org': + notify => Exec['service apache2 reload'], + key => true, + } + onion::service { 'ddtp.debian.org': port => 80, target_address => 'ddtp.debian.org', target_port => 80, direct => true } +} -- 2.20.1