[Puppet Users] Re: Variable scope on sub-defined ressource type

2017-06-29 Thread Prunk Dump
On Tuesday, June 27, 2017 at 3:37:04 PM UTC+2, jcbollinger wrote: > > > > On Monday, June 26, 2017 at 7:57:06 AM UTC-5, Prunk Dump wrote: >> >> Hello puppet Team ! >> >> I have trouble upgrading some code from puppet-3.7 to puppet-4.8. >> >> I have

[Puppet Users] Variable scope on sub-defined ressource type

2017-06-26 Thread Prunk Dump
Hello puppet Team ! I have trouble upgrading some code from puppet-3.7 to puppet-4.8. I have a class, a defined type, and a sub-defined type like this : define mainclass::myress::sub { # access to : # $mainclassvar # $myressvar } define mainclass::myress($arga = $title, $argb) {

[Puppet Users] Re: Declare ressources from another stage

2016-10-06 Thread Prunk Dump
On Wednesday, October 5, 2016 at 4:15:21 PM UTC+2, jcbollinger wrote: > > > > On Tuesday, October 4, 2016 at 6:55:36 AM UTC-5, Prunk Dump wrote: >> >> Hello puppet users ! >> >> My problem is simple. I use the following classes in three different >>

[Puppet Users] Declare ressources from another stage

2016-10-04 Thread Prunk Dump
Hello puppet users ! My problem is simple. I use the following classes in three different stages (setup/main/runtime) : class { 'apt::client': stage => 'setup', } ... ... class { 'hostpkg': } ... ... class { 'extrapkg': stage => 'runtime', } The idea is that the "apt::client" class