How to assert existence/ownership/permissions of directory while ignoring contents? #185
Unanswered
catniptwinz
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experimenting with aconfmgr in the hopes of using it to manage some existing systems and I'd like to get some clarification regarding some behavior I'm observing from
aconfmgr save
.I would like to assert that a directory should exist with specific ownership and permissions, but aconfmgr should not manage its contents. The eventual use case is a maildir used by system services.
Here is a minimal working example which reproduces the issue I'm encountering.
aconfmgr save
creates the assertions I'd expect to see:Now, we want to ignore the contents of
/foo/bar
. Add:And
aconfmgr save
emits:Why is this, and what is the correct way to assert the existence/ownership/permissions of a directory while ignoring its contents?
Beta Was this translation helpful? Give feedback.
All reactions