puppet; nsswitch.conf; wrong result: "hosts: cluster\ files\ dns"
Hi,
Any idea how to manage name-service/switch service using puppet nsswitch module?
As a result there will be backslash in front of space and configuration is broken as result:
Current value:
# svccfg -s name-service/switch listprop config/host
config/host astring "files dns"
Modify puppet: cluster.pp
...
nsswitch { "current":
host => "cluster files dns",
}
...
Run puppet (everything seems fine):
# puppet agent --test
...
Debug: Executing: '/usr/sbin/svccfg -s svc:/system/name-service/switch setprop config/host=cluster\ files\ dns'
Notice: /Stage[main]/Main/Node[hostname]/Nsswitch[current]/host: host changed 'files dns' to 'cluster files dns'
Result (double backslash is added