Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

auth.conf not parsable by the trapperkeeper lens #23

Closed
damoxc opened this issue Jan 19, 2016 · 7 comments
Closed

auth.conf not parsable by the trapperkeeper lens #23

damoxc opened this issue Jan 19, 2016 · 7 comments

Comments

@damoxc
Copy link

damoxc commented Jan 19, 2016

Using the latest puppetserver, the auth.conf file can't be read or modified by the trapperkeeper lens. My knowledge of writing lens isn't great but I'm going to guess that this is due to the nested hashes inside the array rules.

Could not evaluate: Augeas didn't load /etc/puppetlabs/puppetserver/conf.d/auth.conf with Trapperkeeper.lns: Syntax error (line:3, character:10)

This is just using an unmodified auth.conf from the package.

@raphink
Copy link
Member

raphink commented Jan 21, 2016

auth.conf is not meant to be parsed with the Trapperkeeper.lns lens. It's not the same format at all. If you want to modify auth.conf, you need to the use Puppet_Auth.lns lens. I would actually recommend using the puppet_auth type from augeasproviders_puppet.

@damoxc
Copy link
Author

damoxc commented Jan 21, 2016

This isn't the leacy Puppet auth.conf but the new auth.conf that uses Trapperkeeper authentication.

See https://docs.puppetlabs.com/puppetserver/latest/config_file_auth.html#aside-changes-to-authorization-in-puppet-server-220/

@damoxc
Copy link
Author

damoxc commented Jan 21, 2016

Actually, just noticed PuppetLabs provide a module for managing it anyway, sorry!

@damoxc damoxc closed this as completed Jan 21, 2016
@mvisonneau
Copy link
Contributor

Got the same issue..! Had it with webserver.conf and puppetserver.conf as well. What is the module you're using @damoxc ?

@mvisonneau
Copy link
Contributor

My bad webserver.conf and puppetserver.conf works fine..

@damoxc
Copy link
Author

damoxc commented Feb 3, 2016

@mvisonneau There's a module for specifically auth.conf, https://forge.puppetlabs.com/puppetlabs/puppet_authorization and also a module for the file format, https://forge.puppetlabs.com/puppetlabs/hocon

@mvisonneau
Copy link
Contributor

Cool, thanks for the info @damoxc !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants