> We have simple inheritance in our external node classifier like this: Actually, yaml itself allows the definition of Relational Trees (http://en.wikipedia.org/wiki/YAML#Relational_trees) that allow you to do something like:
- &linux name: linux parameters: one_parameter: "value1" other_parameter: "value2" classes: - linuxserver - <<: *linux name: server.domain.com environment: test parameters: another_parameter2: " y2 " txt_parameter3: " y3 " array_parameter1: [ " y_a_1.1 ", " y_a_1.2 " ] array_parameter2: [ " y_a_2.1 ", " y_a_2.2 " ] array_parameter3: [ " y_a_3.1-", " y_a_3.2 " ] array_parameter4: [ " y_a_4.1 ", " y_a_4.2 " ] classes: - linuxserver - webserver But you can not extend "classes" since it is a attribute, not a dictionary. > We only allow one level, and includes cannot include other includes. > Parameters specified in a node yaml override the same parameter in an > include yaml. > > Oh, and we have a default node that all of this is appended to. > This is a really simple classifier, less than 100 lines of real code. I will try to do something like that. -- Atentamente Héctor Rivas > > > We only allow one level, and includes cannot include other includes. > Parameters specified in a node yaml override the same parameter in an > include yaml. > > Oh, and we have a default node that all of this is appended to. > > This is a really simple classifier, less than 100 lines of real code. > > > > > Something like this: > > > > - name: linuxserver > > parameters: > > connect_allowed_groups: ["group1", "group2"] > > classes: > > - linux > > > > - name: node1.mydomain.com > > super: linux > > parameters: > > connect_allowed_groups: %{connect_allowed_groups}+["group3"] > > > > - name: node2.mydomain.com > > super: linux > > parameters: > > connect_allowed_groups: ["group1", "group3"] > > > > This way we could easily implement inheritance in all external nodes > > implementations. > > -- > > Atentamente > > Héctor Rivas > > > > -- > > 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. > > > > > > > > -- > nigel > > -- > 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. > -- 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.