Initial refactoring
Renamed rhizomatica_base_system to rhizo_base Split up the init.pp in different subclasses More work to follow
This commit is contained in:
parent
7b938abede
commit
1c7dffc32a
192 changed files with 547 additions and 430 deletions
32
modules/rhizo_base/manifests/openbsc.pp
Normal file
32
modules/rhizo_base/manifests/openbsc.pp
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Class: rhizo_base::openbsc
|
||||
#
|
||||
# This module manages the OpenBSC system
|
||||
#
|
||||
# Parameters: none
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
# Requires: see Modulefile
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
class rhizo_base::openbsc {
|
||||
package { ['osmocom-nitb', 'osmocom-nitb-dbg',
|
||||
'libdbd-sqlite3', 'libsmpp0']:
|
||||
ensure => installed,
|
||||
require => Class['rhizo_base::apt'],
|
||||
notify => Exec['hlr_pragma_wal'],
|
||||
}
|
||||
|
||||
file { '/etc/osmocom/osmo-nitb.cfg':
|
||||
content => template('rhizo_base/osmo-nitb.cfg.erb'),
|
||||
require => Package['osmocom-nitb'],
|
||||
}
|
||||
|
||||
exec { 'hlr_pragma_wal':
|
||||
command =>
|
||||
'/usr/bin/sqlite3 /var/lib/osmocom/hlr.sqlite3 "PRAGMA journal_mode=wal;"',
|
||||
require => Class['rhizo_base::packages'],
|
||||
refreshonly => true,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue