This seems like entirely the wrong way to use classes. Classes are a set of resources that can be applied to a node.
The easiest way to use classes is to include them in a node definition like so node 'blah.example.com' { include blackup::client } if you need to set the variable for a class you can use hiera or an enc or do something like this. node 'blah.example.com' { class{'backup::client': backup => 'blah', } for more detailed explanations of classes please have a look here. http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html On 9 April 2013 20:20, Israel Calvete <icalv...@gmail.com> wrote: > Hi, > > I try some like this... > > I need virtual parametriced class. > > *@class {backup::client:* > * backup => xxxxxx* > *}* > > Is posible to do something like this? If > > > To realice... > > This don't works. (err: Could not retrieve catalog from remote server: > Error 400 on SERVER: Resource* type class *doesn't exist at ......) > > *Class <| title == 'backup::client' |> {* > * backup => $backup_remote* > *}* > > This works fine but i can't set any parameter ( I need set the param value) > > *realize('backup::client')* > > > So, the question is... How i can do to realize a virtual parametriced > class? > > 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+unsubscr...@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. > > > -- 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+unsubscr...@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.