Hi all I''m fighting right now with the functionality of overriding variables. I''ve made a base node with some variables: node base { $country = "dk" $dv = "sarge" } And I''d like to override some of them in subnode definitions: node server01 inherits base { $dv = "etch" } Is this possible, or do I have to wrap the variables in a class to make it work...? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
This works exactly like this. Juri Rischel Jensen schrieb:> Hi all > > I''m fighting right now with the functionality of overriding > variables. I''ve made a base node with some variables: > > node base { > $country = "dk" > $dv = "sarge" > } > > And I''d like to override some of them in subnode definitions: > > node server01 inherits base { > $dv = "etch" > } > > Is this possible, or do I have to wrap the variables in a class to > make it work...? > > > -- > Med venlig hilsen > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: 70 202 407 / Fax: 33 313 640 > www.fab-it.dk / juri@fab-it.dk > > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >