GithubHelp home page GithubHelp logo

aaronmcohen / ansible-role-dw-bdd-python-example Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 8 KB

Sample code for "A Behavior Driven Developer's guide to Infrastructure as Code"

License: MIT License

Makefile 10.08% Gherkin 34.37% Python 55.55%

ansible-role-dw-bdd-python-example's Introduction

ansible-role-dw-bdd-python-example

Sample code for "A Behavior Driven Developer's guide to Infrastructure as Code"

Prerequisites

The following software needs to be installed on your local machine to be successful.

Special consideration

If you are running the Anaconda Python this may not work. Please point to the python distribution that came with your OS. This can be done by replacing "-p python2" with "--python=/usr/bin/python2.7" in the Makefile.

On the Mac you may need to install sshpass. This can be installed via Brew. Without this package you cannot pass a password from an inventory file and will need to leverage "--ask-pass".

Getting Started

These instructions will help you run the sample code on your local machine for educational purposes.

Using make

To ease use I have provided a Makefile to setup, run test, and clean-up. Simply run "make" in the project directory to start the process.

Manual steps

virtualenv -p python2 --clear venv
source ./venv/bin/activate
  • Install project pre-requisites
pip install -r ./requirements.txt; \
molecule test

When you are ready to leave the virtual environment run "deactivate"

License

This project is licensed under the MIT License - see the LICENSE.md file for details

ansible-role-dw-bdd-python-example's People

Contributors

aaronmcohen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-role-dw-bdd-python-example's Issues

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.