init: initial commit

This commit is contained in:
ITQ
2025-12-26 15:47:40 +03:00
commit 63c37b28dc
13 changed files with 304 additions and 0 deletions
+17
View File
@@ -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"
+30
View File
@@ -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}
+4
View File
@@ -0,0 +1,4 @@
10.6.6.1 _gateway
10.6.6.10 node
2001:db8:ca2:2::10 node
+22
View File
@@ -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>