Skip to content

Commit

Permalink
feat: fix director name assignment with hiera lookup and add document…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
mi-reichel committed Oct 2, 2024
1 parent 2f8fc7e commit c67f0fc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ against it. You can run those locally ahead of time with:
bundle exec rake rubocop
```

Or if you want to run them all together at once:
```sh
bundle exec rake strings:generate:reference && bundle exec rake lint && bundle exec rake validate && bundle exec rake rubocop
```

### Running the unit tests

The unit test suite covers most of the code, as mentioned above please
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,20 @@ class { 'bacula::client':
}
```

To exclude Info messages from the logfile.

```puppet
class { 'bacula::client':
messages => { 'Standard-fd' => {
daemon => 'fd',
mname => 'Standard',
director => "${director}-dir = all, !skipped, !restored",
append => '"/var/log/bacula/bacula-fd.log" = all, !info, !skipped',
},
},
}
```

#### Data Encryption (PKI Setup)

Refer to the [PKI
Expand Down
5 changes: 0 additions & 5 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ The following parameters are available in the `bacula::client` class:
* [`listen_address`](#-bacula--client--listen_address)
* [`password`](#-bacula--client--password)
* [`max_concurrent_jobs`](#-bacula--client--max_concurrent_jobs)
* [`manage_defaults`](#-bacula--client--manage_defaults)
* [`director_name`](#-bacula--client--director_name)
* [`autoprune`](#-bacula--client--autoprune)
* [`file_retention`](#-bacula--client--file_retention)
Expand Down Expand Up @@ -383,10 +382,6 @@ Bacula FD option for 'Maximum Concurrent Jobs'

Default value: `2`

##### <a name="-bacula--client--manage_defaults"></a>`manage_defaults`

Setup default message type

##### <a name="-bacula--client--director_name"></a>`director_name`

Data type: `String`
Expand Down
2 changes: 1 addition & 1 deletion data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bacula::client::messages:
Standard-fd:
daemon: 'fd'
mname: 'Standard'
director: "${director_name}-dir = all, !skipped, !restored"
director: "%{trusted.certname}-dir = all, !skipped, !restored"
append: '"/var/log/bacula/bacula-fd.log" = all, !skipped'
bacula::director::packages: []

Expand Down
1 change: 0 additions & 1 deletion manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
# Bacula being unable to bind twice to the IPv4 address and fail to start.
# @param password A password to use for communication with this File Daemon
# @param max_concurrent_jobs Bacula FD option for 'Maximum Concurrent Jobs'
# @param manage_defaults Setup default message type
# @param director_name The hostname of the director for this FD
# @param autoprune Bacula FD option for 'AutoPrune'
# @param file_retention Bacula FD option for 'File Retention'
Expand Down

0 comments on commit c67f0fc

Please sign in to comment.