Skip to content

Commit

Permalink
Removed extra upstart script, added sysconfig for actionrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hoolboom committed Oct 9, 2015
1 parent 693bf1c commit dcae020
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions manifests/profile/server.pp
Expand Up @@ -308,15 +308,6 @@

if $_ng_init {

file { '/etc/init/st2actionrunner.conf':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/st2/etc/init/st2actionrunner.conf',
notify => Service['st2actionrunner'],
}

# Spin up any number of workers as needed
$_workers = prefix(range("0", "${workers}"), "worker")

Expand All @@ -327,6 +318,13 @@
process => 'actionrunner'
}

file{'/etc/sysconfig/st2actionrunner':
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0640'
}

file_line{'st2actionrunner count':
path => '/etc/sysconfig/st2actionrunner',
line => "WORKERSNUM=${_workers}"
Expand Down Expand Up @@ -363,15 +361,15 @@

if $manage_st2web_service {
$init_provider = $::st2::params::init_type
if $operatingsystem == 'Ubuntu' {
if $osfamily == 'Debian' {
file { '/etc/init/st2web.conf':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/st2/etc/init/st2web.conf',
}
} elsif $operatingsystem == 'RedHat' {
} elsif $osfamily == 'RedHat' {
case $operatingsystemmajrelease {
'7': {
file { "/etc/systemd/system/st2web.service":
Expand Down

0 comments on commit dcae020

Please sign in to comment.