Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

# Copyright 2024 Cloudera, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

---

namespace: cloudera
name: cloud
version: 2.5.1
Expand All @@ -25,14 +25,11 @@ authors:

description: >
A set of modules and other artifacts for interacting with the services and endpoints
provided by the Cloudera Data Platform (CDP) for Public and Private Cloud.
provided by the Cloudera on cloud and on premises platforms.
license_file: LICENSE
tags:
- cloudera
- cdp
- azure
- aws
- gcp
- data_service
- data_hub

Expand All @@ -52,3 +49,5 @@ build_ignore:
- tests
- pytest.ini
- builder

...
1 change: 0 additions & 1 deletion plugins/doc_fragments/cdp_auth_options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand Down
1 change: 0 additions & 1 deletion plugins/doc_fragments/cdp_sdk_options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datahub_definition.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datahub_instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datahub_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datahub_template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datalake_instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datalake_runtime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/datalake_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/env_freeipa_domain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/env_freeipa_hosts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
1 change: 0 additions & 1 deletion plugins/module_utils/cdp_common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand Down
1 change: 0 additions & 1 deletion plugins/module_utils/cdp_service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc.
Expand Down
16 changes: 4 additions & 12 deletions plugins/modules/account_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,17 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = """
---
module: account_auth
short_description: Gather and set authentication details for a CDP Account
description:
Expand Down Expand Up @@ -75,7 +65,6 @@
"""

RETURN = """
---
account:
description: Returns the authentication settings for the CDP Account
returned: always
Expand Down Expand Up @@ -105,6 +94,9 @@
elements: str
"""

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class AccountAuthentication(CdpModule):
def __init__(self, module):
Expand Down
16 changes: 4 additions & 12 deletions plugins/modules/account_auth_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,17 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = r"""
---
module: account_auth_info
short_description: Gather information about CDP Account authentication settings
description:
Expand Down Expand Up @@ -58,7 +48,6 @@
"""

RETURN = r"""
---
account:
description: Returns the authentication settings for the CDP Account
returned: always
Expand Down Expand Up @@ -88,6 +77,9 @@
elements: str
"""

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class AccountAuthenticationInfo(CdpModule):
def __init__(self, module):
Expand Down
15 changes: 4 additions & 11 deletions plugins/modules/account_cred_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,17 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = """
---
module: account_cred_info
short_description: Gather information about Account prerequisites for CDP Credentials
description:
Expand Down Expand Up @@ -89,6 +79,9 @@
elements: str
"""

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class AccountCredentialInfo(CdpModule):
def __init__(self, module):
Expand Down
22 changes: 7 additions & 15 deletions plugins/modules/datahub_cluster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,20 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import json

import jmespath
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = r"""
---
module: datahub_cluster
short_description: Manage CDP Datahubs
description:
Expand Down Expand Up @@ -288,7 +275,6 @@
"""

RETURN = r"""
---
datahub:
description: The information about the Datahub
type: dict
Expand Down Expand Up @@ -554,6 +540,12 @@
elements: str
"""

import json

import jmespath
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class DatahubCluster(CdpModule):
def __init__(self, module):
Expand Down
16 changes: 4 additions & 12 deletions plugins/modules/datahub_cluster_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,17 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = r"""
---
module: datahub_cluster_info
short_description: Gather information about CDP Datahubs
description:
Expand Down Expand Up @@ -72,7 +62,6 @@
"""

RETURN = r"""
---
datahubs:
description: The information about the named Datahub or Datahubs
type: list
Expand Down Expand Up @@ -339,6 +328,9 @@
elements: str
"""

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class DatahubClusterInfo(CdpModule):
def __init__(self, module):
Expand Down
20 changes: 6 additions & 14 deletions plugins/modules/datahub_cluster_recipe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright 2023 Cloudera, Inc. All Rights Reserved.
Expand All @@ -15,19 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common.dict_transformations import camel_dict_to_snake_dict

from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule

ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}

DOCUMENTATION = r"""
---
module: datahub_cluster_recipe
short_description: Manage CDP Datahub recipes on an instance group
description:
Expand Down Expand Up @@ -91,7 +79,6 @@
"""

RETURN = r"""
---
instance_group:
description: The recipe state for the CDP Datahub instance group.
type: dict
Expand Down Expand Up @@ -126,6 +113,11 @@
elements: str
"""

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common.dict_transformations import camel_dict_to_snake_dict

from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule


class DatahubClusterRecipe(CdpModule):
def __init__(self, module):
Expand Down
Loading
Loading