Git Product home page Git Product logo

spot-ansible-cloud-modules's Introduction

Spot Cloud Modules Collection

The Spot Cloud Modules Ansible collection includes Ansible modules to help automate the management of Spot resources.

Note: If you are migrating to this collection from the module in community.general or the previous Github repo, please read the migration guide below.

Ansible version compatibility

This collection has been tested against following Ansible versions: >=2.9.10.

Python version compatibility

Version 2 of Spot's Python SDK does not support Python 2.7 so this collection requires Python 3.6 or greater.

Spot Python SDK compatibility

Version 1.0.0 of this collection requires at least version 2.1.15 of Spot's Python SDK.

Included content

Modules

Name Description
spot.cloud_modules.aws_elastigroup Manage Spot Elastigroups
spot.cloud_modules.aws_managed_instance Manage Spot Managed Instances
spot.cloud_modules.aws_ocean_k8s Manage Spot Ocean Kubernetes Clusters
spot.cloud_modules.aws_mrscaler Manage Spot MR Scalers
spot.cloud_modules.event_subscription Manage Spot Event Subscriptions

Installing this collection

You can install the Spot collection with the Ansible Galaxy CLI:

ansible-galaxy collection install spot.cloud_modules

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: spot.cloud_modules

The python module dependencies are not installed by ansible-galaxy. They can be manually installed using pip and from the collection project's root, running:

pip install requirements.txt

or:

pip install spotinst_sdk2>=2.1.15

Using this collection

You can either call modules by their Fully Qualified Collection Namespace (FQCN), such as spot.cloud_modules.aws_elastigroup, or you can call modules by their short name if you list the spot.cloud_modules collection in the playbook's collections keyword:

---
# FQCN 
  tasks:
    - name: Manage Elastigroup
      spot.cloud_modules.aws_elastigroup:
---
# collections keyword
 collections:
    - spot.cloud_modules
  
  tasks:
    - name: Manage Elastigroup
      aws_elastigroup:

Migrating from Spot's previous modules

This section does not apply to you if you are upgrading from a previous version of this collection.

If you are migrating either from community.general or from previously having our spotinst_aws_elastigroup installed manually, please take note of the following breaking changes:

Migrating from community.general

  • Python >=3.6 required.
  • spotinst_sdk2 (v2) required (community.general.spotinst_aws_elastigroup required spotinst_sdk (v1)).
  • The module community.general.spotinst_aws_elastigroup was renamed to spot.cloud_modules.aws_elastigroup in this collection.

Migrating from manual installation

  • Python >=3.6 required.
  • spotinst_sdk2 (v2) required (your version may have required spotinst_sdk (v1)).
  • All references to modules should be changed to spot.cloud_modules.module_name, according to the module names in the modules section.
    • Note: all modules have been renamed.

Contributing

Contributions to this collection are welcome.

Code of conduct

Please be sure to read our Code of Conduct.

spot-ansible-cloud-modules's People

Contributors

shxkm 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.