Jithin Xavier
2013-Mar-05 12:02 UTC
[Puppet Users] Package(Java.ActiveMQ etc..) Manual Installation Issues.
Hi All, I am trying to install Java or ActiveMQ manually into my agent server from master, Installation is working fine for me, but the issues which I am facing is whenever I run *puppet agent -t* in my agent ActiveMQ installing again and again,basically ActiveMQ installation is not checking in my manifests. 1.) How we can check custom service running using manifest? 2) How we can achieve this with conditional(if,else...) statement? Please find my code below.. class activemq { include wget::gxactivemq exec { ''ActiveMQExe'': command => "/bin/tar xzf /gx/mnt/software/ESB/apache-activemq-5.5.1-bin.tar.gz", cwd => "/gx/mnt/software/ESB/", require => [wget::fetch["activemqDownload"]], logoutput => true, } file { ''/gx/logical/ESB/'': ensure => link, owner => "ubuntu", group => "ubuntu", target => ''/gx/mnt/software/ESB/'', require => [Exec["ActiveMQExe"]], } file { ''/gx/logical/ESB/apache-activemq-5.5.1'': ensure => "directory", owner => "ubuntu", group => "ubuntu", recurse => true, require => [Exec["ActiveMQExe"],File["/gx/logical/ESB/"]], } file { ''/gx/logical/ESB/apache-activemq-5.5.1/conf'': ensure => "directory", owner => "ubuntu", group => "ubuntu", mode => 777, recurse => true, require => [Exec["ActiveMQExe"],File["/gx/logical/ESB/"]], } } Thanks, Jithin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-06 14:09 UTC
Re: [Puppet Users] Package(Java.ActiveMQ etc..) Manual Installation Issues.
Hi, On 03/05/2013 01:02 PM, Jithin Xavier wrote:> > exec { ''ActiveMQExe'': > command => "/bin/tar xzf > /gx/mnt/software/ESB/apache-activemq-5.5.1-bin.tar.gz", > cwd => "/gx/mnt/software/ESB/", > require => [wget::fetch["activemqDownload"]],The most simple obvious approach would be to add a parameter creates => "/gx/mnt/software/ESB/<tree>" to this create. Always use creates (or onlyif/unless) in execs. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.