GithubHelp home page GithubHelp logo

isabella232 / puppetlabs-autope Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/puppetlabs-pecdm

0.0 0.0 0.0 86 KB

Puppet Bolt driven fusion of puppetlabs/peadm and Terraform.

Ruby 44.52% Puppet 55.48%

puppetlabs-autope's Introduction

autope

Automatic PE, a Bolt driven fusion of puppetlabs/peadm and Terraform.

Table of Contents

  1. Description
  2. Setup - The basics of getting started with autope
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

This Bolt project demonstrates how you can link together automation tools to take advantage of their strengths, e.g. Terraform for infrastructure deployment and Puppet for infrastructure configuration. We take puppetlabs/peadm and a Terraform module for GCP to facilitate rapid and repeatable deployments of Puppet Enterprise built upon the Standard, Large or Extra Large architecture w/ fail over replica (default).

Recent changes and an additional Terraform module have made it possible to also use autope to deploy Puppet Enterprise upon AWS but the interface is still being updated for consistency. While the interface is still being updated, consider the AWS support in beta.

Setup

What autope affects

Types of things you'll be paying your cloud provider for

  • Instances of various sizes
  • Load balancers
  • Networks

Setup Requirements

Deploying upon GCP

Deploying upon AWS

Common Requirements

Beginning with autope

  1. Clone this repository: git clone https://github.com/puppetlabs/puppetlabs-autope.git && cd puppetlabs-autope/Boltdir
  2. Install module dependencies: bolt puppetfile install
  3. Run plan: bolt plan run autope project=example ssh_user=john.doe firewall_allow='[ "0.0.0.0/0" ]'
  4. Wait. This is best executed from a bastion host or alternatively, a fast connection with strong upload bandwidth

Usage

Example: params.json

The command line will likely serve most uses of autope but if you wish to pass a longer list of IP blocks that are authorized to access your PE stack than creating a params.json file is going to be a good idea, instead of trying to type out a multi value array on the command line. The value that will ultimately be set for the GCP firewall will always include the internal network address space to ensure everything works no matter what is passed in by the user. Single IP addresses must be passed as a /32.

{
    "project"        : "example",
    "ssh_user"       : "john.doe",
    "version"        : "2019.0.4",
    "firewall_allow" : [ "71.236.165.233/32", "131.252.0.0/16", 140.211.0.0/16 ]

}

How to execute plan with params.json: bolt plan run autope --params @params.json

Example: deploy standard architecture on AWS with the developer role using a MFA enabled user

This can also be used to deploy PE's large architecture without a fail over replica on AWS

$(export-profile.py development)
bolt plan run autope provider=aws architecture=standard

Please note that for bolt to authenticate to the AWS-provisioned VMs you need to enable ssh agent like so:

$ eval `ssh-agent`
$ ssh-add

Example: destroy GCP stack

The number of options required are reduced when destroying a stack

bolt plan run autope::destroy

Example: destroy AWS stack

The number of options required are reduced when destroying a stack

bolt plan run autope::destroy provider=aws

Limitations

Only supports what peadm supports and AWS does not currently have parity with the GCP provider, e.g. AWS ignores a few parameters

puppetlabs-autope's People

Contributors

ody avatar timidri avatar reidmv avatar jpogran 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.