The module’s defines chattr::attribute_add and chattr::attribute_remove accept the parameter ‘$attribute’ meant to specify what file attributes should be added or removed.
However, within the defines the execs hard-code the attribute to be controlled to ‘i’, Immutable. For example in chattr::attribute_add the exec’s identifier is "chattr +i ${name}" when it should be similar to "chattr +${attribute} ${name}".
I’ve tested this under Puppet server 2.7.2 on CentOS 7.
The module’s defines chattr::attribute_add and chattr::attribute_remove accept the parameter ‘$attribute’ meant to specify what file attributes should be added or removed.
However, within the defines the execs hard-code the attribute to be controlled to ‘i’, Immutable. For example in chattr::attribute_add the exec’s identifier is "chattr +i ${name}" when it should be similar to "chattr +${attribute} ${name}".
I’ve tested this under Puppet server 2.7.2 on CentOS 7.