Resource Type: grafana_datasource
- Defined in:
- lib/puppet/type/grafana_datasource.rb
- Providers:
-
grafana
Overview
Manage datasources in Grafana
Properties
-
access_mode
Whether the datasource is accessed directly or not by the clients
Supported values:- direct
- proxy
-
basic_auth
Whether basic auth is enabled or not
Supported values:- true
- false
-
basic_auth_password
The password for basic auth if enabled
-
basic_auth_user
The username for basic auth if enabled
-
database
The name of the database (optional)
-
ensure
(defaults to: present)
The basic property that the resource should be in.
Supported values:- present
- absent
-
is_default
Whether the datasource is the default one
Supported values:- true
- false
-
json_data
Additional JSON data to configure the datasource (optional)
-
password
The password for the datasource (optional)
-
secure_json_data
Additional secure JSON data to configure the datasource (optional)
-
type
The datasource type
-
uid
An optional unique identifier for the datasource. Supported by grafana 7.3 onwards. If you do not specify this parameter, grafana will assign a uid for you
-
url
The URL/Endpoint of the datasource
-
user
The username for the datasource (optional)
-
with_credentials
Whether credentials such as cookies or auth headers should be sent with cross-site requests
Supported values:- true
- false
Parameters
-
grafana_api_path
(defaults to: /api)
The absolute path to the API endpoint
-
grafana_password
The password for the Grafana server
-
grafana_url
(defaults to: '')
The URL of the Grafana server
-
grafana_user
The username for the Grafana server
-
name (namevar)
The name of the datasource.
-
organization
(defaults to: 1)
The organization name to create the datasource on
-
provider
The specific backend to use for this ‘grafana_datasource` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.