Test #1 for error free 1st run

This commit is contained in:
Keith Whyte 2018-02-23 11:25:10 +00:00
parent 3326f105f1
commit 53ba6815a3
6 changed files with 36 additions and 43 deletions

View file

@ -19,7 +19,7 @@ class rhizo_base::apt::common {
class { '::apt':
update => {
frequency => 'daily',
frequency => 'weekly',
},
}
@ -72,12 +72,13 @@ class rhizo_base::apt::ubuntu inherits rhizo_base::apt::common {
class rhizo_base::apt::debian inherits rhizo_base::apt::common {
apt::source { 'freeswitch':
location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/',
release => 'jessie',
repos => 'main',
key => {
'id' => '25E010CF',
'source' => 'http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub'
location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/',
release => 'jessie',
repos => 'main',
notify => Exec['apt_update'],
key => {
'id' => '20B06EE621AB150D40F6079FD76EDC7725E010CF',
'source' => 'http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub'
}
}
@ -86,9 +87,9 @@ class rhizo_base::apt::debian inherits rhizo_base::apt::common {
release => 'jessie',
repos => 'main',
key => {
'id' => '68576280',
'id' => '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280',
'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
}
}
}
apt::source { 'irontec':
@ -96,25 +97,26 @@ class rhizo_base::apt::debian inherits rhizo_base::apt::common {
release => 'jessie',
repos => 'main',
key => {
'id' => 'D8C20040',
'id' => '4FF7139B43073A436D8C2C4F90D20F5ED8C20040',
'source' => 'http://packages.irontec.com/public.key'
}
}
}
apt::source { 'rhizo-jessie':
location => 'http://repo.rhizomatica.org/debian/',
release => 'jessie',
repos => 'main',
require => File['/etc/apt/apt.conf.d/90unsigned'],
location => 'http://repo.rhizomatica.org/debian/',
release => 'jessie',
repos => 'main',
require => File['/etc/apt/apt.conf.d/90unsigned'],
}
apt::source { 'osmocom-nightly':
location => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/',
release => './',
repos => '',
key => {
'id' => '17280DDF',
'source' => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/Release.key'
}
location => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/',
release => './',
repos => '',
notify => Exec['apt_update'],
key => {
'id' => '0080689BE757A876CB7DC26962EB1A0917280DDF',
'source' => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/Release.key'
}
}
}

View file

@ -45,8 +45,8 @@ class rhizo_base::freeswitch::debian inherits rhizo_base::freeswitch::common {
require => Class['rhizo_base::apt'],
}
file { '/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so':
source => 'puppet:///modules/rhizo_base/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so',
file { '/usr/lib/freeswitch/mod/mod_g729.so':
source => 'puppet:///modules/rhizo_base/mod_g729.so',
require => Package['freeswitch'],
}
@ -59,6 +59,7 @@ class rhizo_base::freeswitch::debian inherits rhizo_base::freeswitch::common {
ensure => directory,
owner => 'freeswitch',
group => 'freeswitch',
require => Package['freeswitch']
}
systemd::unit_file { 'freeswitch.service':

View file

@ -146,19 +146,19 @@ class rhizo_base {
include sshkeys
include rhizo_base::fixes
include rhizo_base::apt
include rhizo_base::postgresql
include rhizo_base::users
include rhizo_base::packages
include rhizo_base::postgresql
include rhizo_base::freeswitch
include rhizo_base::runit
include rhizo_base::openbsc
include rhizo_base::lcr
include rhizo_base::sudo
include rhizo_base::users
include rhizo_base::kiwi
if $operatingsystem != 'Debian' {
include rhizo_base::icinga
}
include rhizo_base::kiwi
if $vpn_ip_address == $riak_ip_address {
if $operatingsystem != 'Debian' {
@ -183,7 +183,6 @@ class rhizo_base {
value => '1'
}
#Rhizomatica scripts
file { '/home/rhizomatica/bin':
ensure => directory,
@ -224,7 +223,9 @@ class rhizo_base {
ensure => directory,
owner => 'postgres',
group => 'postgres',
require => File['/var/rhizo_backups'],
require => [ File['/var/rhizo_backups'],
Class['rhizo_base::postgresql']
]
}
file { '/var/rhizo_backups/sqlite':

View file

@ -25,12 +25,6 @@ class rhizo_base::openbsc {
$bts3_ip_address = $rhizo_base::bts3_ip_address
$smsc_password = $rhizo_base::smsc_password
package { [ 'libsmpp0', ]:
ensure => latest,
require => Class['rhizo_base::apt'],
notify => [ Exec['notify-nitb'] ],
}
package { [ 'osmocom-nitb' ]:
ensure => 'latest',
require => Class['rhizo_base::apt'],
@ -38,7 +32,7 @@ class rhizo_base::openbsc {
Exec['notify-nitb'] ],
}
package { [ 'libosmoabis3',
package { [ 'libsmpp34-0', 'libosmoabis3',
'libosmoctrl0',
'libosmogsm6', 'libosmogsm7',
'libosmovty3',
@ -50,6 +44,7 @@ class rhizo_base::openbsc {
'libosmo-sccp-dbg', 'libosmo-sccp-dev',
'libosmocodec0', 'libosmocore',
'libosmocore-dbg', 'libosmocore-dev',
'libosmocore6', 'libosmogsm5',
'libosmocore-utils', 'libosmogb3',
'libosmonetif2', 'libosmosim0',
'libosmotrau0']:

View file

@ -14,13 +14,8 @@ class rhizo_base::packages {
include "rhizo_base::packages::$operatingsystem"
}
class rhizo_base::packages::common {
package { [ 'python-python-smpplib' ]:
ensure => purged
}
package { ['mosh', 'git', 'openvpn', 'lm-sensors', 'runit-systemd', 'sqlite3',
'libffi-dev', 'apcupsd', 'expect', 'gawk', 'swig', 'g++',
'libcdk5' , 'sngrep', 'rrdtool', 'dnsmasq', 'joe',
@ -29,7 +24,6 @@ class rhizo_base::packages::common {
ensure => installed,
require => Class['rhizo_base::apt'],
}
}
class rhizo_base::packages::ubuntu inherits rhizo_base::packages::common {