Closed
Description
This seems, to me, perfectly acceptable:
systemd::unit_file { "pgbackrest-backup-${kind}@${shortname}.service":
enable => false,
active => false,
target => "pgbackrest-backup-${kind}@.service",
}
yet unit_file
wants a stdlib AbsolutePath so this crashes violently with:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Systemd::Unit_file[[email protected]]: parameter 'target' expects a Stdlib::Absolutepath = Variant[Stdlib::Windowspath = Pattern[/\A(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+)).*\z/], Stdlib::Unixpath = Pattern[/\A\/([^\n\/\0]+\/*)*\z/]] value, got String (file: /etc/puppet/code/environments/prom_module_upgrade/3rdparty/modules/pgbackrest/manifests/repository/stanza.pp, line: 77) on node backup-storage-01.torproject.org
seems to me we should be a little more tolerant here.
thoughts? concretely i think this means just switching to a plain string...