Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3790497
D1094.id2798.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1094.id2798.diff
View Options
diff --git a/roles/paas-jails/jails/files/resolv.conf b/roles/paas-jails/jails/files/resolv.conf
new file mode 100644
--- /dev/null
+++ b/roles/paas-jails/jails/files/resolv.conf
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------
+# Jails - network configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/paas-jails/jails/files/netif.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>
+nameserver 4.2.2.1
+nameserver 8.8.8.8
+search nasqueron.org
diff --git a/roles/paas-jails/jails/init.sls b/roles/paas-jails/jails/init.sls
--- a/roles/paas-jails/jails/init.sls
+++ b/roles/paas-jails/jails/init.sls
@@ -37,7 +37,7 @@
- source: salt://roles/paas-jails/jails/files/ezjail.rc
# -------------------------------------------------------------
-# Build jails
+# Build master jail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
generate_basejail:
@@ -45,6 +45,14 @@
- name: ezjail-admin install -p
- creates: /usr/jails/basejail
+/usr/jails/newjail/etc/resolv.conf:
+ file.managed:
+ - source: salt://roles/paas-jails/jails/files/resolv.conf
+
+# -------------------------------------------------------------
+# Build applications/services jails
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
{% for jail in salt['jails.list']() %}
{% set ips = salt['jails.get_ezjail_ips_parameter'](jail) %}
generate_jail_{{ jail }}:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 05:42 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2268292
Default Alt Text
D1094.id2798.diff (1 KB)
Attached To
Mode
D1094: Provision /etc/resolv.conf to jails
Attached
Detach File
Event Timeline
Log In to Comment