Project

General

Profile

« Previous | Next » 

Revision 47679372

Added by Dominic Cleal over 7 years ago

fixes #17062 - move master rack restart to puppet::server::service

Includes minor changes to containment of server configuration classes
to ensure notifies of changes from puppet::server::passenger and ::rack
all reach puppet::server::service.

View differences:

manifests/server/service.pp
#
# === Parameters:
#
# $app_root:: Rack application top-level directory
#
# $puppetmaster:: Whether to start/stop the (Ruby) puppetmaster service
# type:boolean
#
# $puppetserver:: Whether to start/stop the (JVM) puppetserver service
# type:boolean
#
# $rack:: Whether to manage restarts for the Rack-based puppetmaster service
# type:boolean
#
class puppet::server::service(
$app_root = undef,
$puppetmaster = undef,
$puppetserver = undef,
$rack = undef,
) {
if $puppetmaster and $puppetserver {
fail('Both puppetmaster and puppetserver cannot be enabled simultaneously')
......
}
}
if $rack {
exec {'restart_puppetmaster':
command => "/bin/touch ${app_root}/tmp/restart.txt",
refreshonly => true,
cwd => $app_root,
}
}
}

Also available in: Unified diff