Change RCCN to testing repo and add esme-restart

This commit is contained in:
Wile E. Coyote 2018-02-12 09:31:08 +00:00
parent ea49c4f4c6
commit 56e98228f4

View file

@ -185,7 +185,7 @@ class rhizo_base {
} }
} }
#Rizhomatica scripts #Rhizomatica scripts
file { '/home/rhizomatica/bin': file { '/home/rhizomatica/bin':
ensure => directory, ensure => directory,
source => 'puppet:///modules/rhizo_base/bin', source => 'puppet:///modules/rhizo_base/bin',
@ -230,13 +230,14 @@ class rhizo_base {
vcsrepo { '/var/rhizomatica': vcsrepo { '/var/rhizomatica':
ensure => latest, ensure => latest,
provider => git, provider => git,
source => 'https://github.com/Rhizomatica/rccn.git', source => 'git@dev.rhizomatica.org:rhizomatica/rccn.git',
revision => 'master', revision => 'whyteks/testing',
require => [ File['/var/rhizomatica'], Package['git'] ], require => [ File['/var/rhizomatica'], Package['git'] ],
notify => [ Exec['locale-gen'], notify => [ Exec['locale-gen'],
Exec['notify-freeswitch'], Exec['notify-freeswitch'],
Exec['restart-rapi'], Exec['restart-rapi'],
Exec['restart-smpp'] ], Exec['restart-smpp'],
Exec['restart-esme'] ],
} }
file { '/var/rhizomatica/bin/get_account_balance.sh': file { '/var/rhizomatica/bin/get_account_balance.sh':
@ -308,6 +309,11 @@ class rhizo_base {
refreshonly => true, refreshonly => true,
} }
exec { 'restart-esme':
command => '/usr/bin/sv restart esme',
refreshonly => true,
}
if $operatingsystem == 'Ubuntu' { if $operatingsystem == 'Ubuntu' {
file { '/var/lib/locales/supported.d/local': file { '/var/lib/locales/supported.d/local':
ensure => present, ensure => present,