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
4f65c6d8
Commit
4f65c6d8
authored
Dec 31, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pxe
parent
a5f84af4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
+30
-19
files/dnsmasq/dnsmasq.conf.j2
files/dnsmasq/dnsmasq.conf.j2
+25
-18
files/services/docker-compose.yml.j2
files/services/docker-compose.yml.j2
+5
-1
No files found.
files/dnsmasq/dnsmasq.conf.j2
View file @
4f65c6d8
...
@@ -48,31 +48,38 @@ host-record=security.ubuntu.com,deb.debian.org,security.debian.org,{{services.ad
...
@@ -48,31 +48,38 @@ host-record=security.ubuntu.com,deb.debian.org,security.debian.org,{{services.ad
{% if dnsmasq.pxe is defined and dnsmasq.pxe %}
{% if dnsmasq.pxe is defined and dnsmasq.pxe %}
# PXE
# PXE
{% if dnsmasq.pxe != "localhost" %}
## detect PXE type
dhcp-match=set:bios,60,PXEClient:Arch:00000
dhcp-match=set:bios,60,PXEClient:Arch:00000
dhcp-boot=tag:bios,netboot.xyz.kpxe,,{{dnsmasq.pxe}}
dhcp-match=set:efi32,60,PXEClient:Arch:00002
dhcp-match=set:efi32,60,PXEClient:Arch:00002
dhcp-boot=tag:efi32,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-match=set:efi32-1,60,PXEClient:Arch:00006
dhcp-match=set:efi32-1,60,PXEClient:Arch:00006
dhcp-boot=tag:efi32-1,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-match=set:efi64,60,PXEClient:Arch:00007
dhcp-match=set:efi64,60,PXEClient:Arch:00007
dhcp-boot=tag:efi64,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-match=set:efi64-1,60,PXEClient:Arch:00008
dhcp-match=set:efi64-1,60,PXEClient:Arch:00008
dhcp-boot=tag:efi64-1,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-match=set:efi64-2,60,PXEClient:Arch:00009
dhcp-match=set:efi64-2,60,PXEClient:Arch:00009
{% if dnsmasq.pxe != "localhost" %}
## remote PXE server
dhcp-boot=tag:bios,netboot.xyz.kpxe,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi32,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi32-1,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi64,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi64-1,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi64-2,netboot.xyz.efi,,{{dnsmasq.pxe}}
dhcp-boot=tag:efi64-2,netboot.xyz.efi,,{{dnsmasq.pxe}}
{% else %}
{% else %}
dhcp-match=set:bios,60,PXEClient:Arch:00000
{% for br in bridges %}
dhcp-boot=tag:bios,netboot.xyz.kpxe,,{{services.address}}
{% if br.dhcp is defined and br.dhcp %}
dhcp-match=set:efi32,60,PXEClient:Arch:00002
## PXE server for {{br.name}}
dhcp-boot=tag:efi32,netboot.xyz.efi,,{{services.address}}
tag-if=tag:{{br.name}},tag:bios,set:bios-{{br.name}}
dhcp-match=set:efi32-1,60,PXEClient:Arch:00006
tag-if=tag:{{br.name}},tag:efi32,set:efi32-{{br.name}}
dhcp-boot=tag:efi32-1,netboot.xyz.efi,,{{services.address}}
tag-if=tag:{{br.name}},tag:efi32-1,set:efi32-1-{{br.name}}
dhcp-match=set:efi64,60,PXEClient:Arch:00007
tag-if=tag:{{br.name}},tag:efi64,set:efi64-{{br.name}}
dhcp-boot=tag:efi64,netboot.xyz.efi,,{{services.address}}
tag-if=tag:{{br.name}},tag:efi64-1,set:efi64-1-{{br.name}}
dhcp-match=set:efi64-1,60,PXEClient:Arch:00008
tag-if=tag:{{br.name}},tag:efi64-2,set:efi64-2-{{br.name}}
dhcp-boot=tag:efi64-1,netboot.xyz.efi,,{{services.address}}
dhcp-boot=tag:bios-{{br.name}},netboot.xyz.kpxe,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-match=set:efi64-2,60,PXEClient:Arch:00009
dhcp-boot=tag:efi32-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-2,netboot.xyz.efi,,{{services.address}}
dhcp-boot=tag:efi32-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-1-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
dhcp-boot=tag:efi64-2-{{br.name}},netboot.xyz.efi,,{{ br.address | regex_replace("/\d+$", "") }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
files/services/docker-compose.yml.j2
View file @
4f65c6d8
...
@@ -40,7 +40,11 @@ services:
...
@@ -40,7 +40,11 @@ services:
PUID: {{ansible_user_uid}}
PUID: {{ansible_user_uid}}
PGID: {{ansible_user_gid}}
PGID: {{ansible_user_gid}}
ports:
ports:
- '69:69/udp'
{% for br in bridges %}
{% if br.dhcp is defined and br.dhcp %}
- '{{ br.address | regex_replace("/\d+$", "") }}:69:69/udp'
{% endif %}
{% endfor %}
- '{{services.address}}:16980:80'
- '{{services.address}}:16980:80'
volumes:
volumes:
- ./pxe/data:/assets:ro
- ./pxe/data:/assets:ro
...
...
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