Tag Archives: canonify

Canonifying a list with CFEngine 3

John Sanders shared a pattern for canonifying lists in #CFEngine on irc.freenode.net yesterday. It’s a useful reference so I thought I would replicate it here.   In lines 9-12 of the example policy we build an array with values that need to be canonified. We use getindices to get the list of the first index. […]