Ask Your Question
0

Masterless best practices : how to differentiate the boxes ?

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

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

Comments

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

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

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 -0500 )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

Stats

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

Seen: 427 times

Last updated: Oct 31 '13