```
diff --git a/cookbooks/vector/attributes.rb b/cookbooks/vector/attributes.rb
index c41aaf0..e48f7ef 100644
--- a/cookbooks/vector/attributes.rb
+++ b/cookbooks/vector/attributes.rb
@@ -16,7 +16,7 @@ ipaddr = run_command(cmd).stdout.chomp
node.reverse_merge!({
'vector' => {
- 'url' => 'https://github.com/timberio/vector/releases/download/',
+ 'url' => 'https://github.com/vectordotdev/vector/releases/download/',
'ipaddr' => ipaddr,
'debPrefix' => 'vector-',
'debPostfix' => '-amd64.deb'
```
```
diff --git a/cookbooks/vector/install.rb b/cookbooks/vector/install.rb
index 3def346..389ee76 100644
--- a/cookbooks/vector/install.rb
+++ b/cookbooks/vector/install.rb
@@ -8,7 +8,8 @@ vtag = ''
begin
require 'net/http'
- uri = URI.parse('https://github.com/timberio/vector/releases/latest')
+
+ uri = URI.parse('https://github.com/vectordotdev/vector/releases/latest')
Timeout.timeout(3) do
response = Net::HTTP.get_response(uri)
```
25 lines
831 B
Ruby
25 lines
831 B
Ruby
# -------------------------------------------
|
|
# Specifying the default settings:
|
|
# -------------------------------------------
|
|
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
|
when "20.04"
|
|
cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"'
|
|
|
|
when "18.04"
|
|
cmd = 'LANG=C /sbin/ifconfig | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f10'
|
|
|
|
else
|
|
cmd = 'LANG=C /sbin/ifconfig | grep "inet addr" | grep -v -E "(127|172)" | awk "{print $2;}" | cut -d: -f2 | cut -f 1 -d " " | tail -1'
|
|
end
|
|
|
|
ipaddr = run_command(cmd).stdout.chomp
|
|
|
|
node.reverse_merge!({
|
|
'vector' => {
|
|
'url' => 'https://github.com/vectordotdev/vector/releases/download/',
|
|
'ipaddr' => ipaddr,
|
|
'debPrefix' => 'vector-',
|
|
'debPostfix' => '-amd64.deb'
|
|
},
|
|
})
|