yes! Man, did not think of that. Earlier in the network.pp i have:
$ifcfg_template = template("ip/ifcfg.erb--TEMPLATE") I dont recall why I did it like that to start with (the base code of this class is pretty old, just trying to add the ipv6 stuff now), but if i move the template call directly to the file resource's 'content' parameter it all works like i would expect. Thank you for opening my eyes! //Adam On Sun, May 17, 2015 at 8:22 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > Ah, sorry I missed that earlier: You are compiling the template > elsewhere, yes? Because the file resources uses the value of the > $ifcfg_template variable. > > Please also debug the scope of the declaration of that variable. Is it a > parameter? > > HTH, > Felix > > On 05/17/2015 07:41 PM, Adam Winberg wrote: > > thanks for the tip, i tried and the notify outputs correct information > > (i.e the ipv6_addr_cidr variable value) even if put next to the file > > resource. But still no content in my template. > > > > I've been looking up scoping but as far as I've found there is no > > special scoping in if statements, or conditionals of any kind. But i > > might have missed something (clearly I have). > > > > //Adam > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/5558DC6D.5090109%40Alumni.TU-Berlin.de > . > For more options, visit https://groups.google.com/d/optout. > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAFCL3HtyPa8qyB8AYehDjPdS2%2BOTUPhif3aGGZMs%2B2K%2BmiWhHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.