2024-03-31 00:49:09 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# File: tumbleweed
|
|
|
|
#
|
2024-03-31 04:41:50 +02:00
|
|
|
# Purpose: Provisioning script to install packages and set-up environment
|
|
|
|
# on OpenSUSE Tumbleweed for pbot-vm.
|
2024-03-31 00:49:09 +01:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2024 Pragmatic Software <pragma78@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
# for virt-io socket
|
2024-03-31 05:48:45 +02:00
|
|
|
zypper -n in socat
|
2024-03-31 00:49:09 +01:00
|
|
|
|
|
|
|
# for `cc` C language support
|
2024-03-31 06:06:44 +02:00
|
|
|
zypper -n in libubsan1 libasan8 gdb gcc gcc-32bit glibc-32bit clang
|
2024-03-31 00:49:09 +01:00
|
|
|
|
|
|
|
# for `cc` additional languages
|
2024-03-31 05:48:45 +02:00
|
|
|
zypper -n in ksh zsh tcl lua php8-cli nodejs-common guile bff bc gcc-c++
|
|
|
|
zypper -n in --no-recommends clisp gcc-go java java-devel
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
|
|
|
|
# for pbot-vm guest-server support
|
|
|
|
zypper -n in perl-IPC-Run perl-JSON-XS
|
|
|
|
|
|
|
|
# disable networking
|
2024-04-12 22:07:27 +02:00
|
|
|
./guest/bin/network off nftables
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
|
|
|
|
echo 'Networking disabled.'
|
2024-04-12 22:07:27 +02:00
|
|
|
echo 'To re-enable, run ./guest/bin/network on nftables'
|
|
|
|
echo 'To disable again, run ./guest/bin/network off nftables'
|