Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions recipes/repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

package 'openssh-server'

service 'ssh' do
action [:start, :enable]
end

host_keys = data_bag_item('ros_buildfarm_host_keys', 'repo')[node.chef_environment]
%w(dsa ecdsa ed25519 rsa).each do |type|
file "/etc/ssh/ssh_host_#{type}_key" do
Expand All @@ -15,8 +19,11 @@
content host_keys[type]['public']
mode '0644'
end

notifies :restart, 'service[ssh]'
end


# Update attributes to get a "building repository" agent instead of a generic
# "buildagent".
node.default['ros_buildfarm']['agent']['nodename'] = 'building_repository'
Expand Down
Loading