This message was deleted.
# bolt
s
This message was deleted.
k
Copy code
$ pkgutil --pkg-info com.puppetlabs.pe-client-tools
package-id: com.puppetlabs.pe-client-tools
version: 21.1.0
volume: /
location:
install-time: 1674918131
Copy code
$ brew info pe-client-tools
==> pe-client-tools: 21.1.0
<https://puppet.com/docs/pe/latest/installing_pe_client_tools.html>
/usr/local/Caskroom/pe-client-tools/21.1.0 (36.5MB)
From: <https://github.com/puppetlabs/homebrew-puppet/blob/HEAD/Casks/pe-client-tools.rb>
==> Name
PE Client Tools
==> Description
None
==> Artifacts
pe-client-tools-21.1.0-1-installer.pkg (Pkg)
I haven’t checked to see if this bug exists on linux version (or any other pe-client-tools package for *nix)
b
I'm not sure if /etc/puppetlabs/client-tools/puppet-access.conf is read when you run it as non-root. usually only root reads in /etc and for normal users your need to add the config in your home dir
k
well, it reads it, because it’s creating the token file in the place specified, just literally, without bash tilde expansion.
b
ahhhh
okay
k
Docs suggest either global or personal conf file should work: https://www.puppet.com/docs/pe/2021.7/rbac_token_auth_intro.html?#global-conofiguration-file
Looks like the default for token-file is ~/.puppetlabs/token. I should try removing
"token-file": "~/.puppetlabs/token",
and observe where the token is created.
Confirmed. If i remove the above from /etc/puppetlabs/client-tools/puppet-access.conf, it creates the token as /Users/<username>/.puppetlabs/token