Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Infrastruktur
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Himmel
Infrastruktur
Commits
2f275bbe
Commit
2f275bbe
authored
Sep 28, 2019
by
MichiK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
YOLO deployment
parent
3275a221
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
90 additions
and
12 deletions
+90
-12
host_vars/gabriel.c3heaven.de
host_vars/gabriel.c3heaven.de
+42
-0
roles/nginx-https/templates/https-site.j2
roles/nginx-https/templates/https-site.j2
+2
-2
roles/postfix/defaults/main.yml
roles/postfix/defaults/main.yml
+3
-3
roles/postfix/handlers/main.yml
roles/postfix/handlers/main.yml
+6
-3
roles/postfix/tasks/main.yml
roles/postfix/tasks/main.yml
+6
-0
roles/postfix/templates/aliases.j2
roles/postfix/templates/aliases.j2
+7
-0
roles/postfix/templates/generic.j2
roles/postfix/templates/generic.j2
+5
-0
roles/postfix/templates/main.cf.j2
roles/postfix/templates/main.cf.j2
+19
-4
No files found.
host_vars/gabriel.c3heaven.de
0 → 100644
View file @
2f275bbe
acmetool_cert_domains:
- gabriel.c3heaven.de
- c3heaven.de
- lists.c3heaven.de
- wiki.c3heaven.de
nginx_http_locations:
- location: "/"
config: |
access_log off;
log_not_found off;
return 301 https://$host$request_uri;
nginx_https_default_headers:
- name: "Strict-Transport-Security"
value: "max-age=31536000; includeSubDomains"
- name: "X-XSS-Protection"
value: "1; mode=block"
- name: "X-Frame-Options"
value: "DENY"
- name: "X-Content-Type-Options"
value: "nosniff"
- name: "Referrer-Policy"
value: "same-origin"
rspamd_enabled: true
postfix_mydestination: "localhost, $myhostname, c3heaven.de"
postfix_myorigin: "c3heaven.de"
postfix_generic_map:
- "www-data@c3heaven.de noreply@c3heaven.de"
postfix_additional_admin_aliases:
- shift
- shifts
- ticket
postfix_alias_maps:
- "hash:/etc/aliases"
- "hash:/var/lib/mailman/data/aliases"
postfix_virtual_alias_domains:
- "lists.c3heaven.de"
postfix_virtual_alias_maps:
- "hash:/var/lib/mailman/data/virtual-mailman"
roles/nginx-https/templates/https-site.j2
View file @
2f275bbe
...
...
@@ -16,13 +16,13 @@ server {
{% if nginx_https_default_headers %}
{% for header in nginx_https_default_headers %}
add_header {{ header
}}
;
add_header {{ header
.name }} "{{ header.value }}"
;
{% endfor %}
{% endif %}
{% if item.headers %}
{% for header in item.headers %}
add_header {{ header
}}
;
add_header {{ header
.name }} "{{ header.value }}"
;
{% endfor %}
{% endif %}
...
...
roles/postfix/defaults/main.yml
View file @
2f275bbe
postfix_mydestination
:
"
localhost,
$myhostname"
postfix_myorigin
:
null
postfix_alias_maps
:
-
"
hash:/etc/aliases"
postfix_virtual_alias_domains
:
[]
...
...
@@ -8,6 +10,4 @@ postfix_tls_high_cipherlist: "ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-S
postfix_smtpd_tls_mandatory_protocols
:
"
TLSv1.2"
postfix_ssl_dhparam
:
"
/etc/postfix/dh_2048.pem"
postfix_ssl_dhparam_bits
:
2048
opendkim_enabled
:
false
postfix_additional_admin_aliases
:
[]
roles/postfix/handlers/main.yml
View file @
2f275bbe
-
name
:
newaliases
command
:
newaliases
-
name
:
postmap generic
command
:
postmap /etc/postfix/generic
-
name
:
restart postfix
systemd
:
name
:
postfix
state
:
restarted
-
name
:
newaliases
command
:
newaliases
roles/postfix/tasks/main.yml
View file @
2f275bbe
...
...
@@ -26,3 +26,9 @@
src
:
"
aliases.j2"
dest
:
"
/etc/aliases"
notify
:
newaliases
-
name
:
configure generic map
template
:
src
:
"
generic.j2"
dest
:
"
/etc/postfix/generic"
notify
:
postmap generic
roles/postfix/templates/aliases.j2
View file @
2f275bbe
...
...
@@ -11,3 +11,10 @@ security: admins
postmaster: admins
webmaster: admins
root: admins
{% if postfix_additional_admin_aliases %}
# additional admin aliases
{% for alias in postfix_additional_admin_aliases %}
{{ alias }}: admins
{% endfor %}
{% endif %}
roles/postfix/templates/generic.j2
0 → 100644
View file @
2f275bbe
# {{ ansible_managed }}
{% for line in postfix_generic_map %}
{{ line }}
{% endfor %}
roles/postfix/templates/main.cf.j2
View file @
2f275bbe
...
...
@@ -5,25 +5,40 @@ biff = no
compatibility_level = 2
myhostname = {{ inventory_hostname }}
mydestination = localhost, $myhostname
mydestination = {{ postfix_mydestination }}
{% if postfix_myorigin %}
myorigin = {{ postfix_myorigin }}
{% endif %}
show_user_unknown_table_name = no
alias_database = hash:/etc/aliases
alias_maps = {{ postfix_alias_maps|join(', ') }}
{% if postfix_virtual_alias_domains %}virtual_alias_domains = {{ postfix_virtual_alias_domains|join(', ') }}{% endif %}
{% if postfix_virtual_alias_maps %}virtual_alias_maps = {{ postfix_virtual_alias_maps|join(', ') }}{% endif %}
{% if postfix_virtual_alias_domains %}
virtual_alias_domains = {{ postfix_virtual_alias_domains|join(', ') }}
{% endif %}
{% if postfix_virtual_alias_maps %}
virtual_alias_maps = {{ postfix_virtual_alias_maps|join(', ') }}
{% endif %}
inet_interfaces = all
inet_protocols = ipv6, ipv4
{% if rspamd_enabled %}
smtpd_milters = inet:localhost:11332
non_smtpd_milters = inet:localhost:11332
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_default_action = accept
{% endif %}
mailbox_size_limit = {{ postfix_mailbox_size_limit }}
message_size_limit = {{ postfix_message_size_limit }}
{% if opendkim_enabled %}non_smtpd_milters = inet:localhost:11332{% endif %}
tls_high_cipherlist = {{ postfix_tls_high_cipherlist }}
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_banner = $myhostname loves ESMTP
smtpd_tls_cert_file=/var/lib/acme/live/{{ inventory_hostname }}/fullchain
...
...
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