I'ven been learning puppet over the last 2 weeks and the one thing I've come to 
realize is there is a completely different way of thinking that I've normally 
been accustomed to. I've been trying to absorb as much knowledge as possible on 
how I should think about organizing our infrastructure. One of the resources 
I've come across was this article http://www.craigdunn.org/2012/05/239/ talking 
about roles and profiles. I definitely like this way of thinking so I've been 
trying to massage it into our specific needs. I have a few questions regarding 
this "pattern". Now I understand the smaller, simpler aspects of setting up 
roles and profiles for our system.. ie, nagios, ntp, networking etc, but it 
starts to break down when I try to model our application needs. 

Our application is a Ruby on Rails application that runs within a Unicorn 
server with ngninx sitting in front of it. Our application also requires the 
correct mounting of a NFS filer before its able to start. We also have custom 
nagios checks for this application as well as checking that our mounts are 
correctly configured. Using the above pattern of roles and profiles how could I 
model this? This is what I have so far: https://gist.github.com/4192914. Now 
I'm kind of lost and I have a bunch of questions:

- Should I move the RVM logic out of webapp profile, push it down further into 
the company_application module, or leave it where it is?
- What profile and/or module should be responsible for checking out the code 
from git? The webapp profile, company_application::install.pp or somewhere else?
- Who should be responsible for the mounting? Module, push it down into 
company_application or leave it at the profile level?
- Who should be responsible for the custom nagios checks? Module, push it down 
into company_application or leave it at the profile level?

Anything else you can recommend? Any input is greatly appreciated.

Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to