From 0a4ec3790f89873bf37a1362a6f7e70b103e9bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 18 Feb 2018 12:20:24 +0100 Subject: Add nginx --- .gitmodules | 4 ++++ modules/nginx | 1 + modules/role/manifests/cryptoportfolio.pp | 8 ++++++++ 3 files changed, 13 insertions(+) create mode 160000 modules/nginx diff --git a/.gitmodules b/.gitmodules index e380041..8071288 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,6 +31,10 @@ [submodule "modules/postgresql"] path = modules/postgresql url = git://git.immae.eu/github/puppetlabs/puppetlabs-postgresql.git +[submodule "modules/nginx"] + path = modules/nginx + url = git://git.immae.eu/github/voxpupuli/puppet-nginx.git [submodule "python/ovh"] path = python/ovh url = git://git.immae.eu/github/ovh/python-ovh + diff --git a/modules/nginx b/modules/nginx new file mode 160000 index 0000000..a7f40a8 --- /dev/null +++ b/modules/nginx @@ -0,0 +1 @@ +Subproject commit a7f40a8893e394cc57695ff81ea53254bcf1ff3a 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 { auth_method => 'md5', order => "b0", } + ensure_packages("go") + + class { 'nginx': } + + nginx::resource::server { 'cryptoportfolio.immae.eu': + listen_port => 80, + proxy => 'http://localhost:8000', + } } -- cgit v1.2.3