Skip to content

Commit

Permalink
Fix private key permissions
Browse files Browse the repository at this point in the history
bla
  • Loading branch information
lbetz committed Aug 3, 2024
1 parent 6eaff4e commit 578919a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,34 @@ This module provides several non private helper classes for the other official I
* [icingadb](https://github.com/voxpupuli/puppet-icingadb)
* [icingaweb2](https://github.com/voxpupuli/puppet-icingaweb2)

### How to use the classes for Icinga Web an databases with MariaDB on Debian bookwork
### How to use the classes for Icinga Web or any database use on Ubuntu Noble

To get Icinga Web 2 running on Debian bookworm use puppet-php >=8.1.0 (no longer necessary if puppet-php >= 10.2.0 is used) and set:
To get Icinga Web 2 running on Ubutunt Noble use puppet-php >=8.3.0 and set:

```yaml
php::globals::php_version: '8.3'
```
The current MariaDB logs to syslog by default so set:
```yaml
mysql::server::override_options:
mysqld:
log-error: ~
```
This disables the logging to file and the requirement and management of an existing directory /var/log/mysql.
If using PostgreSQL you have to set the version to '16':
```yaml
---
postgresql::globals::version: '16'
```
### How to use the classes for Icinga Web or databases with MariaDB on Debian Bookwork
To get Icinga Web 2 running on Debian Bookworm use puppet-php >=8.2.0 (no longer necessary if puppet-php >= 10.2.0 is used) and set:
```yaml
php::globals::php_version: '8.2'
Expand Down
2 changes: 1 addition & 1 deletion manifests/cert.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
group => $group,
mode => '0640',
}
$key_mode = '0400'
$key_mode = '0440'
}

if $args[key] {
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"20.04",
"22.04"
"22.04",
"24.04"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/cert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
'owner' => 'foo',
'group' => 'bar',
'mode' => '0400',
'mode' => '0440',
}
).with_content('key')
}
Expand Down

0 comments on commit 578919a

Please sign in to comment.