Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
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
MyCard
nextgen-router
Commits
1eacb39c
Commit
1eacb39c
authored
Apr 25, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add restartCron
parent
497e8b55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
network.yaml
network.yaml
+14
-0
variables.yaml
variables.yaml
+1
-0
No files found.
network.yaml
View file @
1eacb39c
...
@@ -143,6 +143,7 @@
...
@@ -143,6 +143,7 @@
become
:
true
become
:
true
blockinfile
:
blockinfile
:
path
:
/etc/ppp/{{item}}-secrets
path
:
/etc/ppp/{{item}}-secrets
marker
:
'
#
{mark}
MyCard
NextGen
Router
block'
block
:
|
block
:
|
{% for user in pppoeUsers %}
{% for user in pppoeUsers %}
"{{user.username}}" * "{{user.password}}"
"{{user.username}}" * "{{user.password}}"
...
@@ -160,6 +161,18 @@
...
@@ -160,6 +161,18 @@
with_items
:
with_items
:
-
up
-
up
-
down
-
down
-
name
:
pppoe cron tasks
become
:
true
blockinfile
:
path
:
/etc/crontab
marker
:
'
#
{mark}
MyCard
NextGen
Router
block'
block
:
|
{% for ppp in ppps %}
{% if ppp.restartCron is defined and ppp.restartCron %}
{{ppp.restartCron}} root /sbin/ifdown ppp{{ppp.id}} ; /sbin/ifup ppp{{ppp.id}}
{% endif %}
{% endfor %}
when
:
ppps is defined and ppps
-
name
:
pppoe peer config
-
name
:
pppoe peer config
include_tasks
:
./interface-tasks/pppoe.yaml
include_tasks
:
./interface-tasks/pppoe.yaml
vars
:
vars
:
...
@@ -176,6 +189,7 @@
...
@@ -176,6 +189,7 @@
become
:
true
become
:
true
blockinfile
:
blockinfile
:
path
:
/etc/sysctl.conf
path
:
/etc/sysctl.conf
marker
:
'
#
{mark}
MyCard
NextGen
Router
block'
block
:
|
block
:
|
{% for br in bridges %}
{% for br in bridges %}
net.ipv4.conf.{{br.name}}.rp_filter = 0
net.ipv4.conf.{{br.name}}.rp_filter = 0
...
...
variables.yaml
View file @
1eacb39c
...
@@ -57,6 +57,7 @@ vars:
...
@@ -57,6 +57,7 @@ vars:
address
:
10.198.21.1
# 网关地址,填写 _use_first 使用可用地址第一个,填写 _use_last 使用可用地址最后一个
address
:
10.198.21.1
# 网关地址,填写 _use_first 使用可用地址第一个,填写 _use_last 使用可用地址最后一个
mac
:
null
# 网关mac地址,为null则自动ping获取,但是bridge有启动坑容易获取失败
mac
:
null
# 网关mac地址,为null则自动ping获取,但是bridge有启动坑容易获取失败
noOrigin
:
false
# 是否关闭源进源出,对于专门peer的网关,这个可能很有用。
noOrigin
:
false
# 是否关闭源进源出,对于专门peer的网关,这个可能很有用。
restartCron
:
'
0
4
*
*
*'
# 重启 crontab
up
:
null
up
:
null
down
:
null
down
:
null
mac
:
null
mac
:
null
...
...
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