Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre Release #91

Merged
merged 12 commits into from
Jul 22, 2024
2 changes: 1 addition & 1 deletion .github/workflows/trigger-push-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Calculate next version
id: version
uses: patrickjahns/version-drafter-action@v1
uses: patrickjahns/version-drafter-action@v1.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/artifact_fetch_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ opsmill.infrahub.artifact_fetch module -- Fetch the content of an artifact from
.. Collection note
.. note::
This module is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.8).
This module is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.9).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/environment_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:orphan:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. _list_of_collection_env_vars:

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/index.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@


.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0


.. _plugins_in_opsmill.infrahub:

Opsmill.Infrahub
================

Collection version 1.0.8
Collection version 1.0.9

.. contents::
:local:
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/install_role.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. Anchors
Expand All @@ -21,7 +21,7 @@ opsmill.infrahub.install role -- Install Infrahub
.. Collection note
.. note::
This role is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.8).
This role is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.9).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down
27 changes: 21 additions & 6 deletions docs/plugins/inventory_inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ opsmill.infrahub.inventory inventory -- Infrahub inventory source (using GraphQL
.. Collection note
.. note::
This inventory plugin is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.8).
This inventory plugin is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.9).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down Expand Up @@ -390,6 +390,21 @@ Parameters

- INI entries:

.. code-block::
[default]
fact_caching_prefix = ansible_inventory_
Removed in: version 2.16 of ansible.builtin


Why: Fixes typing error in INI section name

Alternative: Use the 'defaults' section instead



.. code-block::
[defaults]
Expand Down Expand Up @@ -645,7 +660,7 @@ Parameters

The default value when the host variable's value is an empty string.

This option is mutually exclusive with \ :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].trailing\_separator`\ .
This option is mutually exclusive with \ :literal:`trailing\_separator`\ .


.. raw:: html
Expand Down Expand Up @@ -881,9 +896,9 @@ Parameters

<div class="ansible-option-indent-desc"></div><div class="ansible-option-cell">

Set this option to \ :ansval:`False`\ to omit the \ :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].separator`\ after the host variable when the value is an empty string.
Set this option to \ :emphasis:`False`\ to omit the \ :literal:`separator`\ after the host variable when the value is an empty string.

This option is mutually exclusive with \ :ansopt:`opsmill.infrahub.inventory#inventory:keyed\_groups[].default\_value`\ .
This option is mutually exclusive with \ :literal:`default\_value`\ .


.. rst-class:: ansible-option-line
Expand Down Expand Up @@ -1266,7 +1281,7 @@ Parameters

<div class="ansible-option-cell">

If \ :ansval:`yes`\ make invalid entries a fatal error, otherwise skip and continue.
If \ :literal:`yes`\ make invalid entries a fatal error, otherwise skip and continue.

Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/lookup_lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ opsmill.infrahub.lookup lookup -- Queries and returns elements from Infrahub (us
.. Collection note
.. note::
This lookup plugin is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.8).
This lookup plugin is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.9).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/query_graphql_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:trim:

.. meta::
:antsibull-docs: 2.11.0
:antsibull-docs: 2.12.0

.. Anchors
Expand All @@ -23,7 +23,7 @@ opsmill.infrahub.query_graphql module -- Queries and returns elements from Infra
.. Collection note
.. note::
This module is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.8).
This module is part of the `opsmill.infrahub collection <https://galaxy.ansible.com/ui/repo/published/opsmill/infrahub/>`_ (version 1.0.9).

It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
Expand Down
16 changes: 8 additions & 8 deletions plugins/module_utils/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

try:
from infrahub_sdk.exceptions import (
FilterNotFound,
FilterNotFoundError,
GraphQLError,
SchemaNotFound,
ServerNotReacheableError,
SchemaNotFoundError,
ServerNotReachableError,
ServerNotResponsiveError,
)
except ImportError as imp_exc:
Expand All @@ -36,12 +36,12 @@ def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except GraphQLError:
raise Exception("Database not Responsive")
except SchemaNotFound:
pass # until we are able to return Generics Schema and Core Schema https://github.com/opsmill/infrahub/issues/1217
except FilterNotFound:
raise Exception(f"An error occurred while executing the GraphQL Query {kwargs}")
except SchemaNotFoundError:
raise Exception(f"Unable to find the schema {kwargs}")
except FilterNotFoundError:
raise Exception(f"Filters not Found {kwargs}")
except ServerNotReacheableError:
except ServerNotReachableError:
raise Exception("Server not Reacheable")
except ServerNotResponsiveError:
raise Exception("Server not Responsive")
Expand Down
Loading
Loading