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
14e9049f
Commit
14e9049f
authored
Jan 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntp
parent
d17701bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
files/dnsmasq/dnsmasq.conf.j2
files/dnsmasq/dnsmasq.conf.j2
+9
-0
files/services/docker-compose.yml.j2
files/services/docker-compose.yml.j2
+7
-1
No files found.
files/dnsmasq/dnsmasq.conf.j2
View file @
14e9049f
...
@@ -83,3 +83,12 @@ dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace
...
@@ -83,3 +83,12 @@ dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if dnsmasq.ntp is defined and dnsmasq.ntp %}
# NTP
{% if dnsmasq.ntp != "localhost" %}
dhcp-option=42,{{dnsmasq.ntp}}
{% else %}
dhcp-option=42,0.0.0.0
{% endif %}
{% endif %}
files/services/docker-compose.yml.j2
View file @
14e9049f
...
@@ -72,6 +72,7 @@ services:
...
@@ -72,6 +72,7 @@ services:
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% if dnsmasq.pxe is defined and dnsmasq.pxe == "ntp" %}
ntp:
ntp:
restart: always
restart: always
image: cturra/ntp
image: cturra/ntp
...
@@ -80,4 +81,9 @@ services:
...
@@ -80,4 +81,9 @@ services:
cap_add:
cap_add:
- SYS_TIME
- SYS_TIME
ports:
ports:
- '123:123/udp'
{% for br in bridges %}
{% if br.dhcp is defined and br.dhcp %}
- '{{ br.address | regex_replace("/\d+$", "") }}:123:123/udp'
{% endif %}
{% endfor %}
{% endif %}
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