FAQ
Hi,

I am having an issue when i try to move a package from non-root directory
to root-directory...

What i Did is:
1. create a directory with non-root user as the owner
2. copied a package from server using 'file' parameter as shown below:

file { "/usr/local/packages/java.tar.gz":
source => "puppet:///haproxy/files/java.tar.gz",
alias => "java-package",
require => File["package-directory"],
}

3. Then, when i tried to move this tar file to some directory owned by root
user, it gives me error

********************************************************************************************************************************************************************************************************************
File[/usr/local/packages/java.tar.gz]/ensure: change from absent to file
failed: failed to chgrp /usr/local/packages/java.tar.gz to 0: Operation not
permitted - /usr/local/packages/java.tar.gz

********************************************************************************************************************************************************************************************************************

My puppet version is '0.25.5'

my puppet-server is running via root-user , while my puppet client is
running via a non-root user.

Please provide some solution for this issue.

Thanks
Saurabh

--
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/-/6jtciYtLSPoJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Saurabh Bathe at Oct 12, 2012 at 1:24 pm

    On Fri, Oct 12, 2012 at 1:28 PM, saurabh kumar wrote:
    my puppet-server is running via root-user , while my puppet client is
    running via a non-root user.
    This could be the issue. The user running the puppet does not have
    enough privileges to complete that action.

    --
    Thanks
    Saurabh Bathe

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Jcbollinger at Oct 12, 2012 at 1:54 pm

    On Friday, October 12, 2012 2:58:16 AM UTC-5, saurabh kumar wrote:
    my puppet-server is running via root-user , while my puppet client is
    running via a non-root user.

    That is exactly backwards. The master does not need to run as a privileged
    user, therefore it should not do so. The client, on the other hand,
    normally *does* need to run as a privileged user (e.g. root) because that
    is necessary for managing most resources of interest.


    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/-/_pOP2VrGvAQJ.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedOct 12, '12 at 7:59a
activeOct 12, '12 at 1:54p
posts3
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase