Ask Your Question

Registering instances (ec2 with puppet client) dynamically to puppet master

asked 2013-02-02 18:41:02 -0600

starter gravatar image

updated 2013-02-04 14:55:16 -0600

llowder gravatar image

Hi, my team is heading the wrong way it seems, and I need some pointers.

We want to have all new servers that are dynamically instantiated register back to the puppet master and pull their respective updates from master node.

We are able to do so manually but not in the automated way.

How do we address this!!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-05 13:04:37 -0600

jlambert121 gravatar image

I have solved this issue by using a couple of tools developed by R.I. Pienaar. I built a custom image that includes the tools needed for a new image to get provisioned - mcollective, puppet, and ec2-boot-init[1].

I have set up ec2-boot-init to configure mcollective based on information provided in the user data when the instance is launched so it can correctly join the provisioning collective. I have mcollective-server-provisioner [2] running on a utility machine which then watches for new nodes coming online, takes care of certificate cleaning and signing, and runs a puppet client --environment bootstrap on the ... (more)

edit flag offensive delete link more

answered 2013-02-04 15:03:26 -0600

llowder gravatar image

You will need to do a couple of things to get this working.

First off, you will need to either have your puppet master named (or answering to) 'puppet' OR make sure that whatever you use to provision the servers sets the server = line in your puppet.conf on the new nodes, as well as the environment if you are using them.

The other thing that you will likely want to enable, a least for these specific nodes, is autosigning of certificates. While this is a potential risk, you can mitigate that by setting it to only auto-sign your EC2 ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-02-02 18:41:02 -0600

Seen: 626 times

Last updated: Feb 05 '13