Skip to content

Commit

Permalink
Add github-runner user
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific authored Nov 24, 2024
1 parent abebc0a commit 2ee4a8c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cookbooks/boxcutter_builder/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,27 @@
# },
# }
end

if node.aws?
aws_arm64_github_self_hosted_runner_list = [
'ip-10-0-1-143', # arm64 builder
]

if aws_arm64_github_self_hosted_runner_list.include?(node['hostname'])
include_recipe 'boxcutter_github::runner_user'
node.default['fb_users']['groups']['docker']['members'] << 'github-runner'
node.default['fb_ssh']['authorized_keys_users'] << 'github-runner'

directory '/home/github-runner/.ssh' do
owner 'github-runner'
group 'github-runner'
mode '0700'
end

ssh_known_hosts_entry 'github.com' do
file_location '/home/github-runner/.ssh/known_hosts'
owner 'github-runner'
group 'github-runner'
end
end
end

0 comments on commit 2ee4a8c

Please sign in to comment.