On Tuesday, April 9, 2013 5:50:28 PM UTC-5, Francesco wrote:
>
> Now eureka I have uninstall screen with rpm and I have created the 
> following 
> I begun from screen installation again :)))
> /etc/puppet/modules/screen/manifests/init.pp
>
> class screen {
>
>   package { 'screen':
>     ensure => 'present'
>     }
> }
>
> under this path I ve declared class
>
> /etc/puppet/manifests/site.pp
>
> John I hope to understand what you are trying to say to me....
>
> But where I can define which packet must have a node rather than another
> Example where can i set if node 1 can have screen an node 2 can have vim 
> but not screen and node 3 apache and not vim?? perhups in node.pp ??
> Thank you in advance and to Andy too
>
> #import 'nodes.pp'
> $puppetserver = 'puppet.xxx.xxx.xxx.it'
>
> node default {
>     include 'screen'
>
>     include 'sudo'
> }
>
> node 'lurtz.interno.regione.lazio.it' {
> include screen
> }
>
>
Yes, making different declarations in different node blocks is one way to 
approach the problem.  I think it's the easiest to understand and use, so 
by all means proceed that way until such time as it becomes too 
constraining (if it ever does).

Node blocks may appear directly in site.pp, or in one or more files 
'import'ed into site.pp.  This is one of very few appropriate use cases for 
the 'import' function; avoid using 'import' for any other purpose.  In 
particular, do not confuse it with the 'include' function.


John

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