I do this all the time and never get any warnings.

On Fri, Nov 27, 2009 at 8:47 PM, Neil Watson <cfeng...@watson-wilson.ca> wrote:
> Can one keep bundles in library.cf to be called when needed but not in
> the bundle sequence?  I have done so but cf-promises is giving me
> warnings.
>
> nova>  ?? Analysing promise dependencies for "promise_library_cf_28"
> nova> Classes activated by the outcomes of promise ref 
> "promise_library_cf_28" did not occur in any promise proposal, so they are 
> nullpotent
> nova> Promise (version not specified) belongs to bundle 'fileperms' in file 
> '/var/cfengine/inputs/library.cf' near line 28
> nova> Comment: ${cmt}
> nova> Invalid mode string (${mod})
> nova> Problem validating a mode string
> nova> Promise (version not specified) belongs to bundle 'fileperms' in file 
> '/var/cfengine/inputs/library.cf' near line 28
> nova> Comment: ${cmt}
> nova> Unknown user ${usr}
> nova> Unknown group '${grp}'
> nova> Promise (version not specified) belongs to bundle 'fileperms' in file 
> '/var/cfengine/inputs/library.cf' near line 28
> nova> Comment: ${cmt}
>
> bundle agent fileperms (trg, mod, usr, grp, cmt){
> # Bundle to set file permissions.
>
>     files:
>         "${trg}"
>             perms => system( "${mod}", "${usr}", "${grp}" ),
>             action => warn_now, # Passive only at this point.
>             classes => cdefine(
>                 "${trg}_kept",
>                 "${trg}_repaired",
>                 "${trg}_failed"
>             ),
>             comment => "${cmt}";
>
>     reports:
>
>         all::
>             "ALARM: ${trg} wrong perms ${mod}, ${usr}, ${grp}",
>             ifvarclass => canonify("${trg}_failed");
>
>             "${trg} correct perms ${mod}, ${usr}, ${grp}",
>             ifvarclass => canonify("${trg}_kept");
>
>             "WARNING: ${trg} fixed perms ${mod}, ${usr}, ${grp}",
>             ifvarclass => canonify("${trg}_repaired");
> }
>
> --
> Neil Watson
> Linux/UNIX Consultant
> http://watson-wilson.ca
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to