Skip to main content

Module scripts

Module scripts 

Source
Expand description

The root scripts behind the installs on Linux: the vendors’ apt and rpm repositories, and the distributions’ own packages. Every repository’s signing key is checked against its fingerprint, pinned here, before apt or dnf trusts it; no vendor install script runs as root.

Constants§

AWS_CLI_KEY_FINGERPRINT
Its fingerprint, as that page gives it (FB5D B77F D5C1 18B8 0511 ADA8 A631 0ACC 4672 475C).

Functions§

awscli_script
AWS CLI v2 from Amazon’s official bundle, unpacked and installed from a private directory. The distro awscli package is v1, which has no aws login (the app needs v2 >= 2.32). uname -m is x86_64 or aarch64, matching the URLs. The bundle must carry a valid signature (its .sig) by AWS’s key, embedded here (AWS_CLI_KEY): gpgv, with only that key, must report it by its fingerprint. Then unzip -t checks the archive is whole before anything in it runs.
azurecli_script
Microsoft’s azure-cli apt repository for this distro’s codename, then azure-cli: what Microsoft’s install script (aka.ms/InstallAzureCLIDeb) sets up, without running that script as root.
docker_dnf_script
Docker Engine on Fedora from Docker’s own repository, its key pinned, then its service on; the user joins the docker group as on Debian.
docker_script
Docker Engine, then the user into the docker group so the CLI can reach the daemon without root (pkexec runs as root, so $USER there is root: the name comes from the app). The group applies from the next login.
gcloud_script
Google Cloud’s apt repository, then google-cloud-cli (gcloud), system-wide: what Google documents for Debian and Ubuntu, in place of its install script.
libvirt_dnf_script
libvirt on Fedora with what vagrant-libvirt builds against (libvirt’s headers, a C compiler, pkg-config, Ruby’s headers) and the programs its VMs need beside it (virtiofsd, for the shared folders), its service on, then the user into the libvirt group (and the KVM device’s).
libvirt_script
libvirt, with what vagrant plugin install vagrant-libvirt compiles against: libvirt’s headers (libvirt-dev), a C compiler and make (build-essential), pkg-config, and Ruby’s headers for a distribution’s Vagrant (which builds on the system Ruby). Without them the plugin’s install fails building its native extension. With the programs its VMs need beside it (apt_install_with_helpers). Then the user joins the libvirt group (and kvm, where the distribution has one), so Vagrant reaches qemu:///system and /dev/kvm without root; the groups apply from the next login.
qemu_dnf_script
QEMU and its disk tools on Fedora, with the programs its VMs need beside it (genisoimage for vagrant-qemu’s cloud-init seeds, virtiofsd for its shared folders), then the user into the KVM device’s group.
qemu_script
QEMU and its disk tools, with the programs its VMs need beside it (apt_install_with_helpers: mkisofs, virtiofsd), then the user into the group /dev/kvm belongs to, so vagrant-qemu boots VMs with KVM (accel=kvm, as Vagrantfiles ask on Linux) without root; the group applies from the next login.
terraform_dnf_script
Terraform on Fedora from the same repository.
terraform_script
HashiCorp’s apt repo, then terraform.
vagrant_dnf_script
Vagrant on Fedora from HashiCorp’s rpm repository (the distribution has none).
vagrant_script
HashiCorp’s apt repo, then Vagrant: the distributions’ own package is older than projects need (Debian 13 ships 2.3.8; Vagrantfiles commonly need 2.4.0 or later), so a setup that installed it left a machine that refused them.
virtualbox_dnf_script
VirtualBox on Fedora from RPM Fusion (Oracle’s own repository lags the Fedora releases by months), its kernel module built here for the running kernel (akmods), then the user into vboxusers. RPM Fusion’s release package carries its signing key, which dnf imports as it installs it.
virtualbox_script
The distro’s own virtualbox when it has one (Ubuntu), else Oracle’s apt repo and its newest virtualbox-X.Y (Debian ships none in main, so apt-get install virtualbox failed); with what builds its kernel driver (KERNEL_BUILD), and without its recommends: a PDF viewer, Qt’s translations and the newest kernel’s headers (and so that kernel) came with them, which a headless VirtualBox that Vagrant drives never uses. When the running kernel’s headers were gone, it says the driver waits for a restart.
vmware_utility_script
HashiCorp’s apt repo, then the Vagrant VMware Utility, whose package generates its certificates and enables and starts its service, with net-tools: vagrant-vmware-desktop reads the routing table with its netstat before it makes a private network, and Debian 13 and recent Ubuntu ship none (crate::providers::vmware_utility). --reinstall: an install that is there already has its package configured again, which restarts a service that had stopped.