Skip to content

Commit a20b720

Browse files
author
Lennart Betz
authored
Merge pull request #401 from Icinga/release/v5.0.0
Release/v5.0.0
2 parents aace8bc + 34c6e6b commit a20b720

File tree

19 files changed

+32
-363
lines changed

19 files changed

+32
-363
lines changed

REFERENCE.md

Lines changed: 0 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,9 @@ that store groups.
7777
* `icingaweb2::module::icingadb::commandtransport`: Manages commandtransport configuration for the icingadb module.
7878
* `icingaweb2::module::monitoring::commandtransport`: Manages commandtransport configuration for the monitoring module.
7979
* `icingaweb2::module::puppetdb::certificate`: Installs a certificate for the Icinga Web 2 puppetdb module.
80-
* `icingaweb2::tls::client`: A class to generate tls key, cert and cacert paths.
8180

8281
### Functions
8382

84-
* [`icingaweb2::cert::files`](#icingaweb2--cert--files): Choose the path of tls key, cert and ca file.
85-
* [`icingaweb2::db::connect`](#icingaweb2--db--connect): This function returns a string to connect databases
86-
with or without TLS information.
8783
* [`icingaweb2::pick`](#icingaweb2--pick): This function returns first parameter if set.
8884
* [`icingaweb2::unwrap`](#icingaweb2--unwrap): This function returns an unwrap string if necessary.
8985

@@ -4387,115 +4383,6 @@ Default value: `5`
43874383

43884384
## Functions
43894385

4390-
### <a name="icingaweb2--cert--files"></a>`icingaweb2::cert::files`
4391-
4392-
Type: Puppet Language
4393-
4394-
Choose the path of tls key, cert and ca file.
4395-
4396-
#### `icingaweb2::cert::files(String $name, Optional[Stdlib::Absolutepath] $default_dir, Optional[Stdlib::Absolutepath] $key_file = undef, Optional[Stdlib::Absolutepath] $cert_file = undef, Optional[Stdlib::Absolutepath] $cacert_file = undef, Optional[Icingaweb2::Secret] $key = undef, Optional[String] $cert = undef, Optional[String] $cacert = undef)`
4397-
4398-
The icingaweb2::cert::files function.
4399-
4400-
Returns: `Hash` Returned hash includes all paths and the key, cert and cacert.
4401-
4402-
##### `name`
4403-
4404-
Data type: `String`
4405-
4406-
4407-
4408-
##### `default_dir`
4409-
4410-
Data type: `Optional[Stdlib::Absolutepath]`
4411-
4412-
4413-
4414-
##### `key_file`
4415-
4416-
Data type: `Optional[Stdlib::Absolutepath]`
4417-
4418-
4419-
4420-
##### `cert_file`
4421-
4422-
Data type: `Optional[Stdlib::Absolutepath]`
4423-
4424-
4425-
4426-
##### `cacert_file`
4427-
4428-
Data type: `Optional[Stdlib::Absolutepath]`
4429-
4430-
4431-
4432-
##### `key`
4433-
4434-
Data type: `Optional[Icingaweb2::Secret]`
4435-
4436-
4437-
4438-
##### `cert`
4439-
4440-
Data type: `Optional[String]`
4441-
4442-
4443-
4444-
##### `cacert`
4445-
4446-
Data type: `Optional[String]`
4447-
4448-
4449-
4450-
### <a name="icingaweb2--db--connect"></a>`icingaweb2::db::connect`
4451-
4452-
Type: Puppet Language
4453-
4454-
This function returns a string to connect databases
4455-
with or without TLS information.
4456-
4457-
#### `icingaweb2::db::connect(Struct[{
4458-
type => Enum['pgsql','mysql','mariadb'],
4459-
host => Stdlib::Host,
4460-
port => Stdlib::Port,
4461-
name => String,
4462-
user => String,
4463-
pass => Optional[Icingaweb2::Secret],
4464-
}] $db, Hash[String, Any] $tls, Optional[Boolean] $use_tls = undef)`
4465-
4466-
The icingaweb2::db::connect function.
4467-
4468-
Returns: `String` Connection string to connect database.
4469-
4470-
##### `db`
4471-
4472-
Data type:
4473-
4474-
```puppet
4475-
Struct[{
4476-
type => Enum['pgsql','mysql','mariadb'],
4477-
host => Stdlib::Host,
4478-
port => Stdlib::Port,
4479-
name => String,
4480-
user => String,
4481-
pass => Optional[Icingaweb2::Secret],
4482-
}]
4483-
```
4484-
4485-
4486-
4487-
##### `tls`
4488-
4489-
Data type: `Hash[String, Any]`
4490-
4491-
4492-
4493-
##### `use_tls`
4494-
4495-
Data type: `Optional[Boolean]`
4496-
4497-
4498-
44994386
### <a name="icingaweb2--pick"></a>`icingaweb2::pick`
45004387

45014388
Type: Puppet Language

functions/cert/files.pp

Lines changed: 0 additions & 77 deletions
This file was deleted.

functions/db/connect.pp

Lines changed: 0 additions & 89 deletions
This file was deleted.

manifests/config.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
$default_domain = $icingaweb2::default_domain
3636
$admin_role = $icingaweb2::admin_role
3737
$admin_username = $icingaweb2::default_admin_username
38-
$admin_password = icingaweb2::unwrap($icingaweb2::default_admin_password)
38+
$admin_password = unwrap($icingaweb2::default_admin_password)
3939

4040
$use_tls = $icingaweb2::use_tls
4141
$tls = $icingaweb2::tls + {
@@ -194,7 +194,7 @@
194194
}
195195
}
196196
'pgsql': {
197-
$_db_password = icingaweb2::unwrap($db['password'])
197+
$_db_password = unwrap($db['password'])
198198

199199
exec { 'import schema':
200200
environment => ["PGPASSWORD=${_db_password}"],

manifests/module.pp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,6 @@
7272
'absent'
7373
}
7474

75-
file {
76-
default:
77-
owner => $conf_user,
78-
group => $conf_group,
79-
;
80-
"${conf_dir}/enabledModules/${module}":
81-
ensure => $enable_module,
82-
target => $module_dir,
83-
;
84-
["${conf_dir}/modules/${module}", "${state_dir}/${module}"]:
85-
ensure => directory,
86-
owner => 'root',
87-
mode => '2770',
88-
;
89-
}
90-
91-
create_resources('icingaweb2::inisection', $settings)
92-
9375
case $install_method {
9476
'none': {}
9577
'git': {
@@ -109,4 +91,22 @@
10991
fail('The installation method you provided is not supported.')
11092
}
11193
}
94+
95+
file {
96+
default:
97+
owner => $conf_user,
98+
group => $conf_group,
99+
;
100+
"${conf_dir}/enabledModules/${module}":
101+
ensure => $enable_module,
102+
target => $module_dir,
103+
;
104+
["${conf_dir}/modules/${module}", "${state_dir}/${module}"]:
105+
ensure => directory,
106+
owner => 'root',
107+
mode => '2770',
108+
;
109+
}
110+
111+
create_resources('icingaweb2::inisection', $settings)
112112
}

manifests/module/director.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
'host' => $api_host,
210210
'port' => $api_port,
211211
'username' => $api_username,
212-
'password' => icingaweb2::unwrap($api_password),
212+
'password' => unwrap($api_password),
213213
},
214214
},
215215
}

manifests/module/elasticsearch/instance.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
$instance_settings = {
4343
'uri' => $uri,
4444
'user' => $user,
45-
'password' => icingaweb2::unwrap($password),
45+
'password' => unwrap($password),
4646
'ca' => $ca,
4747
'client_certificate' => $client_certificate,
4848
'client_private_key' => $client_private_key,

manifests/module/graphite.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$graphite_settings = {
8989
'url' => $url,
9090
'user' => $user,
91-
'password' => icingaweb2::unwrap($password),
91+
'password' => unwrap($password),
9292
'insecure' => $insecure,
9393
}
9494

manifests/module/icingadb/commandtransport.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
host => $host,
3434
port => $port,
3535
username => $username,
36-
password => icingaweb2::unwrap($password),
36+
password => unwrap($password),
3737
}
3838

3939
icingaweb2::inisection { "icingadb-commandtransport-${commandtransport}":

0 commit comments

Comments
 (0)