Bug #27857
closedcerts' privkey type doesn't require parent paths
Description
puppet-certs' privkey type (and others that inherit from common) have a path parameter and autorequire a file with that path, but don't require the parent. When it tries to write the file without the parent, it fails even it the catalog does include the parent. The log shows this (note the timestamps):
[ERROR 2019-09-14T04:58:09 main] Could not set 'present' on ensure: No such file or directory @ rb_sysopen - /etc/pki/katello/private/katello-apache.key (file: /usr/share/foreman-installer/modules/certs/manifests/keypair.pp, line: 18)
[ WARN 2019-09-14T04:58:25 main] /Stage[main]/Certs::Config/File[/etc/pki/katello/private]/ensure: created
Autorequiring all parents all the way to the root should solve this.
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/puppet-certs/pull/257 added
Updated by Ewoud Kohl van Wijngaarden over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-certs|b467c25ce5faa748a4b50559927518bf2331b080.