forked from abessifi/repmgr-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Vagrantfile - Put the puppet install script in a separate file
- Loading branch information
Showing
2 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Check if Puppet package is already installed | ||
[ "$(puppet --version)" = "3.7.4" ] && echo "Puppet '3.7.4' is already installed !" \ | ||
&& exit 0 | ||
# Download puppetlabs-release-wheezy.deb | ||
wget --output-document=/tmp/puppetlabs-release-wheezy.deb https://apt.puppetlabs.com/puppetlabs-release-wheezy.deb | ||
|
||
[ -f /tmp/puppetlabs-release-wheezy.deb ] || exit 1 | ||
# Install the puppetlabs-release-wheezy.deb which will setup the puppet repos entries in /etc/apt/sources.list.d/puppetlabs.list file. | ||
sudo dpkg -i /tmp/puppetlabs-release-wheezy.deb | ||
sudo apt-get update | ||
# Install puppet 3.7.4 package | ||
sudo apt-get install -y puppet=3.7.4-1puppetlabs1 | ||
echo "Puppet $(puppet --version) is now installed." | ||
# Remove the temporary download package | ||
rm /tmp/puppetlabs-release-wheezy.deb |