Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 8.0.0
- , , , , , ,
This module has been deprecated by its author since Nov 11th 2021.
The reason given was: No longer maintained
The author has suggested puppet-zabbix as its replacement.
Start using this module
Documentation
Puppet module: zabbix_agent
Travis {}[https://travis-ci.org/example42/puppet-zabbix_agent]
This is a Puppet module for zabbix_agent compatible with Puppet 4 and newer.
Made by Alessandro Franceschi / Lab42 and Martin Alfke / example42
Official site: http://www.example42.com
Official git repository: http://github.com/example42/puppet-zabbix_agent
Released under the terms of Apache 2 License.
USAGE - Basic management
-
Install zabbix_agent with default settings, that is installation from OS default packages
class { 'zabbix_agent': }
-
Install a specific version of zabbix_agent package.
class { 'zabbix_agent': version => '2.0.6', }
-
Install zabbix_agent from upstream tarball (you MUST provide a version with this option)
class { 'zabbix_agent': install => 'source', version => '2.0.6', }
-
Install zabbix_agent from upstream tarball and provide a custom template for the service's init script
class { 'zabbix_agent': install => 'source', version => '2.0.6', init_script_template => 'site/zabbix_agent/zabbix_agent.init.erb', }
-
Install zabbix_agent from a custom source to a custom destination
class { 'zabbix_agent': install => 'source', install_source => 'http://download.example42.com/software/zabbix_agents_2.0.6.solaris10.amd64.tar.gz', install_destination => '/usr/local', # Default: '/opt' }
-
Install from source without creating a dedicated zabbix user
class { 'zabbix_agent': install => 'source', version => '2.0.6', create_user => false, }
-
Provide a custom class for the module's prerequisites (check if they apply to your case)
class { 'zabbix_agent': dependency_class => 'site::pre_zabbix_agent', }
-
Disable zabbix_agent service.
class { 'zabbix_agent': disable => true }
-
Remove zabbix_agent package
class { 'zabbix_agent': absent => true }
USAGE - Overrides and Customizations
-
Use custom sources for main config file
class { 'zabbix_agent': source => [ "puppet:///modules/example42/zabbix_agent/zabbix_agent.conf-${hostname}" , "puppet:///modules/example42/zabbix_agent/zabbix_agent.conf" ], }
-
Use custom source directory for the whole configuration dir
class { 'zabbix_agent': source_dir => 'puppet:///modules/example42/zabbix_agent/conf/', source_dir_purge => false, # Set to true to purge any existing file not present in $source_dir }
-
Use custom template for main config file. Note that template and source arguments are alternative.
class { 'zabbix_agent': template => 'example42/zabbix_agent/zabbix_agent.conf.erb', }
-
Automatically include a custom subclass
class { 'zabbix_agent': my_class => 'example42::my_zabbix_agent', }
Dependencies
- puppetlabs/stdlib (>= 4.19.0 < 8.0.0)
Copyright (C) 2013 Alessandro Franceschi / Lab42 for the relevant commits Copyright (C) by the respective authors. Contact Lab42 at: info@lab42.it Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.