Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions appliances/VRouter/Failover/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ def install(initdir: '/etc/init.d')
def configure
msg :info, 'Failover::configure'

puts bash <<~SCRIPT
if [[ "$(virt-what)" != vmware ]]; then
rc-update del open-vm-tools default && rc-update -u ||:
rc-service open-vm-tools stop ||:
fi
SCRIPT

toggle [:enable, :start]
end

Expand Down
24 changes: 12 additions & 12 deletions context-linux/targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case "${TARGET}" in
TYPE=${TYPE:-freebsd}
EXT=${EXT:-txz}
TAGS=${TAGS:-bsd bsd_rc one sysv crond}
DEPENDS=${DEPENDS:-sudo bash curl base64 ruby open-vm-tools-nox11 gawk virt-what}
DEPENDS=${DEPENDS:-sudo bash curl base64 ruby gawk virt-what}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-addon-context}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -38,7 +38,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server qemu-guest-agent network-scripts gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -54,7 +54,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server qemu-guest-agent gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -70,7 +70,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server qemu-guest-agent gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -86,7 +86,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils btrfs-progs cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server qemu-guest-agent gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -102,7 +102,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted qemu-guest-agent ruby rubygem-json sudo shadow-utils openssh-server gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -118,7 +118,7 @@ case "${TARGET}" in
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils cloud-utils-growpart parted ruby rubygem-json sudo shadow-utils openssh-server network-scripts gawk virt-what}
RECOMMENDS=${RECOMMENDS:-open-vm-tools}
RECOMMENDS=${RECOMMENDS:-}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init cloud-init-cfg-onprem}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -134,7 +134,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-alt}
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one networkd}
DEPENDS=${DEPENDS:-bind-utils btrfs-progs cloud-utils-growpart curl e2fsprogs iproute2 openssl parted passwd qemu-guest-agent open-vm-tools ruby-json-pure sudo systemd-services wget which xfsprogs gawk virt-what}
DEPENDS=${DEPENDS:-bind-utils btrfs-progs cloud-utils-growpart curl e2fsprogs iproute2 openssl parted passwd qemu-guest-agent ruby-json-pure sudo systemd-services wget which xfsprogs gawk virt-what}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -150,7 +150,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-.suse}
TYPE=${TYPE:-rpm}
TAGS=${TAGS:-linux rpm systemd one network-scripts}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted parted ruby sudo shadow openssh open-vm-tools qemu-guest-agent gawk virt-what} # rubygem-json}
DEPENDS=${DEPENDS:-util-linux bash curl bind-utils growpart parted parted ruby sudo shadow openssh qemu-guest-agent gawk virt-what} # rubygem-json}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init cloud-init-config-suse}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -165,7 +165,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-deb}
TAGS=${TAGS:-linux deb sysv systemd upstart one}
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 acpid|systemd sudo passwd dbus openssh-server open-vm-tools qemu-guest-agent gawk virt-what}
DEPENDS=${DEPENDS:-util-linux bash curl bind9-host cloud-utils parted ruby ifupdown|ifupdown2 acpid|systemd sudo passwd dbus openssh-server qemu-guest-agent gawk virt-what}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand All @@ -180,7 +180,7 @@ case "${TARGET}" in
RELSUFFIX=${RELSUFFIX:-}
TYPE=${TYPE:-apk}
TAGS=${TAGS:-linux apk one}
DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh open-vm-tools qemu-guest-agent gawk virt-what}
DEPENDS=${DEPENDS:-util-linux bash curl udev sfdisk parted e2fsprogs-extra sudo shadow ruby ruby-json bind-tools openssh qemu-guest-agent gawk virt-what}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-} #not respected
CONFLICTS=${CONFLICTS:-one-context-ec2}
Expand All @@ -202,7 +202,7 @@ case "${TARGET}" in
EXT=${EXT:-pkg.tar.xz}
TAGS=${TAGS:-linux arch systemd one networkd}
# mkinitcpio-growrootfs ruby-json
DEPENDS=${DEPENDS:-filesystem util-linux bash curl bind-tools ruby sudo shadow open-vm-tools qemu-guest-agent gawk virt-what}
DEPENDS=${DEPENDS:-filesystem util-linux bash curl bind-tools ruby sudo shadow qemu-guest-agent gawk virt-what}
PROVIDES=${PROVIDES:-}
REPLACES=${REPLACES:-cloud-init}
CONFLICTS=${CONFLICTS:-${REPLACES} one-context-ec2}
Expand Down
2 changes: 1 addition & 1 deletion packer/alma/80-install-context.sh.8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/alma/80-install-context.sh.9
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
3 changes: 1 addition & 2 deletions packer/alpine/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
exec 1>&2
set -eux -o pipefail

