From a3385e2d5389a7df33eaa008ce58b1c9ff3e5222 Mon Sep 17 00:00:00 2001 From: subhash_chandra_budde Date: Fri, 17 Feb 2023 15:45:21 +0530 Subject: [PATCH 1/5] Temporariliy disabled the influxdb repo addition --- ansible/roles/influxdb/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml index 91a2df6a55..8918252b56 100644 --- a/ansible/roles/influxdb/tasks/main.yml +++ b/ansible/roles/influxdb/tasks/main.yml @@ -2,11 +2,11 @@ #- name: Set hostname #hostname: name={{ ansible_hostname }} -- name: Import InfluxDB GPG signing key - apt_key: url=https://repos.influxdata.com/influxdb.key state=present +#- name: Import InfluxDB GPG signing key +# apt_key: url=https://repos.influxdata.com/influxdb.key state=present -- name: Add InfluxDB repository - apt_repository: repo='deb https://repos.influxdata.com/ubuntu trusty stable' state=present +#- name: Add InfluxDB repository +# apt_repository: repo='deb https://repos.influxdata.com/ubuntu trusty stable' state=present - name: Install InfluxDB packages apt: name=influxdb state=present From a713b87f36ebb0a5df23c892dddc39cf76f52f87 Mon Sep 17 00:00:00 2001 From: subhash_chandra_budde Date: Fri, 17 Feb 2023 16:04:46 +0530 Subject: [PATCH 2/5] influx db cli fix --- ansible/roles/influxdb/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml index 8918252b56..83dc4b6e83 100644 --- a/ansible/roles/influxdb/tasks/main.yml +++ b/ansible/roles/influxdb/tasks/main.yml @@ -30,7 +30,7 @@ wait_for: port=8086 timeout=60 - name: Create monitoring_events database - command: /usr/bin/influx -execute "CREATE DATABASE {{ monitoring_db }}" + command: /usr/bin/influxd -execute "CREATE DATABASE {{ monitoring_db }}" - name: Check if influxdb_relay_deb_package_name is installed command: dpkg-query -W {{ influxdb_relay_deb_package_name }} From c3f68d8980f755505e5ea45eec1e0046ee43a3af Mon Sep 17 00:00:00 2001 From: subhash_chandra_budde Date: Fri, 17 Feb 2023 16:06:19 +0530 Subject: [PATCH 3/5] influx db cli fix --- ansible/roles/influxdb/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml index 83dc4b6e83..8918252b56 100644 --- a/ansible/roles/influxdb/tasks/main.yml +++ b/ansible/roles/influxdb/tasks/main.yml @@ -30,7 +30,7 @@ wait_for: port=8086 timeout=60 - name: Create monitoring_events database - command: /usr/bin/influxd -execute "CREATE DATABASE {{ monitoring_db }}" + command: /usr/bin/influx -execute "CREATE DATABASE {{ monitoring_db }}" - name: Check if influxdb_relay_deb_package_name is installed command: dpkg-query -W {{ influxdb_relay_deb_package_name }} From bdc62d2869a24909a88c637525d3dfdf721ea299 Mon Sep 17 00:00:00 2001 From: subhash_chandra_budde Date: Fri, 17 Feb 2023 16:15:55 +0530 Subject: [PATCH 4/5] influx db cli fix --- ansible/roles/influxdb/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml index 8918252b56..904f1d24db 100644 --- a/ansible/roles/influxdb/tasks/main.yml +++ b/ansible/roles/influxdb/tasks/main.yml @@ -12,6 +12,10 @@ apt: name=influxdb state=present notify: restart influxdb service +- name: Install InfluxDB client packages + apt: name=influxdb-client state=present + notify: restart influxdb service + - name: Replace InfluxDB cluster configuration template: dest: "/etc/influxdb/influxdb.conf" From 196004ac30744c5cf924f94296880cb8a5ebc195 Mon Sep 17 00:00:00 2001 From: subhash_chandra_budde Date: Sat, 18 Feb 2023 15:40:02 +0530 Subject: [PATCH 5/5] influx package key fix --- ansible/roles/influxdb/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml index 904f1d24db..b29b9c2d1d 100644 --- a/ansible/roles/influxdb/tasks/main.yml +++ b/ansible/roles/influxdb/tasks/main.yml @@ -2,11 +2,11 @@ #- name: Set hostname #hostname: name={{ ansible_hostname }} -#- name: Import InfluxDB GPG signing key -# apt_key: url=https://repos.influxdata.com/influxdb.key state=present +- name: Import InfluxDB GPG signing key + apt_key: url=https://repos.influxdata.com/influxdata-archive_compat.key state=present -#- name: Add InfluxDB repository -# apt_repository: repo='deb https://repos.influxdata.com/ubuntu trusty stable' state=present +- name: Add InfluxDB repository + apt_repository: repo='deb https://repos.influxdata.com/ubuntu trusty stable' state=present - name: Install InfluxDB packages apt: name=influxdb state=present