aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 12:20:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 12:20:24 +0100
commit0a4ec3790f89873bf37a1362a6f7e70b103e9bc2 (patch)
treeab12106e0d0e405130f07c40ee44cd6bdc18372d
parent159db2fd0619f93d330bbe9815ece76beca34aba (diff)
downloadPuppet-0a4ec3790f89873bf37a1362a6f7e70b103e9bc2.tar.gz
Puppet-0a4ec3790f89873bf37a1362a6f7e70b103e9bc2.tar.zst
Puppet-0a4ec3790f89873bf37a1362a6f7e70b103e9bc2.zip
Add nginx
-rw-r--r--.gitmodules4
m---------modules/nginx0
-rw-r--r--modules/role/manifests/cryptoportfolio.pp8
3 files changed, 12 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index e380041..8071288 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -31,6 +31,10 @@
31[submodule "modules/postgresql"] 31[submodule "modules/postgresql"]
32 path = modules/postgresql 32 path = modules/postgresql
33 url = git://git.immae.eu/github/puppetlabs/puppetlabs-postgresql.git 33 url = git://git.immae.eu/github/puppetlabs/puppetlabs-postgresql.git
34[submodule "modules/nginx"]
35 path = modules/nginx
36 url = git://git.immae.eu/github/voxpupuli/puppet-nginx.git
34[submodule "python/ovh"] 37[submodule "python/ovh"]
35 path = python/ovh 38 path = python/ovh
36 url = git://git.immae.eu/github/ovh/python-ovh 39 url = git://git.immae.eu/github/ovh/python-ovh
40
diff --git a/modules/nginx b/modules/nginx
new file mode 160000
Subproject a7f40a8893e394cc57695ff81ea53254bcf1ff3
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 4b03e16..16c2f96 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -26,5 +26,13 @@ class role::cryptoportfolio {
26 auth_method => 'md5', 26 auth_method => 'md5',
27 order => "b0", 27 order => "b0",
28 } 28 }
29
29 ensure_packages("go") 30 ensure_packages("go")
31
32 class { 'nginx': }
33
34 nginx::resource::server { 'cryptoportfolio.immae.eu':
35 listen_port => 80,
36 proxy => 'http://localhost:8000',
37 }
30} 38}