Ask Your Question

Challenge: who am i and what am i supposed to do?

asked 2014-08-26 14:52:57 -0500

ciandro gravatar image

Guys - i just started using puppet. I am trying to set something up where a server comes alive after a general vanilla iso (let's say CentOS) and asks itself 3 questions:

1) Who am I? 2) Where am I? 3) What am I supposed to do?

1) What type of server am I? Based on that, certain modules will apply; 2) Where in the world am I? What datacenter (priv cloud) or availability zone (pub cloud) am I in? Based on this, certain modules will apply; 3) If i realize what kind of server I am, then I will install certain modules (apache, tomcat, etc..) together with their configuration files.

Any ideas?

Thanks :-) Alex

edit retag flag offensive close merge delete



ptierno gravatar imageptierno ( 2014-08-26 16:55:06 -0500 )edit

Thanks for this suggestion, this was actually what i was looking for. Very well documented post.

ciandro gravatar imageciandro ( 2014-08-27 10:32:54 -0500 )edit

Every puppet environment I have every built has utilized that paradigm. Glad to help.

ptierno gravatar imageptierno ( 2014-08-28 19:12:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-26 20:22:26 -0500

WhatsARanjit gravatar image
  1. Who am I? Take a look a classification. Classifying a node will give the characteristics of a described end-state to a node.
  2. Where am I? The location of a node (physical datacenter, or rack shelf, or blade slot, etc) can be provided by an external fact.
  3. What am I supposed to do? (see #1)
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: 2014-08-26 14:52:57 -0500

Seen: 160 times

Last updated: Aug 26 '14