Skip to content

Commit

Permalink
nebula: update
Browse files Browse the repository at this point in the history
  • Loading branch information
krombel committed Oct 19, 2023
1 parent 3ec57e2 commit dfc8a29
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nebula/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
nebula:
enabled: false
version: 1.5.2-2
version: 1.7.2-1

am_lighthouse: false
lighthouses:
Expand Down
66 changes: 66 additions & 0 deletions nebula/files/config.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,21 @@ firewall:
proto: udp
host: any
{%- if "docker06.in.ffmuc.net" == grains["id"] %}
# Allow connections for http backend of broker.ffmuc.net
- port: 5000
proto: tcp
group: webfrontend
# Allow connections for mqtt backend of broker.ffmuc.net
- port: 1883
proto: tcp
host: any
# Allow MQTT replicas
- port: 4370
proto: tcp
host: any
- port: 5369
proto: tcp
host: any
# Allow pushing to graylog via filebeat
- port: 5044
proto: tcp
Expand All @@ -133,6 +148,13 @@ firewall:
host: any
{%- endif %}
{%- if "docker04.in.ffmuc.net" == grains["id"] %}
# Allow MQTT replicas
- port: 4370
proto: tcp
host: any
- port: 5369
proto: tcp
host: any
# Allow connections for draw
- port: 5001
proto: tcp
Expand All @@ -145,6 +167,10 @@ firewall:
- port: 1883
proto: tcp
host: any
# Allow connections for mqtt backend of broker.ffmuc.net
- port: 1884
proto: tcp
host: any
# Allow connections for etherpad
- port: 8081
proto: tcp
Expand All @@ -153,6 +179,10 @@ firewall:
- port: 8084
proto: tcp
group: webfrontend
# Allow connections for hedgedoc
- port: 8085
proto: tcp
group: webfrontend
# Allow connections for excalidraw.ffmuc.net
- port: 8090
proto: tcp
Expand Down Expand Up @@ -189,6 +219,21 @@ firewall:
group: webfrontend
{%- endif %}
{%- if "docker05.in.ffmuc.net" == grains["id"] %}
# Allow MQTT replicas
- port: 4370
proto: tcp
host: any
- port: 5369
proto: tcp
host: any
# Allow connections for mqtt backend of broker.ffmuc.net
- port: 5000
proto: tcp
group: webfrontend
# Allow connections for http backend of broker.ffmuc.net
- port: 1883
proto: tcp
host: any
# Allow connections for chat.ffmuc.net
- port: 8000
proto: tcp
Expand Down Expand Up @@ -281,6 +326,21 @@ firewall:
group: webfrontend
{%- endif %}
{%- if "docker07.in.ffmuc.net" == grains["id"] %}
# Allow connections for http backend of broker.ffmuc.net
- port: 5000
proto: tcp
group: webfrontend
# Allow connections for mqtt backend of broker.ffmuc.net
- port: 1883
proto: tcp
host: any
# Allow MQTT replicas
- port: 4370
proto: tcp
host: any
- port: 5369
proto: tcp
host: any
# Elastiflow Logstash
- port: 2055
proto: udp
Expand All @@ -307,6 +367,12 @@ firewall:
- port: 8081
proto: tcp
group: webfrontend
- port: 9443
proto: tcp
group: webfrontend
- port: 2055
proto: udp
group: webfrontend
{%- endif %}
{%- if 'metrics.in.ffmuc.net' == grains["id"] %}
# Allow stats access
Expand Down
8 changes: 4 additions & 4 deletions nebula/files/nebula.service
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[Unit]
Description=nebula
Wants=basic.target network.target
After=basic.target network.target
Wants=basic.target network-online.target nss-lookup.target time-sync.target
After=basic.target network.target network-online.target
Before=snmpd.service

[Service]
Type=notify
NotifyAccess=main
SyslogIdentifier=nebula
StandardOutput=syslog
StandardError=syslog
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/nebula -config /etc/nebula/config.yml
Restart=always
Expand Down
6 changes: 5 additions & 1 deletion nebula/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include:
/etc/nebula/ca.crt:
file.managed:
- source: salt://nebula/cert/ca-ffmuc.crt
- source: salt://nebula/cert/ca.crt
- require:
- file: /etc/nebula/config.yml
- file: /etc/nebula/{{ grains['id'] }}.crt
Expand Down Expand Up @@ -61,11 +61,15 @@ nebula-service:
- name: nebula
- require:
- file: /etc/nebula/config.yml
- file: /etc/nebula/ca.crt
- file: /etc/nebula/{{ grains['id'] }}.crt
- file: /etc/nebula/{{ grains['id'] }}.key
- pkg: nebula-pkg
- watch:
- file: /etc/nebula/config.yml
- file: /etc/nebula/ca.crt
- file: /etc/nebula/{{ grains['id'] }}.crt
- file: /etc/nebula/{{ grains['id'] }}.key
{% else %}
{# remove old config to allow migration to new file destination #}
Expand Down

0 comments on commit dfc8a29

Please sign in to comment.