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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to