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

sshd_config_subsystem does not allow for manging the same subsystem name in multiple targets #50

Open
skylar2-uw opened this issue Oct 24, 2019 · 2 comments

Comments

@skylar2-uw
Copy link

skylar2-uw commented Oct 24, 2019

Hi,

It seems that sshd_config_subsystem does not allow one to manage the parameter as a resource in multiple files. For instance, this gives a duplicate resource error:

sshd_config_subsystem { "sftp":
   target => '/etc/ssh/sshd_config',
   command => '/bin/false',
}

sshd_config_subsystem { "sftp":
   target => '/etc/ssh/sshd_config_chroot',
   command => 'internal-sftp',
}

This isn't really show-stopper for us since I think by the time we need it, we'll have our SFTP service migrated to a newer version of OpenSSH where we can have get the access control that we need in a single SSH service, but I was testing an implementation with CentOS 6 and thought I would pass along the problem.

Thanks!

Skylar

@raphink
Copy link
Member

raphink commented Oct 25, 2019

That's correct. The types in this module don't have support for composite namevars at the moment. It shouldn't be too hard to add though, and I'd welcome a PR adding title_patterns to these types. Example at https://github.com/hercules-team/augeasproviders_postgresql/blob/master/lib/puppet/type/pg_hba.rb#L87-L132

@skylar2-uw
Copy link
Author

Cool, thanks for confirming that I was on the right track. I don't know that I have the Puppet experience to add that functionality now, but I'll definitely have it as a goal at some point.

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