File: vm.install

package info (click to toggle)
cockpit-machines 288-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,524 kB
  • sloc: javascript: 17,649; python: 11,445; sh: 724; makefile: 145; xml: 18
file content (17 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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)
printf "[WebService]\\nAllowUnencrypted=true\\n" > /etc/cockpit/cockpit.conf

if type firewall-cmd >/dev/null 2>&1; then
    firewall-cmd --add-service=cockpit --permanent
fi