Skip to content
Snippets Groups Projects
Commit 64f3c770 authored by Carlo Navarra's avatar Carlo Navarra
Browse files

Merge branch 'production' into 'carna56-production-patch-47398'

# Conflicts:
#   manifests/init.pp
parents b790b97a 7a094cc9
No related branches found
No related tags found
1 merge request!15added proxy to localhost:8200
Pipeline #94720 failed
......@@ -7,34 +7,49 @@ class ai4ca (
include nginx
include liurepo::postgres
yumrepo { 'pgdg-common':
name => 'pgdg-common',
baseurl => 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch',
enabled => 1,
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG',
gpgcheck => 1,
require => Class['liurepo::postgres'],
}
package { 'postgresql':
ensure => disabled,
provider => 'dnfmodule',
}
package {
[
'postgresql-server',
'postgresql11-server',
'postgis31_11',
'python3',
]:
ensure => installed,
}
nginx::resource::server { fact('networking.fqdn'):
ensure => present,
www_root => $www_root,
location_cfg_append => {
'rewrite' => '^ https://$server_name$request_uri? permanent',
},
}
if fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.combined") {
nginx::resource::server { fact('networking.fqdn'):
ensure => present,
www_root => $www_root,
location_cfg_append => {
'rewrite' => '^ https://$server_name$request_uri? permanent',
},
}
nginx::resource::server { "${fact('networking.fqdn')} HTTPS":
ensure => present,
listen_port => 443,
www_root => $www_root,
index_files => $index_files,
ssl => true,
ssl_cert => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.combined"),
ssl_key => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.key"),
ssl_protocols => 'TLSv1.3 TLSv1.2',
ssl_ciphers => 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384',
}
nginx::resource::server { "${fact('networking.fqdn')} HTTPS":
ensure => present,
listen_port => 443,
www_root => $www_root,
index_files => $index_files,
ssl => true,
ssl_cert => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.combined"),
ssl_key => fact("letsencrypt_certs.\"${fact('networking.fqdn')}\".files.key"),
ssl_protocols => 'TLSv1.3 TLSv1.2',
ssl_ciphers => 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384', # lint:ignore:140chars
}
nginx::resource::location { '/va/':
ensure => present,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment