Skip to content

Commit 39bedae

Browse files
authored
Merge pull request #866 from Phil-Friderici/housekeeping
add documentation to satisfy linting
2 parents c3898be + 9d00e8c commit 39bedae

File tree

16 files changed

+56
-35
lines changed

16 files changed

+56
-35
lines changed

REFERENCE.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@
4040

4141
### Resource types
4242

43-
* [`zabbix_application`](#zabbix_application): %q(Manage zabbix applications zabbix_application{"app1": ensure => present, template => 'template1', } It Raise excep
44-
* [`zabbix_host`](#zabbix_host): FQDN of the machine.
43+
* [`zabbix_application`](#zabbix_application): Manage zabbix applications Example: zabbix_application{"app1": ensure => present, template => 'template1', } It Raise exceptio
44+
* [`zabbix_host`](#zabbix_host): Manage zabbix hosts
4545
* [`zabbix_hostgroup`](#zabbix_hostgroup): Manage zabbix hostgroups
46-
* [`zabbix_proxy`](#zabbix_proxy): FQDN of the proxy.
47-
* [`zabbix_template`](#zabbix_template): The name of template.
48-
* [`zabbix_template_host`](#zabbix_template_host): Link or Unlink template to host. Only for Zabbix < 6.0! Example. Name should be in the format of "template_name@hostname" zabbix_template_ho
49-
* [`zabbix_userparameters`](#zabbix_userparameters): An unique name for this define.
46+
* [`zabbix_proxy`](#zabbix_proxy): Manage zabbix proxies
47+
* [`zabbix_template`](#zabbix_template): Manage zabbix templates
48+
* [`zabbix_template_host`](#zabbix_template_host): Link or Unlink template to host. Only for Zabbix < 6.0! Example: zabbix_template_host{ 'mysql_template@db1': ensure => present, } Na
49+
* [`zabbix_userparameters`](#zabbix_userparameters): Manage zabbix user templates
5050

5151
### Data types
5252

5353
* [`Zabbix::Databases`](#Zabbix--Databases): Type for supported databases by the zabbix module
54-
* [`Zabbix::Historyics`](#Zabbix--Historyics)
54+
* [`Zabbix::Historyics`](#Zabbix--Historyics): Type for size values in bytes (also allows k/K and m/M as appendix)
5555

5656
## Classes
5757

@@ -5927,17 +5927,15 @@ Default value: `'0644'`
59275927

59285928
### <a name="zabbix_application"></a>`zabbix_application`
59295929

5930-
%q(Manage zabbix applications
5931-
5932-
zabbix_application{"app1":
5933-
ensure => present,
5934-
template => 'template1',
5935-
}
5930+
Manage zabbix applications
59365931

5932+
Example:
5933+
zabbix_application{"app1":
5934+
ensure => present,
5935+
template => 'template1',
5936+
}
59375937
It Raise exception on deleting an application which is a part of used template.
59385938

5939-
)
5940-
59415939
#### Properties
59425940

59435941
The following properties are available in the `zabbix_application` type.
@@ -5975,7 +5973,7 @@ template to which the application is linked
59755973

59765974
### <a name="zabbix_host"></a>`zabbix_host`
59775975

5978-
FQDN of the machine.
5976+
Manage zabbix hosts
59795977

59805978
#### Properties
59815979

@@ -6114,7 +6112,7 @@ usually discover the appropriate provider for your platform.
61146112

61156113
### <a name="zabbix_proxy"></a>`zabbix_proxy`
61166114

6117-
FQDN of the proxy.
6115+
Manage zabbix proxies
61186116

61196117
#### Properties
61206118

@@ -6172,7 +6170,7 @@ usually discover the appropriate provider for your platform.
61726170

61736171
### <a name="zabbix_template"></a>`zabbix_template`
61746172

6175-
The name of template.
6173+
Manage zabbix templates
61766174

61776175
#### Properties
61786176

@@ -6250,12 +6248,12 @@ Zabbix version that the template will be installed on.
62506248
### <a name="zabbix_template_host"></a>`zabbix_template_host`
62516249

62526250
Link or Unlink template to host. Only for Zabbix < 6.0!
6253-
Example.
6254-
Name should be in the format of "template_name@hostname"
62556251

6256-
zabbix_template_host{ 'mysql_template@db1':
6257-
ensure => present,
6258-
}
6252+
Example:
6253+
zabbix_template_host{ 'mysql_template@db1':
6254+
ensure => present,
6255+
}
6256+
Name should be in the format of "template_name@hostname"
62596257

62606258
#### Properties
62616259

@@ -6291,7 +6289,7 @@ will usually discover the appropriate provider for your platform.
62916289

62926290
### <a name="zabbix_userparameters"></a>`zabbix_userparameters`
62936291

6294-
An unique name for this define.
6292+
Manage zabbix user templates
62956293

62966294
#### Properties
62976295

@@ -6343,7 +6341,7 @@ Alias of `Enum['postgresql', 'mysql', 'sqlite']`
63436341

63446342
### <a name="Zabbix--Historyics"></a>`Zabbix::Historyics`
63456343

6346-
The Zabbix::Historyics data type.
6344+
Type for size values in bytes (also allows k/K and m/M as appendix)
63476345

63486346
Alias of `Optional[Pattern[/^\d+[k|K|m|M]?$/]]`
63496347

lib/puppet/provider/zabbix_application/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_application).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider for Zabbix application using the Zabbix API.2'
56
confine feature: :zabbixapi
67

78
def template_id

lib/puppet/provider/zabbix_host/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_host).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider for managing Zabbix hosts. It uses the Zabbix API to create, read, update and delete hosts.'
56
confine feature: :zabbixapi
67

78
def self.instances

lib/puppet/provider/zabbix_hostgroup/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_hostgroup).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider for managing Zabbix hostgroups. It defines methods to create, check if exists, and destroy Zabbix hostgroups using the Zabbix API.'
56
confine feature: :zabbixapi
67

78
def self.instances

lib/puppet/provider/zabbix_proxy/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_proxy).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider for managing Zabbix proxies. It uses the Zabbix API to create, read, update and delete hosts, as well as changing them between active and passive modes.'
56
confine feature: :zabbixapi
67

78
def initialize(value = {})

lib/puppet/provider/zabbix_template/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_template).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider that manages Zabbix templates by importing and exporting them in XML format, and creating, updating, or deleting various Zabbix configuration objects. It includes conditional logic based on the Zabbix version being used.'
56
confine feature: :zabbixapi
67

78
def create

lib/puppet/provider/zabbix_template_host/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_template_host).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider that manages the association between Zabbix templates and hosts. It allows creating, checking the existence of, and deleting the association between a Zabbix template and a host, using the Zabbix API.'
56
confine feature: :zabbixapi
67
def template_name
78
@template_name ||= @resource[:name].split('@')[0]

lib/puppet/provider/zabbix_userparameters/ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require_relative '../zabbix'
44
Puppet::Type.type(:zabbix_userparameters).provide(:ruby, parent: Puppet::Provider::Zabbix) do
5+
desc 'Puppet provider that manages Zabbix user parameters. It allows users to define custom monitoring parameters in Zabbix, and provides methods for creating and checking the existence of a user parameter. It also has a placeholder method for destroying the user parameter.'
56
confine feature: :zabbixapi
67

78
def create

lib/puppet/type/zabbix_application.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# frozen_string_literal: true
22

33
Puppet::Type.newtype(:zabbix_application) do
4-
@doc = %q(Manage zabbix applications
4+
@doc = <<-DOC
5+
Manage zabbix applications
56
7+
Example:
68
zabbix_application{"app1":
79
ensure => present,
810
template => 'template1',
911
}
10-
11-
It Raise exception on deleting an application which is a part of used template.
12-
13-
)
12+
It Raise exception on deleting an application which is a part of used template.
13+
DOC
1414

1515
ensurable do
16+
desc 'The basic property that the resource should be in.'
1617
defaultvalues
1718
defaultto :present
1819
end

lib/puppet/type/zabbix_host.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# frozen_string_literal: true
22

33
Puppet::Type.newtype(:zabbix_host) do
4+
@doc = 'Manage zabbix hosts'
5+
46
ensurable do
7+
desc 'The basic property that the resource should be in.'
58
defaultvalues
69
defaultto :present
710
end

0 commit comments

Comments
 (0)