How do i exclude a specific node from a configuration line for ssh::server_options in my common.yaml file in hieradata. I would like to exclude IgnoreUserKnownHosts: 'yes' line from two of my nodes and apply it to the other 100 nodes.
ssh::server_options:
AuthorizedKeysCommand: '/usr/bin/sss_ssh_authorizedkeys'
AuthorizedKeysCommandUser: 'nobody'
AuthorizedKeysFile: '.ssh/authorized_keys'
ChallengeResponseAuthentication: 'no'
Ciphers: 'aes128-ctr,aes192-ctr,aes256-ctr'
ClientAliveCountMax: 0
ClientAliveInterval: 600
GSSAPIAuthentication: 'yes'
GSSAPICleanupCredentials: 'no'
KerberosAuthentication: 'yes'
PasswordAuthentication: 'no'
PermitEmptyPasswords: 'no'
PermitRootLogin: 'no'
PermitUserEnvironment: 'no'
PubkeyAuthentication: 'yes'
Protocol: 2
Banner: '/etc/issue'
IgnoreRhosts: 'yes'
HostbasedAuthentication: 'no'
IgnoreUserKnownHosts: 'yes'
↧