Skip to content

Commit

Permalink
Use Puppet 6 with Vagrant testing
Browse files Browse the repository at this point in the history
This also fixes an issue where vagrant was using a slightly older
version of stdlib than what was listed in the metadata.
  • Loading branch information
ghoneycutt committed Nov 17, 2020
1 parent 7ffdb47 commit e361d93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/provision_basic_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ apt-key adv --fetch-keys http://apt.puppetlabs.com/DEB-GPG-KEY-puppet
apt-get -y install wget

# install and configure puppet
deb_install http://apt.puppetlabs.com/puppet5-release-${CODENAME}.deb
deb_install http://apt.puppetlabs.com/puppet6-release-${CODENAME}.deb
apt-get update
apt-get -y install puppet-agent
ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
Expand All @@ -40,5 +40,5 @@ ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
puppet resource file /etc/puppetlabs/code/environments/production/modules/pam ensure=link target=/vagrant

# setup module dependencies
puppet module install puppetlabs/stdlib --version 4.22.0
puppet module install puppetlabs/stdlib --version 4.25.0
puppet module install trlinkin/nsswitch --version 2.1.0
4 changes: 2 additions & 2 deletions tests/provision_basic_el.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yum install -y wget
rpm -qa | grep -q puppet
if [ $? -ne 0 ]
then
rpm_install http://yum.puppetlabs.com/puppet5/puppet5-release-el-${release}.noarch.rpm
rpm_install http://yum.puppetlabs.com/puppet6/puppet6-release-el-${release}.noarch.rpm
yum -y install puppet-agent
ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
fi
Expand All @@ -29,5 +29,5 @@ fi
puppet resource file /etc/puppetlabs/code/environments/production/modules/pam ensure=link target=/vagrant

# setup module dependencies
puppet module install puppetlabs/stdlib --version 4.22.0
puppet module install puppetlabs/stdlib --version 4.25.0
puppet module install trlinkin/nsswitch --version 2.1.0

0 comments on commit e361d93

Please sign in to comment.