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