Skip to content
Snippets Groups Projects

templatify

Merged Nils Olof Paulsson requested to merge devel into test
2 files
+ 20
6
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 16
4
@@ -15,10 +15,12 @@ class egg::nginx () {
@@ -15,10 +15,12 @@ class egg::nginx () {
notify => Service['nginx'],
notify => Service['nginx'],
}
}
file { '/etc/nginx/conf.d/egg.conf':
file { '/etc/nginx/conf.d/egg.conf':
ensure => 'present',
ensure => 'present',
source => "puppet:///modules/${module_name}/egg.conf",
content => epp("${module_name}/egg.conf.epp", {
notify => Service['nginx'],
cert_name => $hostname,
require => Package['nginx'],
}),
 
notify => Service['nginx'],
 
require => Package['nginx'],
}
}
# Housekeeping
# Housekeeping
@@ -31,9 +33,19 @@ class egg::nginx () {
@@ -31,9 +33,19 @@ class egg::nginx () {
zone => 'liu',
zone => 'liu',
service => 'http',
service => 'http',
}
}
 
firewalld_service { 'Allow https from liu Zone':
 
ensure => present,
 
zone => 'liu',
 
service => 'https',
 
}
firewalld_service { 'Allow http in the public Zone':
firewalld_service { 'Allow http in the public Zone':
ensure => present,
ensure => present,
zone => 'public',
zone => 'public',
service => 'http',
service => 'http',
}
}
 
firewalld_service { 'Allow https from public Zone':
 
ensure => present,
 
zone => 'public',
 
service => 'https',
 
}
}
}
Loading