diff options
author | Christian Franke <nobody@nowhere.ws> | 2015-08-28 18:13:09 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2015-08-28 18:13:52 +0200 |
commit | 0f001083314fb62c15be19732260e5b841c6bb51 (patch) | |
tree | 1b9c87ce931d40e41e027e28a5987f13afeb9c57 | |
parent | 6a8b1427d435c7825e8fb11cdd9352b711e1fd92 (diff) |
Don't hardcode some urls on the installed systems
-rw-r--r-- | roles/sublab_web/templates/website-rebuild.sh.j2 | 2 | ||||
-rw-r--r-- | site.yaml | 5 | ||||
-rw-r--r-- | staging | 4 | ||||
-rw-r--r-- | vars/main.yaml | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/roles/sublab_web/templates/website-rebuild.sh.j2 b/roles/sublab_web/templates/website-rebuild.sh.j2 index 227fb65..1e4bc0b 100644 --- a/roles/sublab_web/templates/website-rebuild.sh.j2 +++ b/roles/sublab_web/templates/website-rebuild.sh.j2 @@ -4,7 +4,7 @@ # cd /var/www/{{sublab_web_server_name}}/htdocs -git fetch git://git.sublab.org/website.git master +git fetch git://{{ groups['gitservers'][0] }}/website.git master git reset --hard FETCH_HEAD cd scripts python template.py @@ -1,3 +1,8 @@ --- - include: gitservers.yaml + vars_files: + - vars/main.yaml + - include: webservers.yaml + vars_files: + - vars/main.yaml @@ -4,5 +4,5 @@ wolpertinger.nowhere.ws ansible_ssh_user=root [gitservers] git-test.nowhere.ws ansible_ssh_user=root -[all:vars] -ldap_url=ldap://oberon.local.sublab.org +[authservers] +thorus.nowhere.ws ansible_ssh_user=root diff --git a/vars/main.yaml b/vars/main.yaml new file mode 100644 index 0000000..448afa4 --- /dev/null +++ b/vars/main.yaml @@ -0,0 +1,2 @@ +--- +ldap_url: "ldaps://{{ groups['authservers'][0] }}" |