Readme last updated: 2021-05-25
See the API documentation for details for each module within the collection.
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.
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
Periodically, the collection is packaged into a distribution which you can install directly:
ansible-galaxy collection install <collection-tarball> -p collections/
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
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.
See the README in the plugins
directory.
To create a local collection tarball, run:
ansible-galaxy collection build
For the site documentation, please see the BUILDING DOCS instructions.
Contribution instructions are coming soon!
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.