Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7606918
D3291.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D3291.diff
View Options
diff --git a/pillar/credentials/vault.sls b/pillar/credentials/vault.sls
--- a/pillar/credentials/vault.sls
+++ b/pillar/credentials/vault.sls
@@ -225,6 +225,9 @@
- ops/secrets/dereckson/wordpress/secrets
+ tunnel-dns:
+ - ops/secrets/network/iodine
+
viperserv:
- ops/secrets/nasqueron.viperserv.vault
diff --git a/roles/tunnel-dns/init.sls b/roles/tunnel-dns/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/tunnel-dns/init.sls
@@ -0,0 +1,9 @@
+# -------------------------------------------------------------
+# Salt — tunnel IPv4 data through a DNS server
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .iodine
diff --git a/roles/tunnel-dns/iodine/files/iodined.rc b/roles/tunnel-dns/iodine/files/iodined.rc
new file mode 100644
--- /dev/null
+++ b/roles/tunnel-dns/iodine/files/iodined.rc
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------
+# Iodine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/tunnel-dns/iodine/files/iodined.rc
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+iodined_enable="YES"
+iodined_password="{{ password }}"
+iodined_domain="ty.nasqueron.org"
diff --git a/roles/tunnel-dns/iodine/init.sls b/roles/tunnel-dns/iodine/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/tunnel-dns/iodine/init.sls
@@ -0,0 +1,31 @@
+# -------------------------------------------------------------
+# Salt — tunnel IPv4 data through a DNS server
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+iodine:
+ pkg.installed
+
+# -------------------------------------------------------------
+# Service
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains["os"] == "FreeBSD" %}
+/etc/rc.conf.d/iodine:
+ file.managed:
+ - source: salt://roles/tunnel-dns/iodine/files/iodined.rc
+ - template: jinja
+ - context:
+ password: {{ salt["credentials.get_password"]("network/iodine") }}
+{% endif %}
+
+service_iodine:
+ service.running:
+ - name: iodined
+ - enable: True
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -16,6 +16,7 @@
- roles/builder
- roles/dbserver-mysql
- roles/devserver
+ - roles/tunnel-dns
- roles/viperserv
- roles/webserver-core
- roles/webserver-legacy
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 15:17 (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2616415
Default Alt Text
D3291.diff (3 KB)
Attached To
Mode
D3291: Deploy Iodine
Attached
Detach File
Event Timeline
Log In to Comment