Project

General

Profile

Actions

Feature #1822

open

Puppetize host feature -- auto install puppet on new or legacy host

Added by Corey Osman over 12 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In the past I used ssh and a for loop to install puppet on hosts that don't have puppet.

I had written a bash script to perform the initial puppet install for my particular environment but since everyone's environment will be different this feature will need to be highly customizable via the foreman "script library".

Essentially what I am after is a button on the new host page that says "puppetize" which uses ssh to login to the box and installs puppet via a script defined by the user (or provided for environments that fit a particular model). All that would be required to enter a new host is:

1. ip address
2. ssh credentials or keys (one time use, don't store)
3. custom puppetize script or default puppetize script

Once this puppetize script runs and installs on the newly created puppetnode, it should create the host automatically in forman via puppet with all the necessary details provided.

Additionally, most folks will also elect to use this feature in batch operation to install puppet on a number of hosts. This batch operation would need to be capable of parsing a csv file that contains all the hosts and other useful info (credentials?, name of puppetize script, ...)

I can also envision this feature being placed inside the foremancli as well. Where one could write their own parser and batch mode operations or create a cli batch mode puppetize feature.

Actions

Also available in: Atom PDF