Page MenuHomeDevCentral

D1094.diff
No OneTemporary

D1094.diff

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

Mime Type
text/plain
Expires
Thu, Nov 28, 03:47 (20 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2268292
Default Alt Text
D1094.diff (1 KB)

Event Timeline