Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
egg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
egg
Commits
21c76539
Commit
21c76539
authored
9 months ago
by
Nils Olof Paulsson
Browse files
Options
Downloads
Patches
Plain Diff
templatify
parent
6bed1b73
No related branches found
Branches containing commit
No related tags found
2 merge requests
!12
Test
,
!11
templatify
Pipeline
#130863
passed
9 months ago
Stage: puppet
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/nginx.pp
+16
-4
16 additions, 4 deletions
manifests/nginx.pp
templates/egg.conf.epp
+4
-2
4 additions, 2 deletions
templates/egg.conf.epp
with
20 additions
and
6 deletions
manifests/nginx.pp
+
16
−
4
View file @
21c76539
...
...
@@ -15,10 +15,12 @@ class egg::nginx () {
notify
=>
Service
[
'nginx'
],
}
file
{
'/etc/nginx/conf.d/egg.conf'
:
ensure
=>
'present'
,
source
=>
"puppet:///modules/
${module_name}
/egg.conf"
,
notify
=>
Service
[
'nginx'
],
require
=>
Package
[
'nginx'
],
ensure
=>
'present'
,
content
=>
epp
(
"
${module_name}
/egg.conf.epp"
,
{
cert_name
=>
$hostname
,
}),
notify
=>
Service
[
'nginx'
],
require
=>
Package
[
'nginx'
],
}
# Housekeeping
...
...
@@ -31,9 +33,19 @@ class egg::nginx () {
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'
,
}
}
This diff is collapsed.
Click to expand it.
fil
es/egg.conf
→
templat
es/egg.conf
.epp
+
4
−
2
View file @
21c76539
<%- |
String
[
1
]
$cert_name
,
| -%>
server {
server_name teman.it.liu.se;
root /var/www/teman;
...
...
@@ -34,8 +36,8 @@ server {
listen 443 ssl ;
server_name egg.it.liu.se;
ssl_certificate
/
etc
/
pki
/
tls
/
certs
/
letsencrypt
-
cert_chain
-
egg
.
devel
.
it
.
liu
.
se
.
pem
;
ssl_certificate_key
/
etc
/
pki
/
tls
/
private
/
letsencrypt
-
egg
.
devel
.
it
.
liu
.
se
.
key
;
ssl_certificate /etc/pki/tls/certs/letsencrypt-cert_chain-
<%=
$cert_name
%>
.pem ;
ssl_certificate_key /etc/pki/tls/private/letsencrypt-
<%=
$cert_name
%>
.key ;
client_max_body_size 0;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment