Module cparedes/puppet_opsview
| Download |
|
Module description
Refactor of the puppet-opsview module provided by Opsera. Actively maintained.
Requires the rest-client and json gems to be installed on machines that will be using the library.
Release notes for version 0.0.2
Adding changes from Devon Peters into the package:
- Revert prefetch method to old method (use self.instances to pull information from the Opsview server)
- Add servicegroup, allservicegroup, notificationmethods, service_notification_options, and host_notification_options* to the opsview_contact provider for 24x7 and 8x4 notificaion profiles.
- Add “parents” and “monitored_by” parameters to opsview_monitored provider.
- Add “volatile” and “stalking” parameters to the opsview_servicecheck provider.
- Change default node alias to “Puppet Managed Host”, rather than “Puppet Unknown Host”.
- Ensure we use ‘rows=all’ when GET’ing data via Opsview REST, otherwise long results are truncated.
- Create an opsview_notificationmethod provider.
- Opsview_contact: add “role” to the hash returned by contact_map, and add a proper test for notificationmethods.
Types
opsview_contact
Description
Manages contacts in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the contact is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- fullname
Full name of the user
- description
Short description for the contact
- role
The role that the user is in. Defaults are: Administrator View all, change none View all, change some View some, change none View some, change some
- encrypted_password
The user’s encrypted password. Defaults to “password” if not specified.
- language
The user’s language
Email address for the user.
- notificationmethods8x5
An array of notificationmethods for the 8x5 notification profile.
- notificationmethods24x7
An array of notificationmethods for the 24x7 notification profile.
- service_notification_options8x5
The service notification options for the 8x5 notification profile.
- service_notification_options24x7
The service notification options for the 24x7 notification profile.
- host_notification_options8x5
The host notification options for the 8x5 notification profile.
- host_notification_options24x7
The host notification options for the 24x7 notification profile.
- hostgroups8x5
An array of hostgroups for the 8x5 notification profile.
- hostgroups24x7
An array of hostgroups for the 24x7 notification profile.
- allhostgroups8x5
A boolean defining whether or not all hostgroups will have 8x5 notifications for this contact.
- allhostgroups24x7
A boolean defining whether or not all hostgroups will have 24x7 notifications for this contact.
- servicegroups8x5
An array of servicegroups for the 8x5 notification profile.
- servicegroups24x7
An array of servicegroups for the 24x7 notification profile.
- allservicegroups8x5
A boolean defining whether or not all servicegroups will have 8x5 notifications for this contact.
- allservicegroups24x7
A boolean defining whether or not all servicegroups will have 24x7 notifications for this contact.
Providers
- opsview
opsview_hostgroup
Description
Manages hostgroups in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the hostgroup is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- hostgroup
The name of the hostgroup to manage
- parent
Parent hostgroup. Any defined parent’s will be autorequired.
Providers
- opsview
opsview_hosttemplate
Description
Manages hosttemplates in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the hosttemplate is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- hosttemplate
This hosttemplate
- description
description for this hosttemplate
- servicechecks
Array of servicechecks for this hosttemplate. The list must be in alphabetical order, otherwise the config will be re-applied everytime puppet runs.
- managementurls
Array of management urls for this hosttemplate
Providers
- opsview
opsview_monitored
Description
Monitors the node from an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the host is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- hostgroup
Opsview hostgroup
- ip
Node IP address or name
- hosttemplates
Array of Opsview host templates that should be applied to this node
- servicechecks
Array of Opsview service checks that should be applied to this node
- monitored_by
The Opsview server that monitors this node
- parents
Array of parents for this node
Providers
- opsview
opsview_notificationmethod
Description
Manages notificationmethods in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the notificationmethod is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- master
Whether or not this is enabled on the master
- active
Whether or not this is Active
- command
The command to run when this method is used
- contact_variables
Comman delimited string of variables that are used by this notification method
Providers
- opsview
opsview_role
Description
Manages roles in an Opsview monitoring system.
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the role is updated.
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- role
The name of this role.
- description
Short description of this role.
- all_hostgroups
Whether or not this role has access to all hostgroups. Defaults to true.
- all_servicegroups
Whether or not this role has access to all servicegroups. Defaults to true.
- all_keywords
Whether or not this role has access to all keywords. Defaults to false.
- access_hostrgroups
Array of hostgroups that this role can access.
- access_servicegroups
Array of servicegroups that this role can access.
- access_keywords
Array of keywords that this role can access.
- accesses
Array of access properties defined for this role.
- hostgroups
Array of hostgroups that this role can configure, if CONFIGUREHOSTS is defined in accesses.
Providers
- opsview
opsview_servicecheck
Description
Manages servicechecks in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the servicecheck is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- description
Short description for the servicecheck
- servicegroup
The servicegroup that this servicecheck belongs to. This servicegroup must be defined in puppet.
- dependencies
Array of dependencies for this servicecheck
- check_period
General opsview servicecheck parameter
- check_interval
General opsview servicecheck parameter
- check_attempts
General opsview servicecheck parameter
- retry_check_interval
General opsview servicecheck parameter
- plugin
General opsview servicecheck parameter
- args
General opsview servicecheck parameter
- invertresults
General opsview servicecheck parameter
- notification_options
General opsview servicecheck parameter
- notification_period
General opsview servicecheck parameter
- notification_interval
General opsview servicecheck parameter
- flap_detection_enabled
General opsview servicecheck parameter
- volatile
General opsview servicecheck parameter
- stalking
General opsview servicecheck parameter
Providers
- opsview
opsview_servicegroup
Description
Manages servicegroups in an Opsview monitoring system
Parameters
- name
- reload_opsview
True if you want an Opsview reload to be performed when the servicegroup is updated
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.
- servicegroup
This servicegroup
Providers
- opsview