Git Product home page Git Product logo

ansible-role-fedora-ec2's Introduction

Ansible Role - Fedora EC2 instance

Provisions Fedora 26 on AWS EC2. It ensures that:

  • Fedora 26 AWS EC2 node is provisioned and started
  • public SSH key is uploaded and assigned to provisioned EC2 node
  • EC2 security group firewall has been configured to accept only SSH traffic
  • OpenSSH server is up and running
  • Ansible-friendly version of Python is installed on provisioned instance

Compatibility

This playbook has been tested against Fedora 26.

Requirements

Keep in mind that Ansible EC2 module requires you to have Boto installed:

sudo pip install -U boto

You can specify AWS credentials either in Boto file (for example ~/.boto) or using environment variables:

AWS_ACCESS_KEY_ID='yourKeyId' AWS_SECRET_ACCESS_KEY='yourSecretKey' ansible-playbook aws.yml

Installation

ansible-galaxy install hekonsek.fedora-ec2,0.6

Role variables

  • instance_region - AWS region to use. Default region is eu-central-1.
  • instance_name - name tag for created instance. Default value is defaultServer.
  • instance_type - instance type. Default value is t2.medium.
  • instance_ssd - use ssd?. Default value is true.
  • keyName - name that should be assigned to the uploaded SSH public key. Default value is defaultKey.
  • group - name of the security group to create and use. Default value is default.
  • volume_size - volume size in GB. Default value is 8.

Example playbook

- hosts: localhost
  connection: local
  gather_facts: false
  roles:
    - { role: hekonsek.fedora-ec2,0.6 }

License

Apache 2.0

ansible-role-fedora-ec2's People

Contributors

ajurasz avatar hekonsek avatar

Watchers

 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.