Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spaces in group names breaks augeasproviders_ssh #149

Open
davealden opened this issue Jun 27, 2017 · 1 comment
Open

spaces in group names breaks augeasproviders_ssh #149

davealden opened this issue Jun 27, 2017 · 1 comment

Comments

@davealden
Copy link

davealden commented Jun 27, 2017

Hi,
Some of our groups have spaces in their name (for example "Domain Users"). While this works fine in sshd_config (you just have to put quotes around the name), it breaks augeasproviders_ssh. For example:

sshd_config { "group with space":
ensure => present,
key => 'AllowGroups',
value => [ "Domain Users" ],
target => '/etc/ssh/sshd_config',
}

Throws an error:

Error: /Stage[main]/Asc_sshd/Sshd_config[group with space]: Could not evaluate: Failed to save Augeas tree to file. See debug logs for details.

I've also tried setting: value => [ '"Domain Users"' ] - but I still get the error.

I've just checked with augtool and it looks like it's an Augeas issue, so I'll open a ticket there (I'll leave this ticket open until I get confirmation that it's a problem with the sshd lens).

@raphink
Copy link
Member

raphink commented Nov 20, 2017

Hello,

Could you please open this bug against https://github.com/hercules-team/augeasproviders_ssh/issues instead?

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

No branches or pull requests

2 participants