On 22.05.2010 02:32, andreash wrote:
hi there,

i'm not sure as to how to call the subject of this post, as i'm
totally new to puppet -- so please forgive me if this is
misleading ...

for my servers, i'm planning to do something like this (pseudo-code):

class (?) base-config:
     include ntp::client
     include resolver
     ...

all servers should by default include the base-config class.

however, for the node which has the role "ntpd-server", i don't want
ntp::client to be included, but rather ntp::server.

how can i do this?

my ntp module looks like this:

class ntp {
     package { 'openntpd':
          ensure =>  latest
     }

     service { 'openntpd':
         ensure =>  running,
     }
     $ntpserverip = '192.168.1.1' # this is somehow to be replaced with
the
                             # actual ip of the ntpd server
You may have some success of setting this ip address automatically with exported resources. You export the resources in the server class, and you realize them on the client. Check out http://docs.puppetlabs.com/guides/exported_resources.html . Till now I haven't seen this used to set up ntp, but I think it might be possible with the help of the concat module.


Silviu

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@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