Add Meas-Web Installation

This commit is contained in:
Keith Whyte 2018-03-01 17:57:15 +00:00
parent a9319f3d90
commit 1f1db0f869
3 changed files with 28 additions and 1 deletions

View file

@ -249,6 +249,15 @@ class rhizo_base {
Exec['restart-apache'] ],
}
vcsrepo { '/var/meas_web':
ensure => latest,
provider => git,
source => 'https://github.com/whyteks/meas_web.git',
revision => 'master',
require => [ Package['git'] ],
notify => [ Exec['restart-meas'] ],
}
file { '/var/rhizomatica/bin/get_account_balance.sh':
ensure => present,
content => template('rhizo_base/get_account_balance.sh.erb'),
@ -328,6 +337,11 @@ class rhizo_base {
refreshonly => true,
}
exec { 'restart-meas':
command => '/usr/bin/sv restart meas-web',
refreshonly => true,
}
if $operatingsystem == 'Ubuntu' {
file { '/var/lib/locales/supported.d/local':
ensure => present,
@ -347,7 +361,13 @@ class rhizo_base {
target => '/var/rhizomatica/rccn/log',
require => [ Vcsrepo['/var/rhizomatica'] ],
}
file { '/var/www/meas':
ensure => link,
target => '/var/meas_web/usr/share/fairwaves-meas-web/',
require => [ Vcsrepo['/var/meas_web'] ],
}
file { '/var/www/html/rai':
ensure => link,
target => '/var/rhizomatica/rai',