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

Conflicting sshd_config w/ condition does not result in failure #18

Open
jbcraig opened this issue Jun 23, 2015 · 0 comments
Open

Conflicting sshd_config w/ condition does not result in failure #18

jbcraig opened this issue Jun 23, 2015 · 0 comments
Labels
bug Something isn't working

Comments

@jbcraig
Copy link

jbcraig commented Jun 23, 2015

I would expect the following to result in a catalog failure as the same setting is set two different ways:

sshd_config { 'Host anotherhost.example.com PermitRootLogin':
  key => 'PermitRootLogin',
  ensure => present,
  condition => 'Host anotherhost.example.com',
  value => 'without-password',
}
sshd_config { 'Host rootallowed.example.com PermitRootLogin':
  key => 'PermitRootLogin',
  ensure => present,
  condition => 'Host anotherhost.example.com',
  value => 'yes',
}

but instead results in the value flip-flopping in the same run:

puppet apply ./sshd_test.pp
Notice: Compiled catalog for jc-sol11.example.com in environment production in 0.04 seconds
Notice: /Stage[main]/Main/Sshd_config[Host anotherhost.example.com PermitRootLogin]/value: value changed ['yes'] to 'without-password'
Notice: /Stage[main]/Main/Sshd_config[Host rootallowed.example.com PermitRootLogin]/value: value changed ['without-password'] to 'yes'
@raphink raphink added the bug Something isn't working label Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants