开发者

Automating Solaris custom software deployment and configuration for multiple nodes

开发者 https://www.devze.com 2023-01-26 02:45 出处:网络
Essentially, the question I\'d like to ask is related to the automation of software package deployments on Solaris 10.

Essentially, the question I'd like to ask is related to the automation of software package deployments on Solaris 10.

Specifically, I have a set of software components in tar files that run as daemon processes after being extracted and configured in the host environment. Pretty much like any server side software package out there, I need to ensure that a list of prerequisites are met before extracting and running the software. For example:

  • Checking that certain users exists, and they are associated with one or many user groups. If not, then create them and their group associations.

  • Checking that target application folders exist and if not, then create them with pre-configured path values defined when the package was assembled.

  • Checking that such folders have the appropriate access control level and ownership for a certain user. If not, then set them.

  • Checking that a set of environment variables are defined in /etc/profile, pointed to predefined path locations, added to the general $PATH environment variable, and finally exported into the user's environment. Other files include /etc/services and /etc/system.

Obviously, doing this for many bo开发者_如何学运维xes (the goal in question) by hand will certainly be slow and error prone.

I believe a better alternative is to somehow automate this process. So far I have thought about the following options, and discarded them for one reason or another.

  1. Traditional shell scripts. I've only troubleshooted these before, and I don't really have much experience with them. These would be my last resort.

  2. Python scripts using the pexpect library for analyzing system command output. This was my initial choice since the target Solaris environments have it installed. However, I want to make sure that I'm not reinveting the wheel again :P.

  3. Ant or Gradle scripts. They may be an option since the boxes also have Java 1.5 enabled, and the fileset abstractions can be very useful. However, they may fall short when dealing with user and folder permissions checking/setting.

It seems obvious to me that I'm not the first person in this situation, but I don't seem to find a utility framework geared towards this purpose. Please let me know if there's a better way to accomplish this.

I thank you for your time and help.


Most of those steps sound like things handled by use of a packaging system to install your package. On Solaris 10, that would be the SVR4 packaging system included with the OS.

0

精彩评论

暂无评论...
验证码 换一张
取 消