Skip to content

Commit

Permalink
Install tailscale on amd64 builder
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Dec 22, 2024
1 parent d1c55c8 commit 24c00ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/boxcutter_builder/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
depends 'boxcutter_github'
depends 'boxcutter_ubuntu_desktop'
depends 'boxcutter_nvidia'
depends 'boxcutter_tailscale'
15 changes: 15 additions & 0 deletions cookbooks/boxcutter_builder/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,21 @@
]

if aws_amd64_github_self_host_runner_list.include?(node['hostname'])
# op item get 'tailscale oauth automation-sandbox-write-blue' --vault Automation-Sandbox
# op item get v5zvz2gomyzhgow46esj7txneu --format json
tailscale_oauth_client_id_write_blue = Polymath::OnePassword.op_read('op://Automation-Sandbox/tailscale oauth write blue/username')
tailscale_oauth_client_secret_write_blue = Polymath::OnePassword.op_read('op://Automation-Sandbox/tailscale oauth write blue/credential')
node.run_state['boxcutter_tailscale'] ||= {}
node.run_state['boxcutter_tailscale']['oauth_client_id'] = tailscale_oauth_client_id_write_blue
node.run_state['boxcutter_tailscale']['oauth_client_secret'] = tailscale_oauth_client_secret_write_blue
node.default['boxcutter_tailscale']['enable'] = true
node.default['boxcutter_tailscale']['ephemeral'] = false
node.default['boxcutter_tailscale']['use_tailscale_dns'] = false
node.default['boxcutter_tailscale']['shields_up'] = false
node.default['boxcutter_tailscale']['hostname'] = 'aws-boxcutter-amd64-github-runner'
node.default['boxcutter_tailscale']['tags'] = ['chef']
include_recipe 'boxcutter_tailscale::default'

include_recipe 'boxcutter_users::default'
include_recipe 'boxcutter_docker::default'

Expand Down

0 comments on commit 24c00ab

Please sign in to comment.