Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Fix dependency incompatibility fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
autoit4you committed Jan 18, 2019
1 parent 9f9c399 commit ea5d2c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/base/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ $sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-conf
puppet_module() {
dir=$1
module=$2
options=${3:-}

if test -r /etc/puppetlabs/code/environments/production/modules/${dir}; then
/opt/puppetlabs/bin/puppet module upgrade --ignore-changes ${module}
/opt/puppetlabs/bin/puppet module upgrade ${options} --ignore-changes ${module}
else
/opt/puppetlabs/bin/puppet module install ${module}
/opt/puppetlabs/bin/puppet module install ${options} ${module}
fi
}
}

puppet_module etckeeper thomasvandoren-etckeeper
puppet_module stdlib puppetlabs-stdlib
puppet_module translate puppetlabs-translate "--version 1.1.0" # Needed for puppetlabs-docker
puppet_module apt puppetlabs-apt # --version 2.4.0 # Needed for rtyler-jenkins in an optional subsequent step
puppet_module inifile puppetlabs-inifile

Expand Down

0 comments on commit ea5d2c3

Please sign in to comment.