Ask Your Question

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

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

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 -0600 )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 -0600 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted

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

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 -0600

Seen: 172 times

Last updated: Aug 26 '14