- case $apache2 {
- "true": {
- case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
- true: { include apache2::security_mirror }
- default: { include apache2 }
- }
+ if $::apache2 {
+ if getfromhash($nodeinfo, 'apache2_security_mirror') {
+ include apache2::security_mirror
+ }
+ if getfromhash($nodeinfo, 'apache2_www_mirror') {
+ include apache2::www_mirror
+ }
+ if getfromhash($nodeinfo, 'apache2_backports_mirror') {
+ include apache2::backports_mirror
+ }
+ if getfromhash($nodeinfo, 'apache2_ftp-upcoming_mirror') {
+ include apache2::ftp-upcoming_mirror