By default
vault-secrets.secrets.example = {};
Will create example-secrets.service and use it as a dependency for example.service. However, if example.service doesn't exist, vault-secrets will still create it. While the actual target service(s) will miss the example-secrets.service dependency.
IMO, vault-secrets should either throw a warning or an error at evaluation time in case some services from vaule-secrets.secrets.<name>.services don't exist in systemd.services.
By default
Will create
example-secrets.serviceand use it as a dependency forexample.service. However, ifexample.servicedoesn't exist,vault-secretswill still create it. While the actual target service(s) will miss theexample-secrets.servicedependency.IMO,
vault-secretsshould either throw a warning or an error at evaluation time in case some services fromvaule-secrets.secrets.<name>.servicesdon't exist insystemd.services.