-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
AllowGroups does not work with condition. #29
Comments
I should mention that AllowGroups works fine if condition is not specified placing the directive in the global config, but i need it inside a Match conditon. The same is true for the following directives: sshd_config { "ChrootDirectory":
ensure => present,
condition => 'LocalPort 2022',
value => '/var/sftp/users/%u',
}
sshd_config { "ForceCommand":
ensure => present,
condition => 'LocalPort 2022',
value => 'internal-sftp -d /files',
} |
Which version of Augeas are you using? |
Augeasproviders_core is 2.1.1 |
@bogdan-radocea ok, and what is the version of the Augeas library? |
How can I check? :) |
@bogdan-radocea are you using the Puppet AIO packages or your OS packages? |
Puppet AIO, installed with: puppet module install |
@bogdan-radocea can you post the content of the sshd_config file that fail? |
This is what we want to do: |
Right, but what does the file contain before applying? |
standard ubuntu fresh install. so default ubuntu settings:
|
I just ran @mvintila's original example on @bogdan-radocea's file without a problem with augeas 1.10.1, ruby-augeas 0.5 and Puppet 5.5.6, 4.10.12 and 6.0.2. @bogdan-radocea @mvintila can you provide info on a configuration that fails? |
This doesn't work:
The error is:
If i enable debug logging it looks like this:
The text was updated successfully, but these errors were encountered: