init: initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#cloud-config
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
enp1s0:
|
||||
accept-ra: false
|
||||
dhcp4: false
|
||||
dhcp6: false
|
||||
addresses:
|
||||
- "${ipv4_address}/${ipv4_prefix}"
|
||||
- "${ipv6_address}/${ipv6_prefix}"
|
||||
gateway4: "${ipv4_gateway}"
|
||||
gateway6: "${ipv6_gateway}"
|
||||
nameservers:
|
||||
addresses:
|
||||
- "1.1.1.1"
|
||||
- "2606:4700:4700::1111"
|
||||
@@ -0,0 +1,30 @@
|
||||
#cloud-config
|
||||
hostname: node
|
||||
manage_etc_hosts: false
|
||||
|
||||
users:
|
||||
- name: ubuntu
|
||||
gecos: ubuntu
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
lock_passwd: false
|
||||
ssh_pwauth: true
|
||||
shell: /bin/bash
|
||||
|
||||
ssh_pwauth: true
|
||||
chpasswd:
|
||||
list: |
|
||||
ubuntu:ubuntu
|
||||
expire: false
|
||||
|
||||
growpart:
|
||||
mode: auto
|
||||
devices: ["/"]
|
||||
|
||||
package_update: false
|
||||
package_upgrade: false
|
||||
|
||||
write_files:
|
||||
- path: /etc/hosts
|
||||
append: true
|
||||
encoding: b64
|
||||
content: ${hosts_file}
|
||||
@@ -0,0 +1,4 @@
|
||||
10.6.6.1 _gateway
|
||||
|
||||
10.6.6.10 node
|
||||
2001:db8:ca2:2::10 node
|
||||
@@ -0,0 +1,22 @@
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output omit-xml-declaration="yes" indent="yes" />
|
||||
<xsl:template match="node()|@*">
|
||||
<xsl:copy><xsl:apply-templates select="node()|@*" /></xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="target[@bus='ide']">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*[name()!='bus']" />
|
||||
<xsl:attribute name="bus">sata</xsl:attribute>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/domain">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()[not(self::os)] | @*" />
|
||||
<os firmware="efi">
|
||||
<type arch="{./os/type/@arch}" machine="{./os/type/@machine}">hvm</type>
|
||||
</os>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user