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.9.1.20230107-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230107-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20230107 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221226-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221226-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221226-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221226 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221210-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221210-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221210-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221210 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221127-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221127-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221127-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221127 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221104-x86-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221104-x86_64-linux boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221104-x86_64-darwin boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20221104 boxes/definitions/centos-postinstall.sh
image_optim_pack-0.9.1.20220917-x86-linux boxes/definitions/centos-postinstall.sh