From: Zoltán Felleg Date: Fri, 17 May 2019 08:26:35 +0000 (+0200) Subject: Added cvm.usr.f30. X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=076f92d34273408c450d79237cf9288207589df9;p=user-lxc.git Added cvm.usr.f30. --- diff --git a/sources/cvm.usr.f30/01_setupnetworking.sh b/sources/cvm.usr.f30/01_setupnetworking.sh new file mode 100755 index 0000000..aaa4925 --- /dev/null +++ b/sources/cvm.usr.f30/01_setupnetworking.sh @@ -0,0 +1,35 @@ +#!/bin/sh + + +INTERNAL_DEVICE=internal +CONNECTION_LINE=$(nmcli --terse connection show | grep "${INTERNAL_DEVICE}$") +CONNECTION_UUID=$(echo $CONNECTION_LINE | cut -f 2 -d ':') + +nmcli connection delete uuid "$CONNECTION_UUID" + +nmcli connection add \ + connection.autoconnect yes \ + connection.id internal \ + connection.interface-name $INTERNAL_DEVICE \ + connection.type 802-3-ethernet \ + ipv4.addresses "10.228.109.52/16" \ + ipv4.dns "10.228.109.104, 10.228.109.253" \ + ipv4.dns-search "usr.user.hu" \ + ipv4.gateway "10.228.109.254" \ + ipv4.method "manual" \ + ipv6.method "ignore" \ + save yes + +nmcli connection show + +for LXC_DEVICE in efgd efgs ifg svc ldap vpn pns ins +do + CONNECTION_LINE=$(nmcli --terse connection show | grep "${LXC_DEVICE}$") + if [ -n "$CONNECTION_LINE" ] + then + CONNECTION_UUID=$(echo $CONNECTION_LINE | cut -f 2 -d ':') + nmcli connection delete uuid "$CONNECTION_UUID" + fi +done + +nmcli connection show diff --git a/sources/cvm.usr.f30/99_setupsystem.sh b/sources/cvm.usr.f30/99_setupsystem.sh new file mode 100755 index 0000000..112218a --- /dev/null +++ b/sources/cvm.usr.f30/99_setupsystem.sh @@ -0,0 +1,6 @@ +#!/bin/sh + + +hostnamectl set-hostname cvm.usr.user.hu +systemctl enable lxc.service +systemctl start lxc.service diff --git a/sources/cvm.usr.f30/etc/sysctl.d/01-lxc.conf b/sources/cvm.usr.f30/etc/sysctl.d/01-lxc.conf new file mode 100644 index 0000000..77fcb19 --- /dev/null +++ b/sources/cvm.usr.f30/etc/sysctl.d/01-lxc.conf @@ -0,0 +1,8 @@ +#fs.inotify.max_queued_events = 16384 +# This is the default. + +fs.inotify.max_user_instances = 1024 +# The default is 128. + +#fs.inotify.max_user_watches = 8192 +# This is the default. diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-efgd.link b/sources/cvm.usr.f30/etc/systemd/network/10-efgd.link new file mode 100644 index 0000000..b96a81b --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-efgd.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:41:01 + +[Link] +Name=efgd diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-efgs.link b/sources/cvm.usr.f30/etc/systemd/network/10-efgs.link new file mode 100644 index 0000000..b421c5b --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-efgs.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:d2:01 + +[Link] +Name=efgs diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-ifg.link b/sources/cvm.usr.f30/etc/systemd/network/10-ifg.link new file mode 100644 index 0000000..a2938a4 --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-ifg.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:fe + +[Link] +Name=ifg diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-ins.link b/sources/cvm.usr.f30/etc/systemd/network/10-ins.link new file mode 100644 index 0000000..9411067 --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-ins.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:68 + +[Link] +Name=ins diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-internal.link b/sources/cvm.usr.f30/etc/systemd/network/10-internal.link new file mode 100644 index 0000000..027ab24 --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-internal.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:34 + +[Link] +Name=internal diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-ldap.link b/sources/cvm.usr.f30/etc/systemd/network/10-ldap.link new file mode 100644 index 0000000..3cd6166 --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-ldap.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:fc + +[Link] +Name=ldap diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-pns.link b/sources/cvm.usr.f30/etc/systemd/network/10-pns.link new file mode 100644 index 0000000..2521dd9 --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-pns.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:ae + +[Link] +Name=pns diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-svc.link b/sources/cvm.usr.f30/etc/systemd/network/10-svc.link new file mode 100644 index 0000000..237346c --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-svc.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:fd + +[Link] +Name=svc diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-vpn.link b/sources/cvm.usr.f30/etc/systemd/network/10-vpn.link new file mode 100644 index 0000000..1838bce --- /dev/null +++ b/sources/cvm.usr.f30/etc/systemd/network/10-vpn.link @@ -0,0 +1,5 @@ +[Match] +MACAddress=00:50:56:1e:6d:ec + +[Link] +Name=vpn diff --git a/sources/cvm.usr.f30/packages.txt b/sources/cvm.usr.f30/packages.txt new file mode 100644 index 0000000..5c28527 --- /dev/null +++ b/sources/cvm.usr.f30/packages.txt @@ -0,0 +1,5 @@ +lxc +lxc-templates +mercurial +screen +vim-enhanced