From 6635c186c4d7bd82e45d64d686679503b5593764 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 24 Apr 2018 22:47:45 +0200 Subject: [PATCH] prepare alioth archive puppet role --- hieradata/common.yaml | 2 ++ modules/roles/manifests/alioth_archive.pp | 18 ++++++++++++++++++ modules/roles/manifests/init.pp | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 modules/roles/manifests/alioth_archive.pp diff --git a/hieradata/common.yaml b/hieradata/common.yaml index 1d5988705..7bdbd96ce 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -351,3 +351,5 @@ roles: - casulana.debian.org cdbuilder_local_mirror: - casulana.debian.org + alioth_archive: + - grabbe.debian.org diff --git a/modules/roles/manifests/alioth_archive.pp b/modules/roles/manifests/alioth_archive.pp new file mode 100644 index 000000000..76344a671 --- /dev/null +++ b/modules/roles/manifests/alioth_archive.pp @@ -0,0 +1,18 @@ +class roles::alioth_archive { + include apache2::ssl + + #apache2::site { 'XXX.debian.org': + # content => template('roles/alioth_archive/XXX.debian.org.erb') + #} + #ssl::service { 'XXX.debian.org': + # notify => Exec['service apache2 reload'], + # key => true, + #} + + #file { '/srv/XXX.debian.org': + # ensure => directory, + # mode => '2755', + # owner => XXX, + # group => XXX, + #} +} diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 2c9ed9cb5..f93090660 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -375,4 +375,8 @@ class roles { if has_role('cdbuilder_local_mirror') { include roles::cdbuilder_local_mirror } + + if has_role('alioth_archive') { + include roles::alioth_archive + } } -- 2.20.1