On Monday, October 22, 2012 12:55:25 PM UTC-5, Dominic wrote:
>
> Hi JCBollinger, Thank you so much for your suggestions.
>
> Here goes my manifests:
>
>
> #init.pp
>
> class rabbitmq {
>     include rabbitmq::source, rabbitmq::service
> } 
>
>
> #source.pp
>
> class rabbitmq::source {
>     file { "/home/user": ensure => directory }
>     file { "/home/user/rabbitmq-server-generic-unix-2.8.7.tar.gz":
> source => 
> "puppet:///modules/rabbitmq/rabbitmq-server-generic-unix-2.8.7.tar.gz",
> alias => "rabbitmq-source-tgz",
> before => Exec["untar-rabbitmq-source"]
>     }
>     exec { "/bin/tar xzvf rabbitmq-server-generic-unix-2.8.7.tar.gz":
> cwd => "/home/user/",
> creates => "/home/user/rabbitmq_server-2.8.7",
> alias => "untar-rabbitmq-source",
> subscribe => File["rabbitmq-source-tgz"]
>     }
> } 
>
> #service.pp
>
> class rabbitmq::service  {
>   exec { "rabbitmq_service":
>       environment => "HOME=/home/user",
>       command=> "/home/user/rabbitmq_server-2.8.7/sbin/rabbitmq-server 
> -detached ",
>       require => Class["rabbitmq::source"]
>    }
>   }
>
> We dont have root permissions, as we are hosting it in the Cloud.
>


I'm not sure why that inherently means you don't have root, but whatever.

So, supposing the issue is with 
File["/home/user/rabbitmq-server-generic-unix-2.8.7.tar.gz"], it's not 
immediately clear to me whether Puppet's behavior is correct here.  It 
seems to be defaulting the target group to 0 (since you don't specify a 
group, that has to be coming in as a default).  That's not documented 
behavior, but it may still be intentional.  On the other hand, it is usual 
for the agent to run as root, which would mask this behavior.  I would 
suggest that you file a ticket.

In the mean time, I would try to work around the issue by adding a 'group' 
parameter to the file that specifies the correct target group (presumably 
the primary group of the user who is running Puppet).

Good luck,

John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/JpSUJqdNUt4J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to