William Pitcock avatar William Pitcock committed fbbaeaf

Finish CentOS support.

Comments (0)

Files changed (4)

appliancekit/specs/redhat-base.spec

 {% endblock %}
 {% block configure %}
 	{{ super() }}
+	{"operation": "render_template", "template": "redhat/HOSTNAME.tmpl", "target": "/etc/HOSTNAME"},
+	{"operation": "render_template", "template": "redhat/sysconfig-network.tmpl", "target": "/etc/sysconfig/network"},
+	{"operation": "render_template", "template": "redhat/sysconfig-network-ifcfg.tmpl", "target": "/etc/sysconfig/network-scripts/ifcfg-eth0"},
 {% endblock %}
 {% block xentweaks %}
 	{{ super() }}

appliancekit/specs/redhat/HOSTNAME.tmpl

+{{ hostname|default('localhost') }}

appliancekit/specs/redhat/sysconfig-network-ifcfg.tmpl

+# Generated by ApplianceKit.  Do not modify unless you know what you're doing.
+DEVICE=eth0
+ONBOOT=yes
+{% if eth0 == 'dhcp' %}
+BOOTPROTO=dhcp
+{% elif isinstance(eth0, dict) %}
+BOOTPROTO=none
+IPADDR={{ eth0['address'] }}
+NETMASK={{ eth0['netmask'] }}
+BROADCAST={{ eth0['broadcast'] }}
+GATEWAY={{ eth0['gateway'] }}
+{% endif %}

appliancekit/specs/redhat/sysconfig-network.tmpl

+# Generated by ApplianceKit.  Do not modify unless you know what you're doing.
+NETWORKING=yes
+HOSTNAME={{ hostname|default('localhost') }}
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.