apk add tzdata haveged open-vm-tools-plugins-all
apk add tzdata haveged

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

apk add --allow-untrusted "$LATEST"

rc-update add qemu-guest-agent default
rc-update add open-vm-tools default
rc-update add haveged boot

sync
2 changes: 1 addition & 1 deletion packer/alt/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export DEBIAN_FRONTEND=noninteractive
LATEST=$(find /context/ -type f -name "one-context*-$CTXEXT" | sort -V | tail -n1)

apt-get remove --purge -y cloud-init
apt-get install -y "$LATEST" haveged open-vm-tools
apt-get install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/amazon/80-install-context.sh.2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

yum install -y "$LATEST" open-vm-tools
yum install -y "$LATEST"

sync
2 changes: 1 addition & 1 deletion packer/amazon/80-install-context.sh.2023
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

yum install -y "$LATEST" open-vm-tools
yum install -y "$LATEST"


# WARN: As Amazon2 only supports ifcfg scripts and we don't want to keep 2 different
Expand Down
2 changes: 1 addition & 1 deletion packer/debian/80-install-context.sh.11
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ policy_rc_d_disable
dpkg -i "$LATEST" || apt-get install -y -f
dpkg -i "$LATEST"

apt-get install -y haveged open-vm-tools
apt-get install -y haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/debian/80-install-context.sh.12
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ policy_rc_d_disable
dpkg -i "$LATEST" || apt-get install -y -f
dpkg -i "$LATEST"

apt-get install -y haveged open-vm-tools
apt-get install -y haveged

systemctl enable haveged

Expand Down
2 changes: 0 additions & 2 deletions packer/devuan/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ policy_rc_d_disable
dpkg -i "$LATEST" || apt-get install -y -f
dpkg -i "$LATEST"

apt-get install -y open-vm-tools

policy_rc_d_enable

sync
2 changes: 1 addition & 1 deletion packer/fedora/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/freebsd/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ freebsd-update install --not-running-from-cron || :

# contextualize
export ASSUME_ALWAYS_YES=yes
pkg install -y curl bash sudo base64 ruby open-vm-tools-nox11 gawk virt-what isc-dhcp44-client
pkg install -y curl bash sudo base64 ruby gawk virt-what isc-dhcp44-client
LATEST=$(find /tmp/context/ -type f -name "one-context-*.txz" | sort -V | tail -n1)
pkg install -y "$LATEST"
pkg clean -ay
Expand Down
2 changes: 1 addition & 1 deletion packer/ol/80-install-context.sh.8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/ol/80-install-context.sh.9
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/opensuse/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

zypper --non-interactive --no-gpg-checks install -y "$LATEST" haveged open-vm-tools
zypper --non-interactive --no-gpg-checks install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/rhel/80-install-context.sh.8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/rhel/80-install-context.sh.9
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/rocky/80-install-context.sh.8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/rocky/80-install-context.sh.9
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged open-vm-tools
dnf install -y "$LATEST" haveged

systemctl enable haveged

Expand Down
2 changes: 1 addition & 1 deletion packer/ubuntu/80-install-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ policy_rc_d_disable
dpkg -i --auto-deconfigure "$LATEST" || apt-get install -y -f
dpkg -i --auto-deconfigure "$LATEST"

apt-get install -y haveged open-vm-tools
apt-get install -y haveged

systemctl enable haveged

Expand Down
Loading