On 10/25/11 19:47, Frank Allan wrote:
Are there any examples of how to configure and activate a one-time SMF
manifest to do post-install customization after an AI install?
I have the install happily working, and I can login and run a script
which will configure the system as I want it with several extra users,
DNS search path, sudo configuration, sendmail off etc.
You can deliver new users and groups in a package; it's very easy to do so.
See pkg(5) for action documentation, and pkgsend(1) for the rest.
DNS search path should be possible to configure using an SMF profile.
As for sudo configuration, you should deliver your custom policy files
to /etc/sudoers.d in a package (they're read in lexical order). See
sudoers(4).
Likewise, I believe you can deliver a custom configuration file for
sendmail, and there are service properties to point it at that
configuration that can be applied through an SMF profile.
How do I get this to be automatically run at (and only at) initial
reboot after installation?
If you deliver everything in a package as shown above, you should get
what you want (although users and groups will be applied at install time).
From everything I have seen this requires a one-time SMF service?
You haven't enumerated everything you want to do, but I believe I've
shown you can everything you need without scripting above.
Has anyone done this? Are there examples around which I can plagiarize?
I still do not understand the reasoning behind not allowing post-install
scripting. It seems to just make things more difficult for no added
benefit.
On the contrary. No post-install scripting means that the system has
grown more standard functionality for doing some of the things you want
to do, which means as Solaris evolves (different zone types, etc.)
configuration continues to work instead of requiring you to fix your
scripts.
It also means you get a consistent result that can be audited by the
package system, and that you can simply run 'pkg verify' to ensure that
configuration is correct. Likewise, if configuration is altered, you
can use 'pkg revert' to revert it to the initial state, and 'pkg fix' to
fix it.
-Shawn
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss