This commit is contained in:
2019-07-04 20:58:20 -04:00
parent 23a4e98668
commit 47caaa7a0a
10 changed files with 589 additions and 577 deletions

32
Vagrantfile vendored
View File

@ -61,25 +61,25 @@ Vagrant.configure("2") do |config|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<~SHELL
if ! apt list ruby2.5 | grep installed; then
apt-add-repository ppa:brightbox/ruby-ng -y
apt-get update
sudo apt-get install -y build-essential resolvconf ruby2.5 ruby2.5-dev gem
fi
# if ! apt list ruby2.5 | grep installed; then
# apt-add-repository ppa:brightbox/ruby-ng -y
# apt-get update
# sudo apt-get install -y build-essential resolvconf ruby2.5 ruby2.5-dev gem
# fi
if ! which berks >/dev/null; then
gem install berkshelf --no-ri --no-rdoc
# ln -s /opt/chef/embedded/bin/berks /usr/local/bin/berks
fi
# if ! which berks >/dev/null; then
# gem install berkshelf --no-ri --no-rdoc
# # ln -s /opt/chef/embedded/bin/berks /usr/local/bin/berks
# fi
cd /vagrant
git submodule update --init --recursive
# cd /vagrant
# git submodule update --init --recursive
cd /vagrant/ops/cookbooks
rm -rf vendor
rm -rf $HOME/.berksfile
berks update
berks vendor vendor
# cd /vagrant/ops/cookbooks
# rm -rf vendor
# rm -rf $HOME/.berksfile
# berks update
# berks vendor vendor
SHELL
config.vm.provision 'chef_solo' do |chef|