Commits

William Pitcock committed fbbaeaf

Finish CentOS support.

  • Participants
  • Parent commits cacb61b

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') }}
+