Hello, I''ve installed the puppet module mysql however I''m noticing its only reading the init.pp when puppet does its run.. For some reason its ignoring all of the other pp files in under the directory such as the backup.pp,sever.pp or ruby.pp what am I doing wrong.. I even run a puppet apply on the individual pp files however they do not run I have other modules but they only contain one file under the /manifest directory the init.pp so that always runs please help Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi, On 02/22/2013 05:21 PM, Raymond Regnier wrote:> Hello, > > I''ve installed the puppet module mysql however I''m noticing its only > reading the init.pp when puppet does its run.. For some reason its > ignoring all of the other pp files in under the directory such as the > backup.pp,sever.pp or ruby.pp > > what am I doing wrong.. I even run a puppet apply on the individual pp > files however they do not runwhat do you expect to happen when you apply a single manifest file from a module? The classes and types defined in the individual files only take effect when you include the classes or use the defined types. Does that not work for you? Regards, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi, No i''m trying to have puppet run all of the pp files under the module''s manifest directory all it does is run init.pp could it be because I''m not specifying every specifc pp file in my site.pp file on the master? On Fri, Feb 22, 2013 at 11:38 AM, Felix Frank < felix.frank@alumni.tu-berlin.de> wrote:> Hi, > > On 02/22/2013 05:21 PM, Raymond Regnier wrote: > > Hello, > > > > I''ve installed the puppet module mysql however I''m noticing its only > > reading the init.pp when puppet does its run.. For some reason its > > ignoring all of the other pp files in under the directory such as the > > backup.pp,sever.pp or ruby.pp > > > > what am I doing wrong.. I even run a puppet apply on the individual pp > > files however they do not run > > what do you expect to happen when you apply a single manifest file from > a module? > > The classes and types defined in the individual files only take effect > when you include the classes or use the defined types. Does that not > work for you? > > Regards, > Felix > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Raymond Regnier Mobile (202) 716-9898 raymondregnier@gmail.com rayregnier@yahoo.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
No I''m trying to have it run all pp files under the module''s manifest directory.. its only just running init.pp.. could it be because I haven''t listed each individual pp file under my site.pp file ? On Friday, February 22, 2013 11:38:13 AM UTC-5, Felix.Frank wrote:> > Hi, > > On 02/22/2013 05:21 PM, Raymond Regnier wrote: > > Hello, > > > > I''ve installed the puppet module mysql however I''m noticing its only > > reading the init.pp when puppet does its run.. For some reason its > > ignoring all of the other pp files in under the directory such as the > > backup.pp,sever.pp or ruby.pp > > > > what am I doing wrong.. I even run a puppet apply on the individual pp > > files however they do not run > > what do you expect to happen when you apply a single manifest file from > a module? > > The classes and types defined in the individual files only take effect > when you include the classes or use the defined types. Does that not > work for you? > > Regards, > Felix >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On 02/22/2013 05:43 PM, Raymond Regnier wrote:> Hi, > > No i''m trying to have puppet run all of the pp files under the module''s > manifest directory > all it does is run init.pp > > could it be because I''m not specifying every specifc pp file in my > site.pp file on the master?But that''s the thing - you don''t "run" a manifest file. Puppet uses the files to find declarations of types and classes. What exactly are you trying and failing? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
So I''m just trying to run the mysql module and have all of my clients pick it up for example I''ve created my own httpd and iptables modules and I have them include in my site.pp file.. however both of those modules just have a init.pp under their respective manifest directory. They run fine when each client completes its pull from the master.. the clients get httpd and iptables installed. So I downloaded the already created mysql module. Its under my /etc/puppet/modules/mysql directory under that directory is a manifests directory which contains a whole lot of .pp files including a init.pp file which installs just mysql.. the other pp files install like mysql-server and other packages however when I put in my site.pp file when I have the clients pull from the master they only pick up mysql as it should from the mysql module''s init.pp file.. however it doesn''t do anything else.. It seems as if the clients don''t see the other pp files to execute or do anything.. is it because of my site.pp file? should i have import modules at the top of the file? or list each one like include mysql include mysql::server does this make sense? On Friday, February 22, 2013 11:52:36 AM UTC-5, Felix.Frank wrote:> > On 02/22/2013 05:43 PM, Raymond Regnier wrote: > > Hi, > > > > No i''m trying to have puppet run all of the pp files under the module''s > > manifest directory > > all it does is run init.pp > > > > could it be because I''m not specifying every specifc pp file in my > > site.pp file on the master? > > But that''s the thing - you don''t "run" a manifest file. Puppet uses the > files to find declarations of types and classes. > > What exactly are you trying and failing? >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
WIth the puppet module structure, you don''t import any pp files from the modules ever. You only use include. If you look at the github for the module, it explains which classes do what. https://github.com/puppetlabs/puppetlabs-mysql The base class (mysql) only installs the client. mysql::server will install mysql-server and there are other classes for setting up databases and such. Include the ones you need in your node definitions, not in site.pp On Friday, February 22, 2013 9:59:20 AM UTC-7, Raymond Regnier wrote:> > So I''m just trying to run the mysql module and have all of my clients pick > it up > > for example I''ve created my own httpd and iptables modules and I have them > include in my site.pp file.. however both of those modules just have a > init.pp under their respective manifest directory. > > They run fine when each client completes its pull from the master.. the > clients get httpd and iptables installed. > > So I downloaded the already created mysql module. > Its under my /etc/puppet/modules/mysql directory > > under that directory is a manifests directory which contains a whole lot > of .pp files including a init.pp file which installs just mysql.. the other > pp files install like mysql-server and other packages > however when I put in my site.pp file when I have the clients pull from > the master they only pick up mysql as it should from the mysql module''s > init.pp file.. however it doesn''t do anything else.. It seems as if the > clients don''t see the other pp files to execute or do anything.. > > is it because of my site.pp file? should i have import modules at the top > of the file? or list each one like > include mysql > include mysql::server > > does this make sense? > > On Friday, February 22, 2013 11:52:36 AM UTC-5, Felix.Frank wrote: >> >> On 02/22/2013 05:43 PM, Raymond Regnier wrote: >> > Hi, >> > >> > No i''m trying to have puppet run all of the pp files under the module''s >> > manifest directory >> > all it does is run init.pp >> > >> > could it be because I''m not specifying every specifc pp file in my >> > site.pp file on the master? >> >> But that''s the thing - you don''t "run" a manifest file. Puppet uses the >> files to find declarations of types and classes. >> >> What exactly are you trying and failing? >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
so my site.pp looks like this node default { include httpd include iptables i*nclude mysql include mysql::server* then on my node.pp file i have node "my ipdaddress here" { include httpd include iptables include mysql so from my site.pp file if I do not have include mysql::server then it will not pull the server.pp file... On Friday, February 22, 2013 12:31:01 PM UTC-5, joe wrote:> > WIth the puppet module structure, you don''t import any pp files from the > modules ever. You only use include. > > If you look at the github for the module, it explains which classes do > what. > https://github.com/puppetlabs/puppetlabs-mysql > > The base class (mysql) only installs the client. mysql::server will > install mysql-server and there are other classes for setting up databases > and such. > > Include the ones you need in your node definitions, not in site.pp > > On Friday, February 22, 2013 9:59:20 AM UTC-7, Raymond Regnier wrote: >> >> So I''m just trying to run the mysql module and have all of my clients >> pick it up >> >> for example I''ve created my own httpd and iptables modules and I have >> them include in my site.pp file.. however both of those modules just have a >> init.pp under their respective manifest directory. >> >> They run fine when each client completes its pull from the master.. the >> clients get httpd and iptables installed. >> >> So I downloaded the already created mysql module. >> Its under my /etc/puppet/modules/mysql directory >> >> under that directory is a manifests directory which contains a whole lot >> of .pp files including a init.pp file which installs just mysql.. the other >> pp files install like mysql-server and other packages >> however when I put in my site.pp file when I have the clients pull from >> the master they only pick up mysql as it should from the mysql module''s >> init.pp file.. however it doesn''t do anything else.. It seems as if the >> clients don''t see the other pp files to execute or do anything.. >> >> is it because of my site.pp file? should i have import modules at the top >> of the file? or list each one like >> include mysql >> include mysql::server >> >> does this make sense? >> >> On Friday, February 22, 2013 11:52:36 AM UTC-5, Felix.Frank wrote: >>> >>> On 02/22/2013 05:43 PM, Raymond Regnier wrote: >>> > Hi, >>> > >>> > No i''m trying to have puppet run all of the pp files under the >>> module''s >>> > manifest directory >>> > all it does is run init.pp >>> > >>> > could it be because I''m not specifying every specifc pp file in my >>> > site.pp file on the master? >>> >>> But that''s the thing - you don''t "run" a manifest file. Puppet uses the >>> files to find declarations of types and classes. >>> >>> What exactly are you trying and failing? >>> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
so how do you get the db.pp to work? On Friday, February 22, 2013 12:31:01 PM UTC-5, joe wrote:> > WIth the puppet module structure, you don''t import any pp files from the > modules ever. You only use include. > > If you look at the github for the module, it explains which classes do > what. > https://github.com/puppetlabs/puppetlabs-mysql > > The base class (mysql) only installs the client. mysql::server will > install mysql-server and there are other classes for setting up databases > and such. > > Include the ones you need in your node definitions, not in site.pp > > On Friday, February 22, 2013 9:59:20 AM UTC-7, Raymond Regnier wrote: >> >> So I''m just trying to run the mysql module and have all of my clients >> pick it up >> >> for example I''ve created my own httpd and iptables modules and I have >> them include in my site.pp file.. however both of those modules just have a >> init.pp under their respective manifest directory. >> >> They run fine when each client completes its pull from the master.. the >> clients get httpd and iptables installed. >> >> So I downloaded the already created mysql module. >> Its under my /etc/puppet/modules/mysql directory >> >> under that directory is a manifests directory which contains a whole lot >> of .pp files including a init.pp file which installs just mysql.. the other >> pp files install like mysql-server and other packages >> however when I put in my site.pp file when I have the clients pull from >> the master they only pick up mysql as it should from the mysql module''s >> init.pp file.. however it doesn''t do anything else.. It seems as if the >> clients don''t see the other pp files to execute or do anything.. >> >> is it because of my site.pp file? should i have import modules at the top >> of the file? or list each one like >> include mysql >> include mysql::server >> >> does this make sense? >> >> On Friday, February 22, 2013 11:52:36 AM UTC-5, Felix.Frank wrote: >>> >>> On 02/22/2013 05:43 PM, Raymond Regnier wrote: >>> > Hi, >>> > >>> > No i''m trying to have puppet run all of the pp files under the >>> module''s >>> > manifest directory >>> > all it does is run init.pp >>> > >>> > could it be because I''m not specifying every specifc pp file in my >>> > site.pp file on the master? >>> >>> But that''s the thing - you don''t "run" a manifest file. Puppet uses the >>> files to find declarations of types and classes. >>> >>> What exactly are you trying and failing? >>> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.