1 # sources.debian.org role
3 # @param db_address hostname of the postgres server for this service
4 # @param db_port port of the postgres server for this service
5 class roles::debsources (
12 apache2::module { 'http2': }
14 package { 'libapache2-mod-wsgi': ensure => installed, }
16 apache2::site { 'sources.debian.org':
17 site => 'sources.debian.org',
18 source => 'puppet:///modules/roles/debsources/sources.debian.org.conf',
20 ssl::service { 'sources.debian.org':
21 notify => Exec['service apache2 reload'],
25 @@postgres::cluster::hba_entry { 'debsources':
26 tag => "postgres::cluster::${db_port}::hba::${db_address}",
28 database => 'debsources',
29 user => ['debsource_admin', 'debsource_updater'],
30 address => $base::public_addresses,
33 @@postgres::cluster::hba_entry { 'debsources-guest':
34 tag => "postgres::cluster::${db_port}::hba::${db_address}",
36 database => 'debsources',
39 address => $base::public_addresses,