How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "jeff1evesque/centos7x"
end
vagrant init jeff1evesque/centos7x
vagrant up
This version was created about 6 years ago.
sha256: 16be49023b48a52f88c535e07ab92fec13447a61d2e11c0bf1c2830c72f570d9
This version was created over 7 years ago.
We assume that any Vagrantfile can install the puppet agent:
## Ensure puppet installed within guest
config.puppet_install.puppet_version = '4.3.2'
Therefore, we removed all instances of puppet, from our most previous vagrant base box:
[root@localhost /]# rpm -qa | grep puppet
puppetlabs-release-pc1-1.1.0-4.el7.noarch
puppet-agent-1.7.0-1.el7.x86_64
[root@localhost /]# rpm -e puppetlabs-release-pc1-1.1.0-4.el7
[root@localhost /]# rpm -e puppet-agent-1.7.0-1.el7.x86_64
[root@localhost /]# rm -rf /etc/puppetlabs
[root@localhost /]# rm -rf /etc/puppet
[root@localhost /]# rm -rf /var/cache/yum/x86_64/7/puppetlabs-pc1
[root@localhost /]# vi /home/provisioner/.bash_profile
## remove ':/opt/puppetlabs/binn'
Note: attempting some variation of the following, in spirit of being more thorough, will likely break the corresponding virtual machine:
[root@localhost /]# find /var -name '*' -type f -exec sed -i '/puppet/d' {} \;
[root@localhost /]# find /etc -name '*' -type f -exec sed -i '/puppet/d' {} \;
Then, we repackaged our virtualbox (from the host machine) as a vagrant base box:
jeff1evesques-Air:puppet-demonstration jeff1evesque$ vagrant package --base puppet-demonstration_puppetagent_1476642275147_20262
==> puppet-demonstration_puppetagent_1476642275147_20262: Clearing any previously set forwarded ports...
==> puppet-demonstration_puppetagent_1476642275147_20262: Exporting VM...
==> puppet-demonstration_puppetagent_1476642275147_20262: Compressing package to: /Users/jeff1evesque/github/puppet-demonstration/package.box
jeff1evesques-Air:puppet-demonstration jeff1evesque$ ls
README.md Vagrantfile install_scripts package.box
Note: puppet-demonstration_puppetagent_1476642275147_20262 is virtualbox's name, for the corresponding virtual machine that was modified.
Note: this update is motivated by an issue, from the puppet-demonstration repository. Additionally, we'll likely build a base box from a centos 7x minimal iso, and correspond it to a 1.1.x release, since it will include an MD5 hash of the custom vagrant box.
This version was created almost 8 years ago.
Updates include the following:
5.0.12 to 5.1.2 r108956
yum update
This version was created over 8 years ago.
Includes the following already installed, and configured:
apache user, for vagrant's config.vm.synced_folder
/home/provisioner/.ssh/authorized_keys
Note: the corresponding private key, is versioned within drupal-demonstration, and referenced from the corresponding Vagrantfile.