diff --git a/group_vars/reverseproxy.yml b/group_vars/reverseproxy.yml index 34857ab459b54ee66a537699a7f9254e8680e724..3ca1356e7cad60a26ad4bcc79f97a7a31318cfbd 100644 --- a/group_vars/reverseproxy.yml +++ b/group_vars/reverseproxy.yml @@ -52,6 +52,7 @@ nginx: - {from: phabricator.crans.org, to: 172.16.10.116} - {from: trackerusercontent.crans.org, to: 172.16.10.116} - {from: wiki.crans.org, to: 172.16.10.161} + - {from: ethercalc.crans.org, to: "172.16.10.133:8000"} # - {from: mailman.crans.org, to: 10.231.136.180} # # # Zamok diff --git a/host_vars/ethercalc-srv.adm.crans.org b/host_vars/ethercalc-srv.adm.crans.org new file mode 100644 index 0000000000000000000000000000000000000000..bd946faf1a83aa78c7a005febc27a994bd89f894 --- /dev/null +++ b/host_vars/ethercalc-srv.adm.crans.org @@ -0,0 +1,2 @@ +ethercalc: + ipv4: '172.16.10.133' diff --git a/hosts b/hosts index 86ead7eaee54b7423f0d8e29e648ddbb76c01719..55eff40f76a367ba0f381b77aaf09815b6b1d5bf 100644 --- a/hosts +++ b/hosts @@ -33,6 +33,9 @@ frontdaur.adm.crans.org [roundcube] roundcube-srv.adm.crans.org +[ethercalc] +ethercalc-srv.adm.crans.org + [horde] horde-srv.adm.crans.org @@ -94,6 +97,7 @@ pastemoisa.adm.crans.org casouley.adm.crans.org kiwi.adm.crans.org tracker.adm.crans.org +ethercalc-srv.adm.crans.org [ovh_physical] sputnik.adm.crans.org diff --git a/plays/ethercalc.yml b/plays/ethercalc.yml new file mode 100755 index 0000000000000000000000000000000000000000..f7a6a03f61c97c3969bae9d3582852488a8ab275 --- /dev/null +++ b/plays/ethercalc.yml @@ -0,0 +1,5 @@ +#!/usr/bin/env ansible-playbook +--- +- hosts: ethercalc + roles: + - ethercalc diff --git a/roles/ethercalc/templates/systemd/system/ethercalc.service.j2 b/roles/ethercalc/templates/systemd/system/ethercalc.service.j2 index 22fb27e54a49839d3f3936dae27bfeefceff4eef..7f251cb5b53ff4d6a5f9d703865a2c172efe4851 100644 --- a/roles/ethercalc/templates/systemd/system/ethercalc.service.j2 +++ b/roles/ethercalc/templates/systemd/system/ethercalc.service.j2 @@ -11,7 +11,7 @@ RestartSec=3 User=redis Group=redis PIDFile=/var/run/ethercalc.pid -ExecStart=/usr/bin/ethercalc --host 10.231.136.203 --port 8000 +ExecStart=/usr/bin/ethercalc --host {{ ethercalc.ipv4 }} --port 8000 [Install] WantedBy=multi-user.target