aboutsummaryrefslogtreecommitdiff
path: root/modules/role/manifests/cryptoportfolio.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-20 08:24:52 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-20 11:25:25 +0100
commite345248bd85980f6fefe7bc62251cc5b97f64854 (patch)
treea79915044f1b86322ce4d2c085eb5ddda58c0c46 /modules/role/manifests/cryptoportfolio.pp
parent8af3ea1e76efa88a52d089a4f6ac65a175f31369 (diff)
downloadPuppet-e345248bd85980f6fefe7bc62251cc5b97f64854.tar.gz
Puppet-e345248bd85980f6fefe7bc62251cc5b97f64854.tar.zst
Puppet-e345248bd85980f6fefe7bc62251cc5b97f64854.zip
Add letsencrypt
Diffstat (limited to 'modules/role/manifests/cryptoportfolio.pp')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp27
1 files changed, 14 insertions, 13 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 49ab57b..d2323a4 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -49,23 +49,24 @@ class role::cryptoportfolio {
49 order => "b0", 49 order => "b0",
50 } 50 }
51 51
52 letsencrypt::certonly { $cf_front_app_host: ;
53 default: * => $::profile::apache::letsencrypt_certonly_default;
54 }
55
56 class { 'apache::mod::headers': }
52 apache::vhost { $cf_front_app_host: 57 apache::vhost { $cf_front_app_host:
53 port => '80', 58 port => '443',
54 docroot => false, 59 docroot => false,
55 manage_docroot => false, 60 manage_docroot => false,
56 proxy_dest => "http://localhost:8000", 61 proxy_dest => "http://localhost:8000",
57 proxy_preserve_host => true, 62 request_headers => 'set X-Forwarded-Proto "https"',
58 no_proxy_uris => [ 63 ssl => true,
59 "/maintenance_immae.html", 64 ssl_cert => "/etc/letsencrypt/live/$cf_front_app_host/cert.pem",
60 "/googleb6d69446ff4ca3e5.html", 65 ssl_key => "/etc/letsencrypt/live/$cf_front_app_host/privkey.pem",
61 "/.well-known/acme-challenge" 66 ssl_chain => "/etc/letsencrypt/live/$cf_front_app_host/chain.pem",
62 ], 67 require => Letsencrypt::Certonly[$cf_front_app_host],
63 no_proxy_uris_match => [ 68 proxy_preserve_host => true;
64 '^/licen[cs]es?_et_tip(ping)?$', 69 default: * => $::profile::apache::apache_vhost_default;
65 '^/licen[cs]es?_and_tip(ping)?$',
66 '^/licen[cs]es?$',
67 '^/tip(ping)?$',
68 ]
69 } 70 }
70 71
71 user { $cf_user: 72 user { $cf_user: