$incl = '/etc/samba/smb.conf'
$context = '/files/etc/samba/smb.conf'
- $target = 'target[. = 'global']'
+ $target = 'target[. = "global"]'
augeas { 'global-section':
incl => $incl,
$changes=$nsswitch ? {
true => [
- 'set database[. = 'passwd']/service[1] compat',
- 'set database[. = 'passwd']/service[2] winbind',
- 'set database[. = 'group']/service[1] compat',
- 'set database[. = 'group']/service[2] winbind',
+ 'set database[. = "passwd"]/service[1] compat',
+ 'set database[. = "passwd"]/service[2] winbind',
+ 'set database[. = "group"]/service[1] compat',
+ 'set database[. = "group"]/service[2] winbind',
],
false => [
"rm /files/${nss_file}/database[. = 'passwd']/service[. = 'winbind']",