File: vm.install

package info (click to toggle)
cockpit-machines 348-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 281,568 kB
  • sloc: javascript: 708,409; python: 14,549; cpp: 11,141; sh: 954; makefile: 159; xml: 88
file content (18 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# image-customize script to prepare a a bots VM for cockpit-machines testing
set -eu

# for Debian images, allow libvirtd coredumps
if grep -q 'ID=debian' /usr/lib/os-release; then
    echo '* soft core unlimited' >> /etc/security/limits.conf
fi

systemctl enable cockpit.socket

# don't force https:// (self-signed cert)
mkdir -p /etc/cockpit
printf "[WebService]\\nAllowUnencrypted=true\\n" > /etc/cockpit/cockpit.conf

if systemctl is-active -q firewalld.service; then
    firewall-cmd --add-service=cockpit --permanent
fi