Skip to content

Commit cd99962

Browse files
committed
Added option to passenger to add custom stuff on the config.ru file.
This allows, for example, to add the line 'ARGV << "--profile"' needed for workaround with Puppet/Centos. See for example http://comments.gmane.org/gmane.comp.sysutils.puppet.user/65767
1 parent bdc25cd commit cd99962

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

manifests/master.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
$puppet_vardir = $::puppet::params::puppet_vardir,
7878
$puppet_passenger_port = $::puppet::params::puppet_passenger_port,
7979
$puppet_passenger_tempdir = false,
80+
$puppet_passenger_cfg_addon = '',
8081
$puppet_master_package = $::puppet::params::puppet_master_package,
8182
$puppet_master_service = $::puppet::params::puppet_master_service,
8283
$version = 'present',
@@ -91,6 +92,7 @@
9192
$strict_variables = undef,
9293
$puppetdb_version = 'present',
9394
$always_cache_features = false,
95+
9496
) inherits puppet::params {
9597

9698
anchor { 'puppet::master::begin': }
@@ -139,6 +141,7 @@
139141
dns_alt_names => join($dns_alt_names,','),
140142
generate_ssl_certs => $generate_ssl_certs,
141143
puppet_passenger_tempdir => $puppet_passenger_tempdir,
144+
config_addon => $puppet_passenger_cfg_addon,
142145
} ->
143146
Anchor['puppet::master::end']
144147

manifests/passenger.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
$puppet_ssldir,
4242
$certname,
4343
$conf_dir,
44-
$dns_alt_names
44+
$dns_alt_names,
45+
$config_addon = ''
4546
){
4647
include apache
4748
include puppet::params

templates/config.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ARGV << "--rack"
2626
# to ~puppet/.puppet
2727
ARGV << "--confdir" << "/etc/puppet"
2828
ARGV << "--vardir" << "/var/lib/puppet"
29-
29+
<%= @config_addon %>
3030
# NOTE: it's unfortunate that we have to use the "CommandLine" class
3131
# here to launch the app, but it contains some initialization logic
3232
# (such as triggering the parsing of the config file) that is very

0 commit comments

Comments
 (0)