Right now my init.pp contains the following code block:
package { [ 'package-1', 'package-2', '...' ]:
ensure => 'present',
require => Exec['apt_update'],
}
This works great — no problem there — but I'd love to use a single init.pp for production and development and control the behavior of everything via my Hiera files. This would also allow me to exchange some packages depending on the operating system without writing modules for simple package installations. I tried a few things and searched for answers; without luck.
Maybe you guys have an idea on how to solve this.
Regards
Richard