Page MenuHomeDevCentral

D816.id2069.diff
No OneTemporary

D816.id2069.diff

diff --git a/roles/shellserver/vhosts/files/vhosts b/roles/shellserver/vhosts/files/vhosts
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/vhosts/files/vhosts
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -f /etc/vhosts ]; then
+ cat /etc/vhosts
+else
+ echo "No vhosts data file found. Please create /etc/vhosts file."
+fi
diff --git a/roles/shellserver/vhosts/files/vhosts.eglide b/roles/shellserver/vhosts/files/vhosts.eglide
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/vhosts/files/vhosts.eglide
@@ -0,0 +1,39 @@
+===============================================================================
+ Eglide's IP addresses and PTR records (ie "vhosts") list
+===============================================================================
+
+IcannNet - IPv4
+---------------
+212.47.244.42 eglide.org
+
+IcannNet - IPv6
+---------------
+2001:470:1f12:896::2 nasqueron-3-pt.tunnel.tserv10.par1.ipv6.he.net
+
+2001:470:1f13:896:0:c0de:15:11fe eglide.org
+2001:470:1f13:896::1
+2001:470:1f13:896::2
+2001:470:1f13:896::3
+2001:470:1f13:896::4
+2001:470:1f13:896::5
+2001:470:1f13:896::6
+2001:470:1f13:896::7 ipv6.us.death-knight.org
+2001:470:1f13:896::8
+2001:470:1f13:896::9 turn.back.cyber-crime.ml *** NOT WORKING ***
+2001:470:1f13:896::10 T-R-O-J-A-N.69.mu
+2001:470:1f13:896::11
+2001:470:1f13:896::12 admin.okezone.web.id
+2001:470:1f13:896::13
+2001:470:1f13:896::14
+2001:470:1f13:896::15
+2001:470:1f13:896::16 sombre.du.cote.obscur.de.la.force.et.viens.dansmon.club
+2001:470:1f13:896::17
+2001:470:1f13:896::18
+2001:470:1f13:896::19
+
+ IPv6 tunnel is provided by Hurricane Electric.
+ We can add custom vhosts on request on 2001:470:1f13/64 space.
+ You only need to create a AAAA DNS record from your vhost to one 1f09 IP
+ and notify dereckson or fill a task, they'll then create the PTR record.
+
+===============================================================================
diff --git a/roles/shellserver/vhosts/init.sls b/roles/shellserver/vhosts/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/vhosts/init.sls
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Salt — vhosts configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2017-01-10
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Configuration file
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/etc/vhosts:
+ file.managed:
+ - source: salt://roles/shellserver/vhosts/files/vhosts.{{ grains['id'] }}
+ - file_mode: 644
+
+# -------------------------------------------------------------
+# Command file
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/usr/local/bin/vhosts:
+ file.managed:
+ - source: salt://roles/shellserver/vhosts/files/vhosts
+ - file_mode: 755

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 15:26 (17 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312710
Default Alt Text
D816.id2069.diff (3 KB)

Event Timeline