Re: [Puppet Users] Multiple server roles using hiera and facts

2013-12-02 Thread Matthias Saou
On Sun, 1 Dec 2013 20:58:34 -0800 (PST) Shiva Narayanaswamy shiva.narayanasw...@gmail.com wrote: I want to implement a scenario where I can mix and match multiple roles on any managed node. The particular roles played by a node are available as facts (role1=webserver, role2=appserver etc )In

Re: [Puppet Users] Multiple server roles using hiera and facts

2013-12-02 Thread Chris Handy
i have heard of people using json in fact values to express arrays. On Monday, December 2, 2013 8:25:20 AM UTC-5, Matthias Saou wrote: On Sun, 1 Dec 2013 20:58:34 -0800 (PST) Shiva Narayanaswamy shiva.nar...@gmail.com javascript: wrote: I want to implement a scenario where I can mix and

Re: [Puppet Users] Multiple server roles using hiera and facts

2013-12-02 Thread Shiva Narayanaswamy
I think I kind of get what you are saying, and I was going to do some ugly if loops in my modules, but that was the second option. I was wondering if there is a more elegant solution. Thanks for taking the time to answer. On Tuesday, December 3, 2013 12:25:20 AM UTC+11, Matthias Saou wrote:

[Puppet Users] Multiple server roles using hiera and facts

2013-12-01 Thread Shiva Narayanaswamy
I want to implement a scenario where I can mix and match multiple roles on any managed node. The particular roles played by a node are available as facts (role1=webserver, role2=appserver etc )In development all the roles will be played by one host, and in production a server might play only