Some tooling improvements.
This commit is contained in:
parent
2a41cdd72d
commit
b208937cc9
5 changed files with 17 additions and 1 deletions
1
dev/.gitignore
vendored
1
dev/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
config/vm*.conf
|
config/vm*.conf
|
||||||
config/vm*.html
|
config/vm*.html
|
||||||
|
config/vm*.sh
|
||||||
docker-compose.yaml
|
docker-compose.yaml
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
server.document-root = "/var/www/"
|
server.document-root = "/var/www/"
|
||||||
|
server.bind = "{{ item.ip }}"
|
||||||
server.port = 8080
|
server.port = 8080
|
4
dev/config/wgvirtipd.sh.tmpl
Executable file
4
dev/config/wgvirtipd.sh.tmpl
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
wgvirtipd --addr={{ item.ip }}:8082 --link wg0
|
||||||
|
exit $?
|
|
@ -11,8 +11,9 @@ services:
|
||||||
- ./config/{{ item.item }}-keepalived.conf:/etc/keepalived/keepalived.conf
|
- ./config/{{ item.item }}-keepalived.conf:/etc/keepalived/keepalived.conf
|
||||||
- ./config/check.sh:/etc/keepalived/check.sh
|
- ./config/check.sh:/etc/keepalived/check.sh
|
||||||
- ./config/master.sh:/etc/keepalived/master.sh
|
- ./config/master.sh:/etc/keepalived/master.sh
|
||||||
- ./config/lighttpd.conf:/etc/lighttpd/lighttpd.conf
|
- ./config/{{ item.item }}-lighttpd.conf:/etc/lighttpd/lighttpd.conf
|
||||||
- ./config/{{ item.item }}-index.html:/var/www/index.html
|
- ./config/{{ item.item }}-index.html:/var/www/index.html
|
||||||
|
- ./config/{{ item.item }}-wgvirtipd.sh:/usr/local/bin/wgvirtipd.sh
|
||||||
- ../target/x86_64-unknown-linux-musl/debug:/opt/wgvirtipd
|
- ../target/x86_64-unknown-linux-musl/debug:/opt/wgvirtipd
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
|
|
@ -43,10 +43,19 @@
|
||||||
src: ./config/keepalived.conf.tmpl
|
src: ./config/keepalived.conf.tmpl
|
||||||
dest: ./config/{{ item.item }}-keepalived.conf
|
dest: ./config/{{ item.item }}-keepalived.conf
|
||||||
with_items: "{{ keypairs }}"
|
with_items: "{{ keypairs }}"
|
||||||
|
- template:
|
||||||
|
src: ./config/lighttpd.conf.tmpl
|
||||||
|
dest: ./config/{{ item.item }}-lighttpd.conf
|
||||||
|
with_items: "{{ keypairs }}"
|
||||||
- template:
|
- template:
|
||||||
src: ./config/index.html.tmpl
|
src: ./config/index.html.tmpl
|
||||||
dest: ./config/{{ item.item }}-index.html
|
dest: ./config/{{ item.item }}-index.html
|
||||||
with_items: "{{ keypairs }}"
|
with_items: "{{ keypairs }}"
|
||||||
|
- template:
|
||||||
|
src: ./config/wgvirtipd.sh.tmpl
|
||||||
|
dest: ./config/{{ item.item }}-wgvirtipd.sh
|
||||||
|
mode: 0755
|
||||||
|
with_items: "{{ keypairs }}"
|
||||||
- template:
|
- template:
|
||||||
src: ./docker-compose.yaml.tmpl
|
src: ./docker-compose.yaml.tmpl
|
||||||
dest: ./docker-compose.yaml
|
dest: ./docker-compose.yaml
|
||||||
|
|
Loading…
Reference in a new issue