itamae/cookbooks/digdag/attributes.rb

20 lines
656 B
Ruby
Raw Permalink Normal View History

2019-03-03 08:50:49 +00:00
# -------------------------------------------
# Specifying the default settings:
# -------------------------------------------
cmd = 'LANG=C /sbin/ifconfig | grep "inet addr" | grep -v 127.0.0.1 | awk "{print $2;}" | cut -d: -f2 | cut -f 1 -d " " | tail -1'
ipaddr = run_command(cmd).stdout.chomp
node.reverse_merge!({
'digdag' => {
'binary_url' => 'https://dl.digdag.io/digdag-latest',
'install_path' => '/opt/digdag'
2020-11-14 03:51:53 +00:00
},
'rclone' => {
'url' => 'https://github.com/rclone/rclone/releases/download/',
'prefix' => 'rclone-',
'postfix' => '-linux-amd64',
'storage' => '/opt/rclone/',
'location' => '/usr/local/bin/'
},
2019-03-03 08:50:49 +00:00
})