From 2063cf2f6c73cbda3b427d809befecc9776d9931 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 28 Apr 2024 12:12:18 +0900 Subject: [PATCH] Update HashiCorp APT sources. --- cookbooks/consul/install.rb | 2 +- cookbooks/nomad/install.rb | 2 +- cookbooks/vault/install.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/consul/install.rb b/cookbooks/consul/install.rb index 244dcf2..303f5e4 100644 --- a/cookbooks/consul/install.rb +++ b/cookbooks/consul/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do diff --git a/cookbooks/nomad/install.rb b/cookbooks/nomad/install.rb index 86657b1..ad66f2e 100644 --- a/cookbooks/nomad/install.rb +++ b/cookbooks/nomad/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do diff --git a/cookbooks/vault/install.rb b/cookbooks/vault/install.rb index ec1e3f7..7210f67 100644 --- a/cookbooks/vault/install.rb +++ b/cookbooks/vault/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do