Bug #7731

install.rb doesn't honor --destdir with respect to /etc/puppet/auth.conf

Added by Nigel Kersten 12 months ago. Updated 12 days ago.

Status:Accepted Start date:06/01/2011
Priority:High Due date:
Assignee:Matthaus Litteken % Done:

0%

Category:installation
Target version:2.7.x
Affected Puppet version: Branch:
Keywords:
Votes: 0

Description

When you pass —destdir into install.rb, it still installs the config files in /etc/puppet, no matter what destdir is set to.

History

Updated by Dominic Maraglia 12 months ago

  • Category set to installation
  • Status changed from Unreviewed to Accepted
  • Priority changed from Normal to High

This would appear to be serious bug for customer who require an alternate install dir.

Updated by Nigel Kersten 8 months ago

  • Target version set to 2.7.x

Updated by Josh Cooper 8 months ago

This works for me using 2.7.6rc1. Make sure to specify ‘=’ between the option and value, otherwise it won’t work.

$ ./install.rb --destdir=/Users/josh/tmp/mypuppet
conf/auth.conf -> /Users/josh/tmp/mypuppet/etc/puppet/auth.conf
chmod 0644 /Users/josh/tmp/mypuppet/etc/puppet/auth.conf

Updated by Nigel Kersten 8 months ago

  • Assignee set to Nigel Kersten

Hrm.

We’ve still got a problem with MacPorts trying to use this:

--->  Staging puppet into destroot
Warning: violation by /etc
Warning: puppet violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!
--->  Installing puppet @2.7.6rc1_0
--->  Activating puppet @2.7.6rc1_0
--->  Cleaning puppet
destroot.cmd        ${prefix}/bin/ruby ${worksrcpath}/install.rb \
                    --destdir=${destroot}

There’s some other interaction going on. I’ll test it more today.

Updated by Michael Stahnke 6 months ago

  • Assignee changed from Nigel Kersten to Michael Stahnke

Updating with notes from nigel:

There's a bug blocking MacPorts.

http://trac.macports.org/ticket/29676

if we get this fixed, would could update MacPorts as well for each release. It's actually really easy.
You basically submit a diff like this:
http://trac.macports.org/attachment/ticket/26996/Portfile-puppet.diff

Updated by Michael Stahnke 6 months ago

  • Assignee changed from Michael Stahnke to Jonathan Grochowski

Updated by Nigel Kersten 12 days ago

  • Assignee changed from Jonathan Grochowski to Matthaus Litteken

Note the upstream Macports bug: http://trac.macports.org/ticket/29676

(It’s set to “open maintainer” so anyone can submit patches, not just that lazy bastard who is the primary maintainer)

Also available in: Atom PDF