Coder Social home page Coder Social logo

gc-ansible-plugins's Introduction

gc-ansible-plugins

Plugins for Ansible


Lookup Plugins

aws_sg_id.py - I wanted to use Security Group names when defining groups to be applied to my instances / ELB. I created this lookup plugin to allow you to pass a list of Security Group names and in return you get a list of matching Security Group ID's.

Example:

"{{ lookup('aws_sg_id', [ security_groups, vpc_id, aws.access_key, aws.secret_key ]) }}"

security_groups should be a list e.g. security_groups: - 'ALL-DEFAULT' - 'ALL-DEFAULT-MONITOR'

vpc_id, access_key & secret_key should be str


aws_subnet_id.py - I wanted to use Subnet names when defining subnets to be applied to my instances / ELB. I created this lookup plugin to allow you to pass a list of Subnet names and in return you get a list of matching Subnet ID's.

"{{ lookup('aws_subnet_id', [ subnets, vpc_id, aws.access_key, aws.secret_key ]) }}"

subnets should be a list e.g. subnets: - 'WEB_A' - 'WEB_B'

vpc_id, access_key & secret_key should be str

gc-ansible-plugins's People

Contributors

gcoffey avatar

Watchers

James Cloos avatar  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.