Written by J. Moellenkamp on
Reading time: 2 minutes
SolarisEnglish
A glimpse into Solaris 11.2 specific Puppet components
Now you have a working Puppet testbed in your Solaris 11.2 beta installation it’s time to try some Solaris specific stuff. Oracle a number of additional stuff in order to control Solaris specifics like boot environments, VNICs or SMF. You can find the respective code at java.net.
The examples from Manuels blog entry
Let’s try at first the puppet commands Manuel Zach wrote about in his blog a few days ago in his blog
I added some lines to my nodes.pp from the last article. I want to install tmux and introduce an zfs quota on the pool/export dataset
When you try this on agent3, the puppet agent will set the quota and install the package.
Try the same on agent1 and nothing will happen. Obviously, we’ve limited it by configuration to agent3. Would be a problem if the system would behave otherwise :)
Let’s add the creation of a boot environment and put it in the default node:
However, when executing it on agent3 nothing will happen.
This is a nice example what is meant with my comment that the default node doesn’t define whats done on each node by default, but what is done on a node that doesn’t have it’s own definition of things to do.
In order to execute it on each node, remove it from the default node. I’ve put it just in the site.pp like:
When you now trigger it manually on agent3, you see that now the boot environment is created by Puppet.
Let’s repeat it on agent1
Changing DNS
Another example is changing the DNS server by puppet, for example when you want to migrate 300 zones from one DNS server to another. Simply add the necessary statements to the site.pp
Now trigger puppet on on of the servers - for example agent3 and check the correct DNS configuration:
Conclusion
As indicated by the link to java.net there are a lot more available providers, but that is stuff for more blog entries