Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
ea9f396b
Commit
ea9f396b
authored
Dec 23, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use dynamic babeld
parent
5d65f431
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
ansible/configure.yaml
ansible/configure.yaml
+19
-19
update.sh
update.sh
+1
-1
No files found.
ansible/configure.yaml
View file @
ea9f396b
...
...
@@ -123,13 +123,13 @@
template
:
src
:
babeld.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-network/services/babeld.conf'
notify
:
restart_babeld
#
notify: restart_babeld
when
:
not noBird
#
- name: babeld reload conf
#
template:
#
src: babeld-reload.conf.j2
#
dest: /tmp/babeld-reload.conf
#
notify: reload_babeld
-
name
:
babeld reload conf
template
:
src
:
babeld-reload.conf.j2
dest
:
/tmp/babeld-reload.conf
notify
:
reload_babeld
-
name
:
frps conf
template
:
src
:
protocols/wgfrp/frps.ini.j2
...
...
@@ -162,7 +162,7 @@
template
:
src
:
babeld.conf.j2
dest
:
'
/etc/babeld.conf'
notify
:
restart_babeld_systemd
#
notify: restart_babeld_systemd
when
:
systemBird
-
name
:
enable systemd babeld
become
:
true
...
...
@@ -183,13 +183,13 @@
services
:
-
bird
when
:
not noBird
-
name
:
restart_babeld
# ocserv would be always restarted whenever key changes..
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
restarted
:
true
services
:
-
babeld
when
:
not noBird
#
- name: restart_babeld # ocserv would be always restarted whenever key changes..
#
docker_compose:
#
project_src: '{{ansible_user_dir}}/nextgen-network/services'
#
restarted: true
#
services:
#
- babeld
#
when: not noBird
-
name
:
reload_babeld
shell
:
cat /tmp/babeld-reload.conf | nc ::1
33123
-
name
:
restart_frps
...
...
@@ -227,11 +227,11 @@
systemd
:
name
:
bird
state
:
restarted
-
name
:
restart_babeld_systemd
become
:
true
systemd
:
name
:
babeld
state
:
restarted
#
- name: restart_babeld_systemd
#
become: true
#
systemd:
#
name: babeld
#
state: restarted
-
name
:
reload_chnroute
become
:
true
shell
:
|
...
...
update.sh
View file @
ea9f396b
...
...
@@ -28,7 +28,7 @@ _strip_wg_conf() {
# _strip_wg_conf ./protocols/wg/wg.conf.j2 ./protocols/wg/wg-setconf.conf.j2
_strip_wg_conf ./protocols/wgfrp/wgfrp.conf.j2 ./protocols/wgfrp/wgfrp-setconf.conf.j2
cat
babeld.conf.j2
>
babeld-reload.conf.j2
sed
-r
'/^(#.*)?$/d;/^reflect-kernel-metric/d;/^local-port-readwrite/d'
babeld.conf.j2
>
babeld-reload.conf.j2
echo
'quit'
>>
babeld-reload.conf.j2
ansible-playbook
-i
../result/inventory.yaml
"
$@
"
configure.yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment