]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add nginx
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 11:20:24 +0000 (12:20 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 11:20:24 +0000 (12:20 +0100)
.gitmodules
modules/nginx [new submodule]
modules/role/manifests/cryptoportfolio.pp

index e380041a81b07429256c3e205460a83e99336fec..8071288e675d7406799f0d554e0ccc621a665025 100644 (file)
 [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 (submodule)
index 0000000..a7f40a8
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit a7f40a8893e394cc57695ff81ea53254bcf1ff3a
index 4b03e1682031ae5b41c6bc30f3b29dafa4606175..16c2f960a47fabe31604842a65274b4f933b12c3 100644 (file)
@@ -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',
+  }
 }