mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-05-10 12:21:04 +02:00
Merge dc2440de8adce24d73c0f53d24335fd4bc300fab into 0772de83c00472f9b49d10cdf8d22f0891a51e36
This commit is contained in:
commit
a3c0a56a79
@ -10,9 +10,9 @@ root_group =
|
|||||||
end
|
end
|
||||||
|
|
||||||
github_known_host = 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGm[...]'
|
github_known_host = 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGm[...]'
|
||||||
gitlab_known_host_re = /gitlab.com,[0-9a-f.:,]* ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABA/
|
gitlab_known_host_re = /gitlab.com[0-9a-f.:,]* ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABA/
|
||||||
minion_rsa_known_host = 'minion.id,alias.of.minion.id ssh-rsa [...]'
|
minion_rsa_known_host = /minion\.id,alias\.of\.minion.id[0-9a-f.:,]* ssh-rsa .+/
|
||||||
minion_ed25519_known_host = 'minion.id,alias.of.minion.id ssh-ed25519 [...]'
|
minion_ed25519_known_host = /minion\.id,alias\.of\.minion\.id[0-9a-f.:,]* ssh-ed25519 .+/
|
||||||
|
|
||||||
control 'openssh configuration' do
|
control 'openssh configuration' do
|
||||||
title 'should match desired lines'
|
title 'should match desired lines'
|
||||||
@ -50,7 +50,7 @@ control 'openssh configuration' do
|
|||||||
it { should be_grouped_into root_group }
|
it { should be_grouped_into root_group }
|
||||||
its('content') { should include github_known_host }
|
its('content') { should include github_known_host }
|
||||||
its('content') { should match(gitlab_known_host_re) }
|
its('content') { should match(gitlab_known_host_re) }
|
||||||
its('content') { should include minion_rsa_known_host }
|
its('content') { should match minion_rsa_known_host }
|
||||||
its('content') { should include minion_ed25519_known_host }
|
its('content') { should match minion_ed25519_known_host }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user