aboutsummaryrefslogtreecommitdiff
path: root/modules/role/manifests/cryptoportfolio.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 23:51:53 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-20 08:17:10 +0100
commit2bb35074eef353f03b4373f695834c0be41609ad (patch)
treeb92e60541e5493b07d20baeab688d8bb4c7295c6 /modules/role/manifests/cryptoportfolio.pp
parent428fcf14be3943fc01d234a5e622c7f8706bcb73 (diff)
downloadPuppet-2bb35074eef353f03b4373f695834c0be41609ad.tar.gz
Puppet-2bb35074eef353f03b4373f695834c0be41609ad.tar.zst
Puppet-2bb35074eef353f03b4373f695834c0be41609ad.zip
Migrate to apache
Diffstat (limited to 'modules/role/manifests/cryptoportfolio.pp')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp23
1 files changed, 18 insertions, 5 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 0f26527..084419e 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -2,6 +2,7 @@ class role::cryptoportfolio {
2 include "base_installation" 2 include "base_installation"
3 3
4 include "profile::postgresql" 4 include "profile::postgresql"
5 include "profile::apache"
5 6
6 $password_seed = lookup("base_installation::puppet_pass_seed") |$key| { {} } 7 $password_seed = lookup("base_installation::puppet_pass_seed") |$key| { {} }
7 8
@@ -47,11 +48,23 @@ class role::cryptoportfolio {
47 order => "b0", 48 order => "b0",
48 } 49 }
49 50
50 class { 'nginx': } 51 apache::vhost { $cf_front_app_host:
51 52 port => '80',
52 nginx::resource::server { $cf_front_app_host: 53 docroot => false,
53 listen_port => 80, 54 manage_docroot => false,
54 proxy => 'http://localhost:8000', 55 proxy_dest => "http://localhost:8000",
56 proxy_preserve_host => true,
57 no_proxy_uris => [
58 "/maintenance_immae.html",
59 "/googleb6d69446ff4ca3e5.html",
60 "/.well-known/acme-challenge"
61 ],
62 no_proxy_uris_match => [
63 '^/licen[cs]es?_et_tip(ping)?$',
64 '^/licen[cs]es?_and_tip(ping)?$',
65 '^/licen[cs]es?$',
66 '^/tip(ping)?$',
67 ]
55 } 68 }
56 69
57 user { $cf_user: 70 user { $cf_user: