Hi folks, I''m setting up the foreman and wondering what path to give it for the import of puppet classes? I have the common module structure /etc/puppet/production/modules /etc/puppet/development/modules Is there anything special that needs to be done for foreman to load them in? Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
You can have both..... Just declare all of your environment with "environments" parameter in / etc/puppet/puppet.conf file then run: RAILS_ENV=production rake puppet:import:puppet_classes and it will import all your environments classes. Moty On Sep 16, 7:30 pm, Matt <mattmora...@gmail.com> wrote:> Hi folks, > > I''m setting up the foreman and wondering what path to give it for the > import of puppet classes? I have the common module structure > > /etc/puppet/production/modules > /etc/puppet/development/modules > > Is there anything special that needs to be done for foreman to load them in? > > Thanks, > > Matt--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
The default for puppet is production, so I don''t set a [production] setting in the puppet.conf, I just have a [main] and [puppetmasterd] - so I guess foreman should take the [main] as production right? # RAILS_ENV=production rake puppet:import:puppet_classes (in /var/www/html/foreman) Environment old:2 current:2 PuppetClasses old:0 current:0 Do I require to have storedconfigs working on the same DB for importing of classes to work? Thanks, Matt 2009/9/16 Moty <motyla@gmail.com>:> > > You can have both..... > > Just declare all of your environment with "environments" parameter in / > etc/puppet/puppet.conf file > then run: > > RAILS_ENV=production rake puppet:import:puppet_classes > > and it will import all your environments classes. > > Moty > > On Sep 16, 7:30 pm, Matt <mattmora...@gmail.com> wrote: >> Hi folks, >> >> I''m setting up the foreman and wondering what path to give it for the >> import of puppet classes? I have the common module structure >> >> /etc/puppet/production/modules >> /etc/puppet/development/modules >> >> Is there anything special that needs to be done for foreman to load them in? >> >> Thanks, >> >> Matt > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
- I had the same puppet.conf style you have an I had to change it a bit so I''ll have a [production] section and [development] section for the import to work. I simply moved stuff like smodulepath,templatedir...etc from [puppetmasterd] section to a newly created [production] section. But since I declare "environments" parameter and create a new [production] section at the same time .... one of them might be enough ... :-) - regarding your second point.... I have it configure to the same db like storeconfig and I do think it is necessary for the import to work. Moty On Thu, Sep 17, 2009 at 11:08 AM, Matt <mattmoran76@gmail.com> wrote:> > The default for puppet is production, so I don''t set a [production] > setting in the puppet.conf, I just have a [main] and [puppetmasterd] - > so I guess foreman should take the [main] as production right? > > # RAILS_ENV=production rake puppet:import:puppet_classes > (in /var/www/html/foreman) > Environment old:2 current:2 > PuppetClasses old:0 current:0 > > Do I require to have storedconfigs working on the same DB for > importing of classes to work? > > Thanks, > > Matt > > 2009/9/16 Moty <motyla@gmail.com>: > > > > > > You can have both..... > > > > Just declare all of your environment with "environments" parameter in / > > etc/puppet/puppet.conf file > > then run: > > > > RAILS_ENV=production rake puppet:import:puppet_classes > > > > and it will import all your environments classes. > > > > Moty > > > > On Sep 16, 7:30 pm, Matt <mattmora...@gmail.com> wrote: > >> Hi folks, > >> > >> I''m setting up the foreman and wondering what path to give it for the > >> import of puppet classes? I have the common module structure > >> > >> /etc/puppet/production/modules > >> /etc/puppet/development/modules > >> > >> Is there anything special that needs to be done for foreman to load them > in? > >> > >> Thanks, > >> > >> Matt > > > > > > > > >-- Moty --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I''m wondering if you hit another problem that was fixed in http://theforeman.org/issues/show/5 if that''s not the case, can you create a new issue and paste your puppet.conf? You don''t need storeconfigs to import your classes. cheers, Ohad On 9/17/09, Matt <mattmoran76@gmail.com> wrote:> > > The default for puppet is production, so I don''t set a [production] > setting in the puppet.conf, I just have a [main] and [puppetmasterd] - > so I guess foreman should take the [main] as production right? > > # RAILS_ENV=production rake puppet:import:puppet_classes > (in /var/www/html/foreman) > Environment old:2 current:2 > PuppetClasses old:0 current:0 > > Do I require to have storedconfigs working on the same DB for > importing of classes to work? > > Thanks, > > Matt > > 2009/9/16 Moty <motyla@gmail.com>: > > > > > > > You can have both..... > > > > Just declare all of your environment with "environments" parameter in / > > etc/puppet/puppet.conf file > > then run: > > > > RAILS_ENV=production rake puppet:import:puppet_classes > > > > and it will import all your environments classes. > > > > Moty > > > > On Sep 16, 7:30 pm, Matt <mattmora...@gmail.com> wrote: > >> Hi folks, > >> > >> I''m setting up the foreman and wondering what path to give it for the > >> import of puppet classes? I have the common module structure > >> > >> /etc/puppet/production/modules > >> /etc/puppet/development/modules > >> > >> Is there anything special that needs to be done for foreman to load them > in? > >> > >> Thanks, > >> > >> Matt > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---