Dynamically define cfengine class functions #4891
Unanswered
basvandervlies
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The only way I can think of is to render a policy file, from a template, with the correct function call(s). We could consider adding another function:
What do you think about that idea? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have asked this question in the newsgroup, maybe I missed the answer!
I want to use the cfengine class functions dynamically. I will try to explain it, eg:
But in the example above the
isdir("/etc")
is a variable defined in a json filealso tried:
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions