Puppet 3.4 is out and broke an very usefull undocument feature.

Previsiously, one can write :

    package {'bla':
        ensure => present,
        name => ['pkg1', 'pkg2']
    }

and it will install pkg1 and pkg2.

It now says :
 Parameter name failed on Package['blab']: Name must be a String not Array at 
/etc/puppet/modules/...


I know this was undocument, considered as a bad practice. But I used it 
intensively because it provides a quick solution to 3 problems :
- a small performance gain, it reduce the number of call to your package manage 
(at least in redhat) because it executes 'yum ... pkg1 pkg2' once
- easier to read dependency, 'bla' was a symbolic name for a dependency set, 
and I could easily wrote :
 require => Package['bla']
 what ever the real packages list it was.
- a easer solution to multiple dependencies for the same package, as I could 
write :
in openssh module :
package {'openssh':
        name => ['openssl', ...]
}

package {'https':
        name => ['openssl', ...]
}
without any complication to solve it. Yum would just be called twice for the 
same package.

quick clean, very readable. I loved this feature^Wbug.

I don't really hope to get this back, but can some on help on clean and quick 
alternative solution for the same feature set ?

-- 
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/C204FAAB-ECAC-4B79-AA50-6678D1E566C7%40spamcop.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to