From 5f48cf2271223e16872373ee2ebf94ec4bb01ebb Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Tue, 23 Aug 2022 12:30:35 +0530 Subject: [PATCH] Update documenation --- CHANGELOG.rst | 8 ++++++++ changelogs/.plugin-cache.yaml | 2 +- changelogs/changelog.yaml | 2 ++ plugins/modules/cloud_stack.py | 10 ++++++---- plugins/modules/dashboard.py | 4 ++-- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a211059..3e972a6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,14 @@ Grafana.Grafana Release Notes .. contents:: Topics +v1.0.1 +====== + +Minor Changes +------------- + +- Documentation updates + v1.0.0 ====== diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 7468433..9b24ffd 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -54,4 +54,4 @@ plugins: shell: {} strategy: {} vars: {} -version: 1.0.0 +version: 1.0.1 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 44c10e1..69a667a 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -4,3 +4,5 @@ releases: release_date: '2022-08-11' 1.0.0: release_date: '2022-08-16' + 1.0.1: + release_date: '2022-08-23' diff --git a/plugins/modules/cloud_stack.py b/plugins/modules/cloud_stack.py index a9ed0a3..5361f3f 100644 --- a/plugins/modules/cloud_stack.py +++ b/plugins/modules/cloud_stack.py @@ -58,18 +58,20 @@ options: EXAMPLES = ''' - name: Create a Grafana Cloud stack grafana.grafana.cloud_stack: - name: company_name - slug: company_name + name: stack_name + stack_slug: stack_name cloud_api_key: "{{ grafana_cloud_api_key }}" region: eu url: https://grafana.company_name.com + org_slug: org_name state: present - name: Delete a Grafana Cloud stack grafana.grafana.cloud_stack: - name: company_name - slug: company_name + name: stack_name + slug: stack_name cloud_api_key: "{{ grafana_cloud_api_key }}" + org_slug: org_name state: absent ''' diff --git a/plugins/modules/dashboard.py b/plugins/modules/dashboard.py index 37e5b3d..e81c4fd 100644 --- a/plugins/modules/dashboard.py +++ b/plugins/modules/dashboard.py @@ -43,14 +43,14 @@ options: EXAMPLES = ''' - name: Create/Update a dashboard grafana.grafana.dashboard: - datasource: "{{ lookup('ansible.builtin.file', 'dashboard.json') }}" + dashboard: "{{ lookup('ansible.builtin.file', 'dashboard.json') }}" stack_slug: "{{ stack_slug }}" grafana_api_key: "{{ grafana_api_key }}" state: present - name: Delete dashboard grafana.grafana.dashboard: - datasource: "{{ lookup('ansible.builtin.file', 'dashboard.json') }}" + dashboard: "{{ lookup('ansible.builtin.file', 'dashboard.json') }}" stack_slug: "{{ stack_slug }}" grafana_api_key: "{{ grafana_api_key }}" state: absent