Install `cloudflared`.
This commit is contained in:
parent
d9546cf4fc
commit
8d8a6affbd
|
@ -0,0 +1,19 @@
|
|||
URL='https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64'
|
||||
BINARY='/usr/local/bin/cloudflared'
|
||||
|
||||
[
|
||||
"wget #{URL} -O #{BINARY}",
|
||||
].each do |cmd|
|
||||
execute cmd do
|
||||
user 'root'
|
||||
cwd '/tmp/itamae_tmp/'
|
||||
|
||||
not_if "test -e #{BINARY}"
|
||||
end
|
||||
end
|
||||
|
||||
file "#{BINARY}" do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '755'
|
||||
end
|
|
@ -66,6 +66,9 @@ include_recipe './lsyncd.rb'
|
|||
# Install starship command:
|
||||
include_recipe './starship.rb'
|
||||
|
||||
# Install cloudflared command:
|
||||
include_recipe './cloudflared.rb'
|
||||
|
||||
# recipes for Ubuntu 20.04 and later
|
||||
case node['platform_version']
|
||||
when "20.04", "22.04"
|
||||
|
|
Loading…
Reference in New Issue