Add Meas-Web Installation
This commit is contained in:
parent
a9319f3d90
commit
1f1db0f869
3 changed files with 28 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue