I am struggling with the documentation, it is a nice read but hard for me 
to translate into practical application.
For instance, I am simply trying to run a module against a client. 
Once I figure this out, I can move forward..

I have my module, and it works. I have it getting the file from 
puppet:///module/files/myfiles  and writing them to the local server.
NOW I want to check the master file against the file on server11, and if it 
is not there overwrite.

In other words, I want to run module "move file" against server11

I believe I have server11 in appserver class

How do I get puppet to run the module against another server?
How do I get puppet console to run the module at my request (rather then 
automatically)



Here is the documentation that has me confused.

Node Definitions 

Node definitions work almost exactly like class definitions:

    # Append this at the bottom of /etc/puppetlabs/puppet/manifests/site.pp
    
    node 'agent1.localdomain' {
      
      # Note the quotes around the name! Node names can have characters that
      # aren't legal for class names, so you can't always use bare, unquoted
      # strings like we do with classes.
      
      # Any resource or class declaration can go inside here. For now:
      
      include apache
      
      class {'ntp': 
        enable => false,
        ensure => stopped,
      }

    }

 But unlike classes, nodes are declared automatically, based on the *name*of 
the node whose catalog is being compiled. 
*Only one* node definition will get added to a given catalog, and any other 
node definitions are effectively hidden. 

An agent node’s *name* is almost always read from its certname 
setting<http://docs.puppetlabs.com/references/latest/configuration.html#certname>,
 
which is set at install time but can be changed later. The certname is 
usually (but not always) the node’s fully qualified domain name.

More on node definitions later, as well as alternate ways to assign classes 
to a node.

-- 
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