Giter VIP home page Giter VIP logo

pave_puppet_agent's Introduction

pave_puppet_agent

pave_puppet_agent is designed to support migration of nodes during a side-by-side Puppet Enterprise upgrade. It takes it's name from nuke and pave, an old technique to fix systemic desktop issues where you would backup data, erase the hard drive, and reinstall the OS. pave_puppet_agent takes a similar, brute-force approach to node / agent migration.

BE ADVISED: ONLY SUPPORTS DISTROS BASED ON RHEL6-7

Description

Currently, pave_puppet_agent contains one task which is also called pave_puppet_agent. This task automates the brute-force way to migrate nodes to a new PE master, such as is needed during a side-by-side upgrade.

The pave_puppet_agent task has two parameters:

  • String pe_master - Puppet Enterprise FQDN. This is used to construct the Agent install URL.
  • String pe_masterport - Puppet master port. Defaults to 8140. The port over which agent-master communications occur.

Task operations overview

The task runs the following operations in sequence:

  • Stops the current Puppet Agent service
  • Checks for the PE master yum repo and deletes it if it exists
  • Checks for the directory /etc/puppetlabs and deletes it if it exists
  • Checks for the directory /opt/puppetlabs and deletes it if it exists
  • Checks for the Puppet Agent yum package and deletes it if it exists
  • Installs new Puppet Agent directly from new PE Master using curl
  • Kills the first run after agent install (this shortcuts receiving a CSR)
  • Invokes puppet agent -t to get a CSR to the PE Master

Setup

Beginning with pave_puppet_agent

The very basic steps needed for a user to get the module up and running. This can include setup steps, if necessary, or it can be an example of the most basic use of the module.

To install pave_puppet_agent you can clone this repository into a directory in your Bolt MODULEPATH or add this module to your control repo's site-modules directory.

Usage

Password auth from Mac / Linux

bolt task run -u <user> --password-prompt --run-as root --tty --no-host-key-check -t <your node> pave_puppet_agent pe_master=<your master fqdn>

SSH key auth from Mac / Linux

bolt task run -u <user> --private-key <path to your private key> --run-as root --tty --no-host-key-check -t <your node> pave_puppet_agent pe_master=<your master fqdn>

From Windows

Password auth from Windows

bolt task run -u <user> --password-prompt --run-as root --tty --transport ssh --no-host-key-check -t <your node> pave_puppet_agent pe_master=<your master fqdn>

SSH key auth from Windows

bolt task run -u <user> --private-key --run-as root --tty --transport ssh --no-host-key-check -t <your node> pave_puppet_agent pe_master=<your master fqdn>

pave_puppet_agent's People

Contributors

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