Hello, i am using for my management some class dependency like this: unix => linux => debian => etch (linux inherits unix, debian inherits linux, etch inherits debian...) also linuxvservers inherits debian and linuxvservers::host inherits linuxvservers then my node is node myhost { include debian include linuxvservers::host } i have an issue as i have a file definition in the [linux] classe and i override it in the [linuxvservers::host] classe but puppet tells me that the ''content'' parameter is allready defined. seems it does not allow overriding files accross multiple inherits ? err: Could not retrieve configuration: Parameter ''content'' is already set on File[/etc/sysctl.conf] by linuxvservers::host at /etc/puppet/manifests/classes/newvserver.pp:7; cannot redefine at /etc/puppet/manifests/os/linux.pp:8 am i doing something wrong or is it normal for the parser''s point of view ? (version .22.4) -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Aug 8, 2007, at 8:25 AM, ADNET Ghislain wrote:> > > i have an issue as i have a file definition in the [linux] classe > and i override it in the [linuxvservers::host] classe but puppet > tells me that the ''content'' parameter is allready defined. seems it > does not allow overriding files accross multiple inherits ?> err: Could not retrieve configuration: Parameter ''content'' is > already set on File[/etc/sysctl.conf] by linuxvservers::host at / > etc/puppet/manifests/classes/newvserver.pp:7; cannot redefine at / > etc/puppet/manifests/os/linux.pp:8From the class structure you provided, the linuxvservers::host class is not a subclass of the linux class, which is why you''re having that conflict. -- Finn''s Law: Uncertainty is the final test of innovation. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com