How do I install Websphere MQ using WS_MQ_SOL_ON_X86_64_7.5.0.2_IMG.tar files in a puppet master? or are there any available deb or rpm packages which puppet can recognize?

111 views
Skip to first unread message

Chayce

unread,
Oct 1, 2014, 12:18:55 PM10/1/14
to puppet...@googlegroups.com
Hi,

Actually, I am trying to install Websphere MQ on agents by using puppet master. I think there are two ways. One is from available .tar files, and other is using rpm/deb. I also want to use rpm, but how do I create a manifest to use rpm packages. I found modules for activemq, and rabbitmq but not for web sphere mq in puppet forge. or What I am missing here? Thank you.

Brian Morris

unread,
Oct 1, 2014, 6:40:13 PM10/1/14
to puppet...@googlegroups.com
This is what I use to deploy VMTools, which is packaged similarly. First I place the tar.gz file within the manifest's "files" dir, and here is the code:

if ( $::virtual == vmware ) {
  
 File["/home/someuser/vmtools_package.tgz"] -> Exec["vmtools_install"]
  
    file {"/home/someuser/vmtools_package.tgz":
      source    => "puppet:///modules/vmtools_install/VMwareTools-9.0.5-1283433.tar.gz",
      schedule  => 'hourly',
    }
 exec {"vmtools_install":
   command   => '/bin/sh -c "killall vmtoolsd; cd /home/someuser && tar xzf vmtools_package.tgz && cd vmware-tools-distrib && ./vmware-install.pl -d && cd .. && rm -rf vm* && /usr/sbin/vmtoolsd &"',
   schedule  => 'hourly',
}
  }

Notice that the handling and installing of the packaged file all happens in one line. The hourly schedule insures that a client doesn't try to start this process again while another one is running, as the compile during installation can take a while. It also cleans up the installation files when done.

I hope this helps,
Brian
Reply all
Reply to author
Forward
0 new messages