Skip to content

(#18047) Revert change to user confdir#1324

Merged
zaphod42 merged 1 commit intopuppetlabs:3.0.xfrom
joshcooper:ticket/3.0.x/18047-revert-user-confdir
Dec 11, 2012
Merged

(#18047) Revert change to user confdir#1324
zaphod42 merged 1 commit intopuppetlabs:3.0.xfrom
joshcooper:ticket/3.0.x/18047-revert-user-confdir

Conversation

@joshcooper
Copy link
Contributor

In 3.0, the default user confdir (and vardir) was changed from ~/.puppet
to the Dir::LOCAL_APPDATA/PuppetLabs. However, when puppet is run as a
non-administrator, puppet will attempt to create its confdir, e.g.
C:\Users\albert\AppData\Local\PuppetLabs\puppet, and fail because the
parent PuppetLabs directory doesn't exist.

This wasn't an issue in 2.7.x, because the confdir was ~/.puppet, so the
parent directory always existed.

This commit restores the previous behavior for non-administrators. No
changes are required for administrators, because the MSI installer creates
the necessary directories within COMMON_APPDATA.

In 3.0, the default user confdir (and vardir) was changed from ~/.puppet
to the Dir::LOCAL_APPDATA/PuppetLabs. However, when puppet is run as a
non-administrator, puppet will attempt to create its confdir, e.g.
C:\Users\albert\AppData\Local\PuppetLabs\puppet, and fail because the
parent PuppetLabs directory doesn't exist.

This wasn't an issue in 2.7.x, because the confdir was ~/.puppet, so the
parent directory always existed.

This commit restores the previous behavior for non-administrators. No
changes are required for administrators, because the MSI installer creates
the necessary directories within COMMON_APPDATA.
zaphod42 added a commit that referenced this pull request Dec 11, 2012
…er-confdir

(#18047) Revert change to user confdir
@zaphod42 zaphod42 merged commit a81a44b into puppetlabs:3.0.x Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants