Role service-yanic: switch to own fork
Should be reverted after the respondd branch is merged
This commit is contained in:
parent
b1cc085e8d
commit
b35c731813
3 changed files with 11 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
Diese Ansible role installiert Yanic.
|
Diese Ansible role installiert Yanic.
|
||||||
|
|
||||||
- legt den Benutzer und Gruppe für Yanic an
|
- legt den Benutzer und Gruppe für Yanic an
|
||||||
- legt das Yanic Verzeichnis aus
|
- legt das Yanic Verzeichnis an
|
||||||
- legt die InfluxDB Datenbank für Yanic an
|
- legt die InfluxDB Datenbank für Yanic an
|
||||||
- kompiliert und installiert Yanic
|
- kompiliert und installiert Yanic
|
||||||
- schreibt yanic.conf
|
- schreibt yanic.conf
|
||||||
|
@ -22,6 +22,8 @@ Diese Ansible role installiert Yanic.
|
||||||
- Variable `yanic_user`
|
- Variable `yanic_user`
|
||||||
- Variable `yanic_home`
|
- Variable `yanic_home`
|
||||||
- Variable `yanic_path`
|
- Variable `yanic_path`
|
||||||
|
- Variable `yanic_src`
|
||||||
|
- Variable `yanic_dst`
|
||||||
- Variable `yanic_database`
|
- Variable `yanic_database`
|
||||||
- Variable `yanic_config`
|
- Variable `yanic_config`
|
||||||
- Variable `respondd_config`
|
- Variable `respondd_config`
|
||||||
|
|
|
@ -3,6 +3,8 @@ yanic_user: "yanic"
|
||||||
yanic_home: "/var/lib/yanic"
|
yanic_home: "/var/lib/yanic"
|
||||||
yanic_path: "{{ gopath }}/bin/yanic"
|
yanic_path: "{{ gopath }}/bin/yanic"
|
||||||
yanic_database: "yanic"
|
yanic_database: "yanic"
|
||||||
yanic_src: "github.com/FreifunkBremen/yanic"
|
yanic_src: "github.com/freifunk-mwu/yanic"
|
||||||
|
yanic_dst: "github.com/FreifunkBremen/yanic"
|
||||||
|
yanic_version: "mwu"
|
||||||
yanic_config: "/etc/yanic.conf"
|
yanic_config: "/etc/yanic.conf"
|
||||||
respondd_config: "/etc/respondd.conf"
|
respondd_config: "/etc/respondd.conf"
|
||||||
|
|
|
@ -7,23 +7,23 @@
|
||||||
|
|
||||||
- name: create source directory
|
- name: create source directory
|
||||||
file:
|
file:
|
||||||
path: "{{ gopath }}/src/{{ yanic_src }}"
|
path: "{{ gopath }}/src/{{ yanic_dst }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: clone repository
|
- name: clone repository
|
||||||
git:
|
git:
|
||||||
repo: "https://{{ yanic_src }}"
|
repo: "https://{{ yanic_src }}"
|
||||||
dest: "{{ gopath }}/src/{{ yanic_src }}"
|
dest: "{{ gopath }}/src/{{ yanic_dst }}"
|
||||||
version: respondd
|
version: "{{ yanic_version }}"
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
- name: ensure dependencies
|
- name: ensure dependencies
|
||||||
shell: "cd {{ gopath }}/src/{{ yanic_src }} && {{ gopath }}/bin/dep ensure"
|
shell: "cd {{ gopath }}/src/{{ yanic_dst }} && {{ gopath }}/bin/dep ensure"
|
||||||
environment:
|
environment:
|
||||||
GOPATH: "{{ gopath }}"
|
GOPATH: "{{ gopath }}"
|
||||||
|
|
||||||
- name: build binary
|
- name: build binary
|
||||||
shell: 'go install {{ gopath }}/src/{{ yanic_src }}'
|
shell: 'go install {{ gopath }}/src/{{ yanic_dst }}'
|
||||||
environment:
|
environment:
|
||||||
GOPATH: "{{ gopath }}"
|
GOPATH: "{{ gopath }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue