Ask Your Question

Masterless best practices : how to differentiate the boxes ?

asked 2013-10-28 14:03:40 -0600

Pouzy gravatar image

Hello !

I'm rolling out a dashboard system where I have TVs hooked up up to xubuntu boxes (1 box per tv) that have a bunch of scripts to display pretty things.

For now all the tvs display the same thing in one location, and so I'm simply managing the differences in the displays by location IP (each external IP displays something specific, but all the boxes with that IP display the same thing)

I now want to be able to separate each TV in one location, and I'm thinking about managing the whole thing via their hostnames ... (more)

edit retag flag offensive close merge delete


I'm not sure you really even need puppet to do this. Writing a class for each tv seems like overkill How are you using puppet now?

spuder gravatar imagespuder ( 2013-10-28 14:31:05 -0600 )edit

For now all the TVs are the same, so I only have a few classes (I use modules). I'm just wondering how to separate the boxes in a more ...(more)

Pouzy gravatar imagePouzy ( 2013-10-28 14:47:41 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-31 01:48:17 -0600

You are right with the hostname (or fqdn to be safe), but you could go further with facter.

I'm not sure what is your provisioning method, but at some point those machines will have a certain property (floor, department where installed, etc) that could be passed and stored on the system.

Puppet can use that to make determination on how to configure the application (show the dashboard of sales metrics to the sales team, but response time on Noc, both for the rest of the company, etc).

It's now dead easy to add new facts in puppet http ... (more)

edit flag offensive delete link more


I use facter daily on an architecture with a master and didn't even think about it for the masterless version... Thanks !

Pouzy gravatar imagePouzy ( 2013-10-31 09:40:10 -0600 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2013-10-28 14:03:40 -0600

Seen: 446 times

Last updated: Oct 31 '13