Skip to content

Commit

Permalink
do not display a diff when the password file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Nov 17, 2020
1 parent bfc5bad commit 9962d44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
* Add defined type to manage backup jobs: `ds_389::backup`

### Fixed
* Protect passwords by not displaying a diff when the password file changes

## [2.2.0] - 2020-11-16
This release fixes a major bug when using self-signed certificates. In previous
releases the internal CA certificate was created without the required
Expand Down
15 changes: 8 additions & 7 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@
}

file { "${instance_path}/pin.txt":
ensure => file,
mode => '0440',
owner => $user,
group => $group,
content => "Internal (Software) Token:${root_dn_pass}\n",
require => Exec["setup ds: ${server_id}"],
notify => Exec["restart ${server_id} to pick up new token"],
ensure => file,
mode => '0440',
owner => $user,
group => $group,
content => "Internal (Software) Token:${root_dn_pass}\n",
show_diff => false,
require => Exec["setup ds: ${server_id}"],
notify => Exec["restart ${server_id} to pick up new token"],
}

# If we have existing certs, create cert db and import certs.
Expand Down

0 comments on commit 9962d44

Please sign in to comment.