voxpupuli / puppet-augeasproviders

Alternative Augeas-based providers for Puppet
http://augeasproviders.com/
Apache License 2.0
63 stars 46 forks source link

spaces in group names breaks augeasproviders_ssh #149

Open davealden opened 7 years ago

davealden commented 7 years ago

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 commented 6 years ago

Hello,

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