/php7-centos6-elasticsearch2-apache-mysql-vagrant-box-source

Source environment for my php7-centos6-elasticsearch2-apache-mysql-vagrant-box-source vagrant box. Provisioned using Ansible.

CentOS6 php7 Elasticsearch Apache Mysql Vagrant Box

Source environment for my CentOS6 php7 Elasticsearch Apache Mysql Vagrant Box. Provisioned using Ansible.

Pre-reqs

Versions

Basebox:centos/6 >= 1703.01

  • CentOS release 6.9 (Final)
  • Apache 2.x
  • PHP 7.1.x
  • MySQL 5.6.33
  • Java JRE 8u131
  • Kibana 4.6.x
    • Kibana sense plugin
  • Composer "latest"
  • Elasticsearch 2.x
    • Elasticsearch Kopf plugin
    • Elasticsearch Mapper-attachement plugin

Instructions

  • vagrant up
  • Make any changes you need to the box. Be sure to reflect these changes in the provisioning scripts.
  • Before packaging up the box, ssh in, and run the commands that are in the comments at the end of this readme.
  • Package up the box with vagrant package --output centos6-php7-elasticsearch-apache-mysql-0.1.0.box. Replace 0.1.0 with the version number.
  • Destroy the vm with vagrant destroy --force.
  • Add the new box to vagrant's local list with: vagrant box add centos6-php7-elasticsearch-apache-mysql-010 centos6-php7-elasticsearch-apache-mysql-0.1.0.box. Again, replace 010 and 0.1.0 with the version number.
  • Delete the .vagrant folder with rm -rf .vagrant.
  • Test out the box by going to a different folder, running vagrant init centos6-php7-elasticsearch-apache-mysql-010, and changing the Vagrantfile to fit your needs. Next, run vagrant up, and ensure everything is working.
  • Create a new version on Atlas.
  • Add a new provider to the version. The type should be virtualbox. Upload the .box file output by the vagrant package command above.

Pre-packaging commands

  • sudo rm /etc/udev/rules.d/70-persistent-net.rules
  • sudo yum clean all
  • sudo dd if=/dev/zero of=/bigemptyfile bs=1M
  • sudo rm -rf /bigemptyfile
  • sudo su
  • history -c && exit
  • cat /dev/null > ~/.bash_history && history -c && exit