Skip to content

Commit

Permalink
Return use_ssl instance variable in get methods
Browse files Browse the repository at this point in the history
Prior to this commit, the state of the resources did not include the
use_ssl option.  This would cause them to default to using ssl because
this is the default from the shared library.
  • Loading branch information
m0dular committed Sep 28, 2022
1 parent 55910e2 commit 936511b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_auth/influxdb_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def get(_context)
{
name: value['description'],
ensure: 'present',
use_ssl: @use_ssl,
permissions: value['permissions'],
status: value['status'],
user: value['user'],
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_bucket/influxdb_bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def get(_context)
{
name: value['name'],
ensure: 'present',
use_ssl: @use_ssl,
org: name_from_id(@org_hash, value['orgID']),
retention_rules: value['retentionRules'],
members: bucket_members ? bucket_members.map { |member| member['name'] } : [],
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_dbrp/influxdb_dbrp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get(_context)
memo + [
{
ensure: 'present',
use_ssl: @use_ssl,
name: value['database'],
org: name_from_id(@org_hash, value['orgID']),
bucket: name_from_id(@bucket_hash, value['bucketID']),
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_label/influxdb_label.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get(_context)
response['labels'].map do |label|
{
name: label['name'],
use_ssl: @use_ssl,
ensure: 'present',
org: name_from_id(@org_hash, label['orgID']),
properties: label['properties'],
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_org/influxdb_org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get(_context)
memo + [
{
name: value['name'],
use_ssl: @use_ssl,
ensure: 'present',
members: org_members ? org_members.map { |member| member['name'] } : [],
description: value['description']
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_setup/influxdb_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def get(_context)
[
{
name: @host,
use_ssl: @use_ssl,
ensure: response['allowed'] == true ? 'absent' : 'present',
},
]
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/influxdb_user/influxdb_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get(_context)
memo + [
{
name: name,
use_ssl: @use_ssl,
ensure: 'present',
status: value['status'],
},
Expand Down

0 comments on commit 936511b

Please sign in to comment.