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
269fb18b
Commit
269fb18b
authored
Jan 20, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove heavy pxe image
parent
dc516598
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
8 deletions
+30
-8
files/pxe/pxe-nginx.conf.j2
files/pxe/pxe-nginx.conf.j2
+6
-0
files/services/docker-compose.yml.j2
files/services/docker-compose.yml.j2
+11
-5
services.yaml
services.yaml
+2
-2
tasks/pxe.yaml
tasks/pxe.yaml
+11
-1
No files found.
files/pxe/pxe-nginx.conf.j2
0 → 100644
View file @
269fb18b
server {
listen 16980 default_server;
server_name _;
root /pxe/data;
index index.html;
}
files/services/docker-compose.yml.j2
View file @
269fb18b
...
...
@@ -33,9 +33,9 @@ services:
- ./apt-cacher-ng:/var/cache/apt-cacher-ng
{% endif %}
{% if dnsmasq.pxe is defined and dnsmasq.pxe == "localhost" %}
pxe:
pxe
-tftp
:
restart: always
image:
linuxserver/netbootxyz
image:
wastrachan/tftpd
environment:
PUID: {{ansible_user_uid}}
PGID: {{ansible_user_gid}}
...
...
@@ -45,10 +45,16 @@ services:
- '{{ br.address | regex_replace("/\d+$", "") }}:69:69/udp'
{% endif %}
{% endfor %}
- '{{services.address}}:16980:80'
volumes:
- ./pxe/data:/assets:ro
- ./pxe/menus:/config/menus:ro
- ./pxe/menus:/data
pxe-nginx:
restart: always
image: git-registry.mycard.moe/nanahira/docker-nginx-plus
ports:
- '{{services.address}}:16980:16980'
volumes:
- ./pxe/data:/pxe/data:ro
- ./pxe/nginx-conf:/etc/nginx/conf.d:ro
{% endif %}
{% if services.ddns is defined and services.ddns %}
{% for instance in services.ddns %}
...
...
services.yaml
View file @
269fb18b
...
...
@@ -19,9 +19,9 @@
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/others'
remove_orphans
:
true
handlers
:
-
name
:
restart_pxe
-
name
:
restart_pxe
_nginx
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/others'
restarted
:
true
services
:
-
pxe
-
pxe
-nginx
tasks/pxe.yaml
View file @
269fb18b
...
...
@@ -5,7 +5,12 @@
recurse
:
true
-
name
:
pxe menus directory
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/others/pxe/menus/local'
path
:
'
{{ansible_user_dir}}/nextgen-router/services/others/pxe/menus'
state
:
directory
recurse
:
true
-
name
:
pxe nginx directory
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/others/pxe/nginx-conf'
state
:
directory
recurse
:
true
-
name
:
boot.cfg
...
...
@@ -32,3 +37,8 @@
checksum
:
yes
archive
:
no
#notify: restart_pxe
-
name
:
pxe nginx conf
template
:
src
:
../files/pxe/pxe-nginx.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/others/pxe/nginx-conf/pxe.conf'
notify
:
restart_pxe_nginx
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