diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 808c7d7..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,23 +0,0 @@ -# This Vagrant file is provided as a convenience for development and -# exploratory testing of puppet-elastic-stack. It's not used by the formal -# testing framwork, it's just for hacking. -# -puppet_code_root = '/etc/puppetlabs/code/environments/production' -module_root = "#{puppet_code_root}/modules/elastic_stack" - -Vagrant.configure(2) do |config| - config.vm.box = 'bento/ubuntu-16.04' - config.vm.provider 'virtualbox' do |v| - v.memory = 4 * 1024 - v.cpus = 4 - end - - # Make the module available. - config.vm.synced_folder('manifests', "#{module_root}/manifests") - - # Map in a Puppet manifest that can be used for experiments. - config.vm.synced_folder('Vagrantfile.d/manifests', "#{puppet_code_root}/manifests") - - # Provision with Puppet and Puppetserver - config.vm.provision('shell', path: 'Vagrantfile.d/provision.sh') -end diff --git a/Vagrantfile.d/manifests/site.pp b/Vagrantfile.d/manifests/site.pp deleted file mode 100644 index 6e4e954..0000000 --- a/Vagrantfile.d/manifests/site.pp +++ /dev/null @@ -1,2 +0,0 @@ -class { 'elastic_stack::repo': -} diff --git a/Vagrantfile.d/provision.sh b/Vagrantfile.d/provision.sh deleted file mode 100644 index eb9080d..0000000 --- a/Vagrantfile.d/provision.sh +++ /dev/null @@ -1,34 +0,0 @@ -# Install and configure Puppet and Puppetserver. -export DEBIAN_FRONTEND=noninteractive - -wget https://apt.puppetlabs.com/puppet6-release-xenial.deb -dpkg -i puppet6-release-xenial.deb -apt-get update -apt-get install -y apt-transport-https -apt-get install -y puppet-agent puppetserver - -# REF: https://tickets.puppetlabs.com/browse/SERVER-528 -service puppet stop -service puppetserver stop -rm -rf /etc/puppetlabs/puppet/ssl/private_keys/* -rm -rf /etc/puppetlabs/puppet/ssl/certs/* -echo 'autosign = true' >> /etc/puppetlabs/puppet/puppet.conf -service puppetserver start - -# Puppet agent looks for the server called "puppet" by default. -# In this case, we want that to be us (the loopback address). -echo '127.0.0.1 localhost puppet vagrant' > /etc/hosts - -# Install puppet-elastic-stack dependencies. -modules=( - puppet-yum - puppet-zypprepo - puppetlabs-apt - puppetlabs-yumrepo_core -) - -for module in ${modules[@]}; do - /opt/puppetlabs/bin/puppet module install \ - --target-dir=/etc/puppetlabs/code/environments/production/modules \ - ${module} -done