Giter Club home page Giter Club logo

ansible-bootstrap's Introduction

ansible-bootstrap

Make servers Ansible-ready

First 5 Minutes on a Server (with Ansible)

Before you can use Ansible (or any other automated config management tool) on a new server you'll need to perform some basic configuration.

To get some idea of what I'm talking about, search for First 5 Minutes on a Server with Ansible for some background.

The idea is that you can use this repo as part of your Vagrant spin up. Or standalone where this repo gets copied onto a remote server.

Goals

  • Your configuration management is performed centrally by an Ansible control server.
  • Set up a new remote server so that an Ansible control server can easily manage it.
  • Make the bootstrap process Vagrant-friendly.

Set up

It should be no surprise that Ansible is used here. Ansible playbooks perform the lion's share of the bootstrap process. How you plan on using Ansible AFTER the bootstrap will determine which bootstrap playbooks you'll need to configure.

remote.yml

You should always need to configure this playbook. At a minimum you'll want to change the deployment user's password. Most of the other user configuration options are related to how you plan on using ssh keys.

If you're not using a control server to perform centralized management, you'll probably need to install Ansible on your remote servers. This means you'll need to include the Ansible role in this playbook.

control.yml

This playbook is only required if you're using a control server for centralized management. If you are using a control server then this playbook is the yang to remote.yml's ying.

ssh.yml

This playbook is only required if you're using a control server and you want totally hands-free automation. The use case that comes to mind is when you're using Vagrant in a continuous integration environment.

This playbook simply logs onto each remote server. And if you're going to use this playbook you'll need to update it with the address information for every remote server from your inventory file(s).

bootstrap.sh

Once you have your Ansible playbooks configured, this is the script you'll excecute to make things happen.

Currently there are four options that can be set with this script:

--ansible-repo=https://github.com/ansible/ansible.git
--server-type=control OR remote
--verbose
--vagrant-env

ansible-bootstrap's People

Contributors

pinterb avatar

Stargazers

 avatar  avatar  avatar

Watchers

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