and we have a ssl-conf file
This commit is contained in:
parent
5d28f51f55
commit
41407ad951
2 changed files with 24 additions and 0 deletions
|
@ -53,6 +53,13 @@
|
||||||
tags:
|
tags:
|
||||||
- nagios_server
|
- nagios_server
|
||||||
|
|
||||||
|
- name: Install the SSL apache module
|
||||||
|
yum: name={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- mod_ssl
|
||||||
|
when: env == "production" and nagios_location == "external"
|
||||||
|
|
||||||
|
|
||||||
## Copy over the httpd SSL certs for external
|
## Copy over the httpd SSL certs for external
|
||||||
- name: Install the SSL cert so that we can use https
|
- name: Install the SSL cert so that we can use https
|
||||||
copy: >
|
copy: >
|
||||||
|
|
17
roles/nagios_server/templates/httpd/0_nagios-external.conf
Normal file
17
roles/nagios_server/templates/httpd/0_nagios-external.conf
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName nagios-external.fedoraproject.org
|
||||||
|
Redirect permanent / https://nagios-external.fedoraproject.org/
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerName nagios-external.fedoraproject.org:443
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLProtocol {{ ssl_protocols }}
|
||||||
|
SSLCipherSuite {{ ssl_ciphers }}
|
||||||
|
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||||
|
|
||||||
|
SSLCertificateFile /etc/pki/tls/certs/noc02.fedoraproject.org.cert
|
||||||
|
SSLCertificateChainFile /etc/pki/tls/certs/noc02.fedoraproject.org.intermediate.cert
|
||||||
|
SSLCertificateKeyFile /etc/pki/tls/certs/noc02.fedoraproject.org.key
|
||||||
|
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue