I have created a resource
svccfg { 'svc:/network/dns/client/:properties/config/search':
ensure => 'present',
type => 'astring',
value => 'test.local.com',
notify => Service['svc:/network/dns/client:default'];
}
svcprop -s -f svc:/network/dns/client/:properties/config/search
test.local.com
The resource creates the property without any issue, but however when we ran the puppet agent again it keeps createing he same property and refreshing the service
"subsequent puppet run after the prpoerty search is created as expected"
Notice: /Stage[main]/Resolv_conf/Svccfg[svc:/network/dns/client/:properties/config/search]/ensure: created
Info: /Stage[main]/Resolv_conf/Svccfg[svc:/network/dns/client/:properties/config/search]: Scheduling refresh of Service[svc:/network/dns/client:default]
root#svcprop -s -f svc:/network/dns/client/:properties/config/search
test.local.com
root#
I have created a resource
svccfg { 'svc:/network/dns/client/:properties/config/search':
ensure => 'present',
type => 'astring',
value => 'test.local.com',
notify => Service['svc:/network/dns/client:default'];
}
svcprop -s -f svc:/network/dns/client/:properties/config/search
test.local.com
The resource creates the property without any issue, but however when we ran the puppet agent again it keeps createing he same property and refreshing the service
"subsequent puppet run after the prpoerty search is created as expected"
Notice: /Stage[main]/Resolv_conf/Svccfg[svc:/network/dns/client/:properties/config/search]/ensure: created
Info: /Stage[main]/Resolv_conf/Svccfg[svc:/network/dns/client/:properties/config/search]: Scheduling refresh of Service[svc:/network/dns/client:default]
root#svcprop -s -f svc:/network/dns/client/:properties/config/search
test.local.com
root#