Giter Club home page Giter Club logo

esp.terraform's Introduction

esp.terraform Ansible Collection


This Terraform Ansible Collection provides an easy way to manage resources in Terraform Enterprise using Ansible.


Building collection

This section is intended for collection developers. If you only use the collection, check Installation section instead.

To build a collection, set version: x.y.z in your galaxy.yml file and run ansible-galaxy collection build from inside the root directory of the collection:

ansible-galaxy collection build --force --ignore-certs

Alternatively, run build_collection.sh script from tools directory:

./tools/build_collection.sh

This creates a tarball of the built collection in the current directory which can be used to install the collection, e.g.:

ansible-galaxy collection install esp-terraform-0.2.0.tar.gz --force --ignore-certs

Collection versions

Check the Frequently Asked Questions page.

Creating Git Tags with versions

You must create a git tag with new collection version and push this to Bitbucket. This way it will be possible to install required versions with ansible-galaxy command.

git tag -a 0.2.0 -m "version 0.2.0"
git push -u origin 0.2.0

Installation

Preferred installation method is installing a collection from a git repository.

Create requirements.yml file and provide required version of the collection(s), e.g.:

collections:
  - name: https://bitbucket.example.com/scm/PROJECT/esp.terraform.git
    type: git
    version: 0.2.0   

Next, run ansible-galaxy command with requirements.yml file as argument:

ansible-galaxy collection install -r requirements.yml --force --ignore-certs

Alternatively, you may provide a repository URL in ansible-galaxy command:

# Install a collection from a repository using version 0.2.0
ansible-galaxy collection install git+https://bitbucket.example.com/scm/PROJECT/esp.terraform.git,0.2.0 --force --ignore-certs

# Install a collection from a repository using the latest commit on the branch 'master'
ansible-galaxy collection install git+https://bitbucket.example.com/scm/PROJECT/esp.terraform.git --force --ignore-certs

For more info about installation and troubleshooting check the Frequently Asked Questions page


Samples

The project includes a catalog of ESP Ansible module samples that illustrate using the modules and roles to carry out common tasks.

The samples are organized in groups under the samples directory. Begin by reviewing the Readme.md file that you will find in each sample's root directory.


Documentation

To view the module documentation, use this command:

ansible-doc esp.terraform.[module_name]

Ansible Tower and AWX

esp.terraform Ansible Collection supports Ansible Tower and AWX.

Simply add a reference to the collection in your ${PROJECT_NAME}/collections/requirements.yml file explicitly providing required version, e.g.:

collections:
  - name: https://bitbucket.example.com/scm/PROJECT/esp.terraform.git
    type: git
    version: 0.2.0

AWX automatically installs dependencies from the requirements.yml file. You don't need to take any action on AWX.

Note: you need ansible >= 2.10 on AWX to properly install ansible collections from requirements.yml file. Please select appriopriate custom virtual env in either project or job template definition.


Help


Changes

See CHANGELOG.


License

GPLv3 - GNU General Public License v3.0


Authors

esp.terraform's People

Stargazers

Marc Carran avatar  avatar

Watchers

Niels Bo avatar Henrik Kier avatar Paweł Smolarz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.