From de9e31d2acb6d42e807b58996b72143798db28ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= Date: Thu, 2 Nov 2017 15:53:55 +0200 Subject: [PATCH 1/3] Split Vagrant provisioning tasks into separate scripts This reduces redundancy as the same preparatory tasks (install puppet agent, install puppet modules, prepare module path) do not have to be repeated for on every Vagrant box. This also makes it easier to create custom Vagrantfiles, for example if one wishes to use providers other than Virtualbox. --- Vagrantfile | 117 +++------------------------------------- vagrant/common.sh | 14 +++++ vagrant/ipa-client-1.sh | 13 +++++ vagrant/ipa-server-1.sh | 18 +++++++ vagrant/ipa-server-2.sh | 24 +++++++++ 5 files changed, 76 insertions(+), 110 deletions(-) create mode 100644 vagrant/common.sh create mode 100644 vagrant/ipa-client-1.sh create mode 100644 vagrant/ipa-server-1.sh create mode 100644 vagrant/ipa-server-2.sh diff --git a/Vagrantfile b/Vagrantfile index 3b9d9723..a22a826e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,40 +17,8 @@ Vagrant.configure("2") do |config| box.vm.network "private_network", ip: "192.168.44.35" box.vm.network "forwarded_port", guest: 8000, host: 8000 box.vm.network "forwarded_port", guest: 8440, host: 8440 - - $script = <