The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #23378

Zypper package provider needs $HOME set to access username/password-protected repos

Added by Pieter Hollants over 2 years ago. Updated over 2 years ago.

Status:UnreviewedStart date:
Priority:HighDue date:
Assignee:-% Done:


Target version:3.3.2
Affected Puppet version:3.3.1 Branch:
Keywords:zypper package provider

We've Moved!

Ticket tracking is now hosted in JIRA:

This ticket is now tracked at:


zypper, the command used to install packages on SUSE distributions, supports package repositories that requires a username and a password to be accessed. Unlike other comparable utilities for other distributions, zypper stores such credentials information in a file in $HOME, $HOME/.zypp/ to be precisely. However, this requires the environment variable $HOME to be set, which is currently not the case, rendering the zypper package provider unable to access a required password.

The attached patch fixes this by explicitly defining a HOME environment variable set to “/root”. This is correct, because the zypper command requires root permissions for both configuring software repositories and installing software.

zypper-env-home.diff Magnifier (433 Bytes) Pieter Hollants, 12/07/2013 03:15 pm


#1 Updated by Anonymous over 2 years ago

Redmine Issue #23378 has been migrated to JIRA:

Also available in: Atom PDF