mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Add Azure creation script
This commit is contained in:
parent
f83330c72c
commit
d7b7f5a044
3
Makefile
3
Makefile
@ -82,6 +82,9 @@ clearfog: clean prepare
|
|||||||
azure: clean prepare
|
azure: clean prepare
|
||||||
@set -e
|
@set -e
|
||||||
@echo "It's not like I'm building this specially for you or anything!"
|
@echo "It's not like I'm building this specially for you or anything!"
|
||||||
|
cp tools/cloud-init/99-walinuxagent.chroot build/config/hooks/
|
||||||
|
cp tools/cloud-init/vyos-azure.list.chroot build/config/package-lists/
|
||||||
|
cp -f tools/cloud-init/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
|
||||||
cd $(build_dir)
|
cd $(build_dir)
|
||||||
@../scripts/build-azure-image
|
@../scripts/build-azure-image
|
||||||
|
|
||||||
|
|||||||
17
tools/cloud-init/99-walinuxagent.chroot
Executable file
17
tools/cloud-init/99-walinuxagent.chroot
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo I: Waagent / Cloud init
|
||||||
|
|
||||||
|
# debug info:
|
||||||
|
#echo ForwardToConsole=yes >> /etc/systemd/journald.conf
|
||||||
|
|
||||||
|
# dhcp issue on azure
|
||||||
|
sed -ie 's,rfc3442-classless-static-routes,disabled-\0,' /etc/dhcp/dhclient.conf
|
||||||
|
|
||||||
|
rm -f /etc/ssh/ssh_host_*
|
||||||
|
rm -f /var/log/waagent.log
|
||||||
|
rm -r /var/cache/apt/*
|
||||||
|
rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# prevent systemd message flooding
|
||||||
|
echo ':msg, contains, "Time has been changed" ~' > /etc/rsyslog.d/time_msgs.conf
|
||||||
30
tools/cloud-init/config.boot.default
Normal file
30
tools/cloud-init/config.boot.default
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
system {
|
||||||
|
syslog {
|
||||||
|
global {
|
||||||
|
facility all {
|
||||||
|
level info
|
||||||
|
}
|
||||||
|
facility protocols {
|
||||||
|
level debug
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ntp {
|
||||||
|
server "0.pool.ntp.org"
|
||||||
|
server "1.pool.ntp.org"
|
||||||
|
server "2.pool.ntp.org"
|
||||||
|
}
|
||||||
|
console {
|
||||||
|
device ttyS0 {
|
||||||
|
speed 9600
|
||||||
|
}
|
||||||
|
}
|
||||||
|
config-management {
|
||||||
|
commit-revisions 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
interfaces {
|
||||||
|
loopback lo {
|
||||||
|
}
|
||||||
|
}
|
||||||
2
tools/cloud-init/vyos-azure.list.chroot
Normal file
2
tools/cloud-init/vyos-azure.list.chroot
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cloud-init
|
||||||
|
walinuxagent
|
||||||
Loading…
x
Reference in New Issue
Block a user