nsclient
Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 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
- Puppet >= 7.0.0 < 9.0.0
Start using this module
Add this module to your Puppetfile:
mod 'puppet-nsclient', '3.0.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-nsclient
####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with nsclient
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
##Overview
This is a module that will manage and install the NSClient on Windows servers from the official NSClient site.
##Module Description Module that will install the NSClient on windows servers to be able to interact with Nagios and Icinga. It will also manage the list of hosts that the server can communicate with.
##Setup
###What nsclient affects
- Installs a new package
- Creates a new windows service
###Beginning with nsclient
Usage
To install nsclient with defaults:
include 'nsclient'
To install a different version:
class { 'nsclient':
package_source_location => 'http://myhost.com',
package_name => 'NSClient++ (Win32)'
package_source => '0.3.1.msi'
}
In order to configure the nagios hosts to communicate with:
class { 'nsclient':
allowed_hosts => ['10.21.0.0/22','10.21.4.0/22'],
}
in order to use proxy for downloading the package
class { 'nsclient':
proxy_url => 'http://proxy.domain.local:8080',
}
##Usage
###Classes and Defined Types
####Class: nsclient
One of the primary classes of the nsclient module. This class will install the nsclient binaries
Parameters within nsclient
:
#####allowed_hosts
Array of hosts that your client can communicate with. You can use netmasks (/ syntax) or * to create ranges.
#####service_state
Whether you want to nsclient service to start up. Defaults to running
#####service_enable
Whether you want to nsclient service to start up at boot. Defaults to true
#####package_source_location
This is the default site to download your package from (e.g. http://files.nsclient.org/stable)
#####package_source
This is the source name of the package to be downloaded
#####package_name
This is name of the package to download (e.g. NSCP-0.4.1.101-x64.msi)
#####download_destination
This is the folder to where we need to download the NSCP Installer. Package cannot take a remote file source
Because of Windows, we need to set this to be a top level directory (e.g. c:\temp) or we would need to
recursively check the file path.
#####config_template
This is the template to use as the config file.
#####proxy_url
Specify a proxy url if needed for downloading the package
#####password
Password used to authenticate against server
##Reference
###Classes ####Public Classes
nsclient
: Guides the basic installation of the nsclient application
####Private Classes
- [
nsclient::config
] Manages all the default configuration of the nsclient application - [
nsclient::install
] Manages the installation of the nsclient - [
nsclient::service
] Manages the nclient service
##Limitations
This module is tested on the following platforms:
- Windows 2008 R2
It is tested with the OSS version of Puppet only.
##Development
###Contributing
Please read CONTRIBUTING.md for full details on contributing to this project.
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v3.0.0 (2024-03-17)
Breaking changes:
- Update supported Windows versions #91 (yakatz)
- Drop Puppet 6 support #86 (bastelfreak)
- modulesync 2.7.0 and drop puppet 4 #71 (bastelfreak)
Implemented enhancements:
- Add support for upgrades #7
- Add Puppet 8 support #88 (bastelfreak)
- puppetlabs/stdlib: Allow 9.x #87 (bastelfreak)
- allow specification of package version - allows upgrades #78 (rstuart-indue)
- replacing config_template with config_content #74 (rstuart-indue)
Merged pull requests:
v2.1.0 (2019-03-01)
Implemented enhancements:
- Add password field #16
- Add chocolatey as a provider for installing the package #63 (hdep)
- Add password variable #61 (hdep)
- Add proxy support #58 (hdep)
Fixed bugs:
- download_file should not happen when chocolatey is used #66 (hdep)
- remove 'mode' because it is not manage correctly by puppet on windows #65 (hdep)
Closed issues:
- This plugin should not use mode #64
- Allow nsclient install from chocolatey provider #59
- Add support for proxy #57
Merged pull requests:
- Add 'FILE MANAGED BY PUPPET' header to template #60 (hdep)
- Remove Linux acceptance nodesets #56 (ekohl)
- modulesync 2.2.0 and allow puppet 6.x #55 (bastelfreak)
- replace validate_* with datatypes/assert_type #40 (bastelfreak)
v2.0.1 (2018-09-07)
Merged pull requests:
- allow puppetlabs/stdlib 5.x #50 (bastelfreak)
- Remove docker nodesets #46 (bastelfreak)
- drop EOL OSs; fix puppet version range #45 (bastelfreak)
v2.0.0 (2018-03-11)
Fixed bugs:
- Fixes #17 - Updating the location of the file download. #36 (andrewwippler)
- fix #32 use package install_options hash #34 (derektamsen)
Closed issues:
Changelog
v1.4.0 (2017-02-11)
This is the last release with Puppet3 support
- rubocop: fix RSpec/ImplicitExpect
- Set min version_requirement for Puppet + deps
- Fix tests for future parser
- Add parameter to change installation directory
- Default download_destination to use forward slashes
2014-10-13 - Release 1.3.0
Summary
Updating dowload_file dependency to latest version
2014-10-13 - Release 1.2.1
Summary
Fixing broken dowload_file dependency
2014-10-10 - Release 1.2.0
Summary
Bringing module up to higher quality standard with documentation and tests
Features
- Switching default download to https
- Improving documentation
- Improving tests
2014-04-25 - Release 1.1.0
Summary
Adding support for custom configurations.
Features
- Adding param
config_template
to allow you to specify custom templates - Improving documentation
- Improving tests
2014-04-22 - Release 1.0.0
Summary
Bugfix release. Fixes issue with differently named msi packages.
Bugfixes
- Adding parameter
package_source
which fixes bug where the package_name doesn't match the msi name
2014-02-24 - Release 0.0.2
Summary
Bugfix release. Updating to use new windows package provider.
Bugfixes
- Fixing the case sensitivity of the osfamily fact
- Switching to windows provider and adding support to download the package with download_file
- Fixing duplicate resource issue with download_destination
2014-02-21 - Release 0.0.1
Summary
Initial release. Support for installing nsclient
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 10.0.0)
- puppet/download_file (>= 2.0.0 < 4.0.0)
Copyright (c) 2014 OpenTable, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.