Created
April 20, 2023 19:26
-
-
Save murrahjm/2e3a0af2b7ac6e97262bf28708434c4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Influx DB | |
description: credential object for connecting to InfluxDB databases | |
inputs: | |
fields: | |
- id: influxdb_user | |
type: string | |
label: account username | |
- id: influxdb_pass | |
type: string | |
secret: true | |
label: account password | |
- id: influxdb_host | |
type: string | |
label: hostname of Influx server or instance | |
- id: influxdb_port | |
type: string | |
label: "TCP port for Influx connections (default: 8086)" | |
- id: influxdb_db | |
type: string | |
label: "database name" | |
required: | |
- influxdb_user | |
- influxdb_pass | |
- influxdb_host | |
injectors: | |
env: | |
INFLUXDB_USER: !unsafe "{{ influxdb_user }}" | |
INFLUXDB_PASSWORD: !unsafe "{{ influxdb_pass }}" | |
INFLUXDB_HOST: !unsafe "{{ influxdb_host }}" | |
INFLUXDB_PORT: !unsafe "{{ influxdb_port | default('8086') }}" | |
INFLUXDB_DB: !unsafe "{{ influxdb_db }}" | |
- name: REST API | |
description: credential for generic REST API, with api key and secret pair or username / password pair | |
inputs: | |
fields: | |
- id: api_key | |
type: string | |
label: api key or username for rest api authentication | |
- id: api_secret | |
type: string | |
secret: true | |
label: api secret or password or other sensitive data for rest api authentication | |
- id: url_base | |
type: string | |
label: the common base URL for api access, i.e. https://server.domain.com/api/v1 | |
injectors: | |
extra_vars: | |
api_key: !unsafe "{{ api_key }}" | |
api_secret: !unsafe "{{ api_secret }}" | |
url_base: !unsafe "{{ url_base }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment