github voxpupuli/puppet-elasticsearch 6.0.0

latest releases: v9.0.0, v8.1.0, v8.0.2...
6 years ago

6.0.0 (Month Day, Year)

Major version upgrade with several important deprecations:

  • Puppet version 3 is no longer supported.
  • Package pinning is no longer supported.
  • Java installation is no longer supported.
  • The python and ruby defined types have been removed.
  • Repo management through manage_repo is now set to true by default.
  • All *_hiera_merge parameters have been removed.

Minor:

  • elasticsearch::plugin only accepts present or absent
  • Some REST-resource based providers (such as templates and pipelines) now validate parameters (such as numeric port numbers) more rigorously.

The following migration guide is intended to help aid in upgrading this module.

Migration Guide

Puppet 3.x No Longer Supported

Puppet 4.5.0 is the new minimum required version of Puppet, which offers better safety, module metadata, and Ruby features.
Migrating from Puppet 3 to Puppet 4 is beyond the scope of this guide, but the official upgrade documentation can help.
As with any version or module upgrade, remember to restart any agents and master servers as needed.

Package Pinning No Longer Supported

Package pinning caused lots of unexpected behavior and usually caused more problems than solutions.
If you still require package pinning, consider using the apt::pin resource on Debian-based systems or a yum::versionlock resource from the yum module for Red Hat-based systems.

Java Installation No Longer Supported

Java installation was a very simple operation in this module which simply declared an instance of the java class but created conflicts for users who managed Java separately.
If you still wish to configure Java alongside this module, consider using the puppetlabs/java module and installing Java with the following configuration:

class { "java" : distribution => "jre" }

This will install a version of Java suitable for Elasticsearch in most situations.
Note that in some older distributions, you may need to take extra steps to install a more recent version of Java that supports Elasticsearch.

Removal of Python and Ruby Resources

These resource types were simple wrappers around package resources with their providers set to pip and gem, respectively.
Simply defining your own resources similarly to:

package { 'elasticsearch' : provider => 'pip' }

Is sufficient.

Automatic Package Repository Management

This parameter is now set to true by default to automatically manage the Elastic repository.
If you do not wish to configure the repository to automatically retrieve package updates, set this parameter to false:

class { 'elasticsearch': manage_repo => false }

Removal of hiera_merge Parameters

Updates to Hiera in later versions of Puppet mean that you can set merging behavior in end-user configuration.
Read the upstream Hiera documentation regarding lookup_options to learn how to configure Hiera appropriately for your needs.

Don't miss a new puppet-elasticsearch release

NewReleases is sending notifications on new releases.