Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3803172
D2217.id5576.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2217.id5576.diff
View Options
diff --git a/pillar/nodes/nodes.sls b/pillar/nodes/nodes.sls
--- a/pillar/nodes/nodes.sls
+++ b/pillar/nodes/nodes.sls
@@ -21,6 +21,9 @@
- paas-docker
- mastodon
network:
+ ipv4_address: 51.255.124.11
+ ipv4_gateway: 91.121.86.254
+
ipv6_tunnel: True
equatower:
diff --git a/roles/core/motd/files/dwellers b/roles/core/motd/files/dwellers
--- a/roles/core/motd/files/dwellers
+++ b/roles/core/motd/files/dwellers
@@ -6,8 +6,8 @@
|| || \\/\// ||..|| || || ||..|| || `'')
.||...|' \/\/ `|... .||. .||. `|... .||. `...'
- IP: 51.255.124.11
- GW: 62.210.76.1
+ IP: {{ ipv4_address }}
+ GW: {{ ipv4_gateway }}
Containers for Nasqueron and associated projects.
diff --git a/roles/core/motd/files/equatower b/roles/core/motd/files/equatower
--- a/roles/core/motd/files/equatower
+++ b/roles/core/motd/files/equatower
@@ -1,14 +1,14 @@
EQUATOWER ______
\ \
- A Nasqueron infra- \ \
- structure server. \ \_
+ A Nasqueron infra- \ \ IP: {{ ipv4_address }}
+ structure server. \ \_ GW: {{ ipv4_gateway }}
_\ \
PaaS Docker \ \
\ \_
- IP: 51.255.124.10 _\ \
- GW: 91.121.86.254 \ \
+ The containers hosted _\ \
+ here are in production. \ \
\ \_
- /// /// /// /// /// _\ \
+ /// /// /// /// /// /// _\ \
\ \
___________________________________\ \_________mic'03
diff --git a/roles/core/motd/init.sls b/roles/core/motd/init.sls
--- a/roles/core/motd/init.sls
+++ b/roles/core/motd/init.sls
@@ -6,6 +6,8 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% set network = salt['node.get']('network') %}
+
motd:
file.managed:
{% if grains['os_family'] == 'Debian' %}
@@ -14,6 +16,10 @@
- name: /etc/motd
{% endif %}
- source: salt://roles/core/motd/files/{{ grains['id'] }}
+ - template: jinja
+ - context:
+ ipv4_address: {{ network['ipv4_address'] }}
+ ipv4_gateway: {{ network['ipv4_gateway'] }}
# Fixes T858
get_rid_of_scaleway_motd:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 15:45 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2272961
Default Alt Text
D2217.id5576.diff (2 KB)
Attached To
Mode
D2217: Use pillar information for IP and gateway in MOTD
Attached
Detach File
Event Timeline
Log In to Comment