Sha256: ff752b30c412aba40a4cbc524cdcb5ad8c5fa502ce72ec7d9339fec557a7061e

Contents?: true

Size: 870 Bytes

Versions: 139

Compression:

Stored size: 870 Bytes

Contents

set -ex

sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers

yum -y install wget

# Make ssh faster by not waiting on DNS
echo "UseDNS no" >> /etc/ssh/sshd_config

# Vagrant specific
date > /etc/vagrant_box_build_time

# Add vagrant user
/usr/sbin/groupadd vagrant
/usr/sbin/useradd vagrant -g vagrant -G wheel
echo "vagrant"|passwd --stdin vagrant
echo "vagrant        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
chmod 0440 /etc/sudoers.d/vagrant

# Installing vagrant keys
mkdir -pm 700 /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
chmod 0600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant /home/vagrant/.ssh

yum -y clean all

# Zero out the free space to save space in the final image
dd if=/dev/zero of=/filler bs=1M || rm /filler

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
image_optim_pack-0.10.1.20240317 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.1.20240317-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.1.20240317-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.1-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.1-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.1 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231105-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231105-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231105 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231014-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231014-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0.20231014 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.10.0 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230828 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230828-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230828-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230828-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230814-x86-linux boxes/definitions/centos-postinstall.sh