Issue #18873 has been updated by Stefan Schulte.
Hi Justin,
a defined type is possible but it gets complicated when you are working with
lists of values. Let's say you want to set the search value to 'exmaple.com'
and 'test.com'. What you want in your manifest is to specify
<pre>
service_config { 'config/search':
fmri => 'svc:/network/dns/client',
ensure => [ 'example.com', 'test.com' ],
}
</pre>
This is the command you have to execute (notice the round brackets and the
quotes
<pre>
# svccfg -s 'svc:/network/dns/client' setprop config/search astring:
'("example.com" "test.com")'
</pre>
And this is the value you have to check against (notice that there are not
brackets
<pre>
# svccfg -s svc:/network/dns/client listprop config/search
config/search astring "example.com" "test.com"
</pre>
I've already written a custom type and provider to set values only removing
values is currently not possible. So I'm just curious if this type would be
something we want to have in core or should live on its own (like on the forge)
----------------------------------------
Feature #18873: Puppet should have a type to change SMF settings on Solaris 11
https://projects.puppetlabs.com/issues/18873#change-81909
Author: Stefan Schulte
Status: Unreviewed
Priority: Normal
Assignee:
Category: RAL
Target version:
Affected Puppet version:
Keywords: solaris smf svccfg
Branch:
On Solaris 11 quite a lot of configuration files have moved to SMF.
This means that you can no longer manage a lot of Solaris 11 configuration
directly, e.g. setting nameservers in `/etc/resolv.conf` is no longer possible.
Instead you have to run
<pre>
svccfg -s dns/client listprop config/nameserver
svccfg -s dns/client setprop config/nameserver = net_address: 10.0.0.1
</pre>
Puppet should have a native type `service_config` to be able to manage those
aspects on Solaris 11.
Feel free to assign the ticket to me if you think it is valid.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.