Newer
Older
# intelligent comment here
class egg::nginx () {
$hostname = fact( 'networking.fqdn' )
$hostalias = ['teman.it.liu.se', 'ntadigital.it.liu.se', 'egg.it.liu.se']
profiles::letsencrypt::cert { $hostname :
addn_domains => $hostalias
}
package { 'nginx':
ensure => 'installed',
}
# inserf conf. files here
file { '/etc/nginx/nginx.conf':
ensure => 'file',
source => "puppet:///modules/${module_name}/nginx.conf",
notify => Service['nginx'],
}
ensure => 'present',
content => epp("${module_name}/egg.conf.epp", {
cert_name => $hostname,
}),
notify => Service['nginx'],
require => Package['nginx'],
enable => true,
}
firewalld_service { 'Allow http in the liu Zone':
ensure => present,
zone => 'liu',
service => 'http',
}
firewalld_service { 'Allow https from liu Zone':
ensure => present,
zone => 'liu',
service => 'https',
}
firewalld_service { 'Allow http in the public Zone':
ensure => present,
zone => 'public',
service => 'http',
}
firewalld_service { 'Allow https from public Zone':
ensure => present,
zone => 'public',
service => 'https',
}