Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

either a directory or a link

$
0
0
Short question -- can I define a puppet rule that says "If this directory exists, then leave it alone. If this directory does not exist, create a symlink" ? Long unimportant backstory: Most of my machines are running `openldap` . Most of those machines have their root certificates stored in `/etc/openldap/cacerts` . But a few machines, for whatever reason, are using `/etc/openldap/certs` instead. I don't want to change those machines -- they are working correctly and I want to keep them that way. Puppet is installing new certificates into `/etc/openldap/cacerts` , and it fails when the directory does not exist. So on machines where the `cacerts` directory exists, I don't want to do anything. I just want to know the directory is there. But if the `cacerts` directory does not exist, I don't want to create a new empty directory. I want to soft-link it to the existing `certs` directory. Can puppet manage that for me?

Viewing all articles
Browse latest Browse all 6104

Trending Articles