Skip to content

Commit

Permalink
passenger concat needs to be wrapped in a check
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxfixit committed Oct 23, 2014
1 parent 0b0a226 commit e49b77c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,12 @@
# - $passenger_min_instances
# - $passenger_start_timeout
# - $passenger_pre_start
concat::fragment { "${name}-passenger":
target => "${priority_real}-${filename}.conf",
order => 290,
content => template('apache/vhost/_passenger.erb'),
if $passenger_app_root or $passenger_ruby or $passenger_min_instances or $passenger_start_timeout or $passenger_pre_start {
concat::fragment { "${name}-passenger":
target => "${priority_real}-${filename}.conf",
order => 290,
content => template('apache/vhost/_passenger.erb'),
}
}

# Template uses:
Expand Down

0 comments on commit e49b77c

Please sign in to comment.