Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
4335e4af
Commit
4335e4af
authored
Mar 20, 2018
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc fixups to the ssl deployment
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
17a1ff4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
roles/nginx/templates/reload-nginx
roles/nginx/templates/reload-nginx
+4
-1
roles/nginx/templates/sites/default.conf
roles/nginx/templates/sites/default.conf
+2
-0
roles/postfix/templates/reload-postfix
roles/postfix/templates/reload-postfix
+4
-0
roles/ssl-keys/templates/letsencrypt/hooks.sh
roles/ssl-keys/templates/letsencrypt/hooks.sh
+2
-1
No files found.
roles/nginx/templates/reload-nginx
View file @
4335e4af
#!/bin/
ba
sh
#!/bin/sh
#
# {{ ansible_managed }}
#
set
-eu
echo
"reloading nginx…"
sudo
service nginx reload
roles/nginx/templates/sites/default.conf
View file @
4335e4af
...
...
@@ -10,4 +10,6 @@ server {
return
204
"This is {{ inventory_hostname }}. If you came here there is a misconfiguration somewhere. Please inform gruppo-sistemisti@liste.ubuntu-it.org about the issue."
;
add_header
Content
-
Type
text
/
plain
;
}
include
/
etc
/
nginx
/
snippets
/
dehydrated
.
conf
;
}
roles/postfix/templates/reload-postfix
View file @
4335e4af
#!/bin/sh
#
# {{ ansible_managed }}
#
set
-eu
if
[
"
$1
"
=
"
$(
hostname
-f
)
"
]
;
then
echo
"reloading postfix…"
sudo
service postfix reload
fi
roles/ssl-keys/templates/letsencrypt/hooks.sh
View file @
4335e4af
...
...
@@ -5,6 +5,7 @@
set
-eu
OP
=
$1
shift
_log
()
{
echo
" + (
$OP
)
$*
"
...
...
@@ -13,7 +14,7 @@ _log () {
case
"
$OP
"
in
deploy_cert
)
DOMAIN
=
"
$1
"
run-parts
--exit-on-error
--arg
=
"
$DOMAIN
"
--
report
--
{{
ssl_home
}}
/hooks
run-parts
--exit-on-error
--arg
=
"
$DOMAIN
"
--
verbose
--
{{
ssl_home
}}
/hooks
;;
*
)
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment