Skip to content
Snippets Groups Projects
Commit 2c378f4c authored by Peter Souter's avatar Peter Souter Committed by GitHub
Browse files

Adding note about Puppet 3 support (#153)

* Adding deprecation warning
* First steps towards the work in #152
parent 7591e8c1
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,18 @@ Test against a specific Puppet or Facter version:
$ PUPPET_VERSION=4.10.0 bundle update && bundle exec rake spec
$ FACTER_VERSION=1.6.8 bundle update && bundle exec rake spec
## Puppet 3 Support
Puppet 3 is EOL as-of January 2017. The last release of this module that will
support Puppet 3.X and earlier will be the 3.X.X module releases.
Module versions from 4.X.X onwards will use Puppet 4 only features and will not work with
earlier versions.
We would recommend upgrading your Puppet agent to the latest release, as Puppet 4 comes with a load of awesome new features.
If you're stuck with older Puppet, you could also fork the module from 3.0.0 and use your fork as a Puppet 3 supported version.
## Contributing
* Fork it
......
......@@ -240,6 +240,10 @@ class redis (
~> Class['redis::service']
}
if $::puppetversion and versioncmp($::puppetversion, '4.0.0') < 0 {
warning("Puppet 3 is EOL as of 01/01/2017, The 3.X.X releases of the module are the last that will support Puppet 3\nFor more information, see https://github.com/arioch/puppet-redis#puppet-3-support")
}
# Sanity check
if $::redis::slaveof {
if $::redis::bind =~ /^127.0.0./ {
......
......@@ -81,6 +81,7 @@ def centos_facts
{
:operatingsystem => 'CentOS',
:osfamily => 'RedHat',
:puppetversion => '4.5.2',
}
end
......@@ -89,6 +90,7 @@ def debian_facts
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:operatingsystemmajrelease => '8',
:puppetversion => '4.5.2',
}
end
......@@ -96,6 +98,7 @@ def freebsd_facts
{
:operatingsystem => 'FreeBSD',
:osfamily => 'FreeBSD',
:puppetversion => '4.5.2',
}
end
......@@ -104,6 +107,7 @@ def centos_6_facts
:operatingsystem => 'CentOS',
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:puppetversion => '4.5.2',
}
end
......@@ -112,6 +116,7 @@ def ubuntu_1404_facts
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:operatingsystemmajrelease => '14.04',
:puppetversion => '4.5.2'
}
end
......@@ -119,6 +124,7 @@ def archlinux_facts
{
:operatingsystem => 'Archlinux',
:osfamily => 'Archlinux',
:puppetversion => '4.5.2',
}
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment