is it possible inside a component template, to write a compliance rule that checks if a given file is identical to a golden master?
i'm trying some compliance against a /etc/nsswitch.conf configuration that reads like
passwd: files winbind
shadow: files winbind
group: files winbind
do i need to write a tedious rule like
/etc/nsswitch.conf//passwd value1 contains files and
/etc/nsswitch.conf//passwd value2 contains winbind and
/etc/nsswitch.conf//shadow value1 contains files and
/etc/nsswitch.conf//shadow value2 contains winbind and
/etc/nsswitch.conf//group value1 contains files and
/etc/nsswitch.conf//group value2 contains winbind
or there a way to compare it to a reference file in one step?
You need to write the rules, or you could use a checksum.