From 4c041fa36d431c202dc251e528fab08e17e7fd78 Mon Sep 17 00:00:00 2001 From: Steven Rombauts Date: Fri, 24 Jan 2020 10:57:35 +0100 Subject: [PATCH] #158: Disable StrictHostKeyChecking for localhost We want to make sure the Wetty terminal can login automatically on the first run. --- puppet/environments/box/modules/profiles/manifests/wetty.pp | 6 ++++++ tests/spec/default/misc.rb | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/puppet/environments/box/modules/profiles/manifests/wetty.pp b/puppet/environments/box/modules/profiles/manifests/wetty.pp index 2ffb684..87c9f31 100644 --- a/puppet/environments/box/modules/profiles/manifests/wetty.pp +++ b/puppet/environments/box/modules/profiles/manifests/wetty.pp @@ -30,4 +30,10 @@ require => Ssh_keygen['vagrant'] } + file { '/home/vagrant/.ssh/config': + content => "Host localhost\n\tStrictHostKeyChecking no\n", + owner => vagrant, + group => vagrant + } + } \ No newline at end of file diff --git a/tests/spec/default/misc.rb b/tests/spec/default/misc.rb index d330ab4..799389b 100644 --- a/tests/spec/default/misc.rb +++ b/tests/spec/default/misc.rb @@ -40,6 +40,10 @@ describe file('/etc/apache2/joomla.box-include.conf') do its(:content) { should match /Redirect permanent \/terminal http:\/\/joomla.box\/wetty/ } end + + describe file('/home/vagrant/.ssh/config') do + its(:content) { should match /StrictHostKeyChecking no/ } + end end describe '### PimpMyLog' do