wmudge / cloudera.cloud

cloudera.cloud - an Ansible collection for Cloudera Data Platform (CDP) for Public and Private Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloudera.cloud - Cloudera Data Platform (CDP) for Public and Private Cloud

Readme last updated: 2022-01-31

Quickstart

  1. Install the collection
  2. Install the requirements
  3. Use the collection

API

See the API documentation for details for each module within the collection.

Installation

To install the cloudera.cloud collection, you have several options. Please note that to date, we have not yet published this collection to the public Galaxy server, so you cannot install it via direct namespace, rather you must specify a Git project and (optionally) branch.

Option #1: Install from GitHub

Create or edit the collections/requirements.yml file in your project with the following:

collections:
  - name: https://github.com/cloudera-labs/cloudera.cloud.git
    type: git
    version: main

And then run in your project:

ansible-galaxy collection install -r collections/requirements.yml

Option #2: Install the tarball

Periodically, the collection is packaged into a distribution which you can install directly:

ansible-galaxy collection install <collection-tarball> -p collections/

Requirements

cloudera.cloud expects Ansible Base/Core 2.10.0 or higher.

The collection also requires the following Python libraries install to operate its modules:

cdpy      # Located on Cloudera Labs

The requirements.txt file declares these libraries. You can install them via pip:

pip install -r requirements.txt

Using the Collection

Once installed, reference the collection in your playbooks and roles.

For example, here we use the cloudera.cloud.env_info module to list all available CDP environments:

---

- hosts: localhost
  connection: local
  gather_facts: no

  collections:
    - cloudera.cloud

  tasks:
    - name: List all CDP environments
      env_info:
      register: output

    - name: Display the resulting JSON
      debug:
        var: output

NOTE: The CDP modules expect standard CDP authentication configurations, e.g. CDP_PROFILE, as described by the Configuring section of CDP CLI/SDK.

Available Modules

See the README in the plugins directory.

Building the Collection

To create a local collection tarball, run:

ansible-galaxy collection build 

For the site documentation, please see the BUILDING DOCS instructions.

Getting Involved

Contribution instructions are coming soon!

License and Copyright

Copyright 2021, Cloudera, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

cloudera.cloud - an Ansible collection for Cloudera Data Platform (CDP) for Public and Private Cloud

License:Apache License 2.0


Languages

Language:Python 98.7%Language:HCL 1.0%Language:Shell 0.2%Language:CSS 0.1%