Initial Changes to the manifests, just to get the recipe to run

This commit is contained in:
Keith Whyte 2018-02-13 21:35:33 +00:00
parent 9fbf48c8c6
commit 4b53a58494
4 changed files with 37 additions and 29 deletions

View file

@ -18,25 +18,35 @@ class rhizo_base::apt {
class rhizo_base::apt::common { class rhizo_base::apt::common {
class { '::apt': class { '::apt':
always_apt_update => false, update => {
frequency => 'daily',
},
} }
file { '/etc/apt/apt.conf.d/90unsigned': file { '/etc/apt/apt.conf.d/90unsigned':
ensure => present, ensure => present,
content => 'APT::Get::AllowUnauthenticated "true";', content => 'APT::Get::AllowUnauthenticated "true";',
} }
apt::source { 'rhizomatica': apt::source { 'rhizomatica':
location => 'http://dev.rhizomatica.org/ubuntu/', location => 'http://dev.rhizomatica.org/ubuntu/',
release => 'precise', release => 'precise',
repos => 'main', repos => 'main',
include_src => false, include => {
'src' => false,
'deb' => true,
},
require => File['/etc/apt/apt.conf.d/90unsigned'], require => File['/etc/apt/apt.conf.d/90unsigned'],
} }
apt::source { 'rhizo': apt::source { 'rhizo':
location => 'http://repo.rhizomatica.org/ubuntu/', location => 'http://repo.rhizomatica.org/ubuntu/',
release => 'precise', release => 'precise',
repos => 'main', repos => 'main',
include_src => false, include => {
'src' => false,
'deb' => true,
},
require => File['/etc/apt/apt.conf.d/90unsigned'], require => File['/etc/apt/apt.conf.d/90unsigned'],
} }
@ -48,19 +58,14 @@ class rhizo_base::apt::ubuntu inherits rhizo_base::apt::common {
apt::ppa { 'ppa:ondrej/php': } apt::ppa { 'ppa:ondrej/php': }
apt::ppa { 'ppa:ondrej/apache2': } apt::ppa { 'ppa:ondrej/apache2': }
apt::source { 'icinga':
location => 'https://packages.icinga.org/ubuntu',
release => 'icinga-precise',
repos => 'main',
key_source => 'https://packages.icinga.org/icinga.key',
include_src => false,
}
apt::source { 'nodesource': apt::source { 'nodesource':
location => 'https://deb.nodesource.com/node_0.10', location => 'https://deb.nodesource.com/node_0.10',
release => 'precise', release => 'precise',
repos => 'main', repos => 'main',
key_source => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key' key => {
'id' => '68576280',
'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
}
} }
} }
@ -70,29 +75,36 @@ class rhizo_base::apt::debian inherits rhizo_base::apt::common {
location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/', location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/',
release => 'jessie', release => 'jessie',
repos => 'main', repos => 'main',
include_src => false, key => {
key_source => 'http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub' 'id' => '25E010CF',
'source' => 'http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub'
}
} }
apt::source { 'nodesource': apt::source { 'nodesource':
location => 'https://deb.nodesource.com/node_0.10', location => 'https://deb.nodesource.com/node_0.10',
release => 'jessie', release => 'jessie',
repos => 'main', repos => 'main',
key_source => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key' key => {
'id' => '68576280',
'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
}
} }
apt::source { 'irontec': apt::source { 'irontec':
location => 'http://packages.irontec.com/debian', location => 'http://packages.irontec.com/debian',
release => 'jessie', release => 'jessie',
repos => 'main', repos => 'main',
key_source => 'http://packages.irontec.com/public.key' key => {
'id' => 'D8C20040',
'source' => 'http://packages.irontec.com/public.key'
}
} }
apt::source { 'rhizo-jessie': apt::source { 'rhizo-jessie':
location => 'http://repo.rhizomatica.org/debian/', location => 'http://repo.rhizomatica.org/debian/',
release => 'jessie', release => 'jessie',
repos => 'main', repos => 'main',
include_src => false,
require => File['/etc/apt/apt.conf.d/90unsigned'], require => File['/etc/apt/apt.conf.d/90unsigned'],
} }
@ -100,7 +112,9 @@ class rhizo_base::apt::debian inherits rhizo_base::apt::common {
location => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/', location => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/',
release => './', release => './',
repos => '', repos => '',
include_src => false, key => {
key_source => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key' 'id' => '17280DDF',
'source' => 'http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key'
}
} }
} }

View file

@ -179,4 +179,4 @@ class rhizo_base::freeswitch::common {
require => File['/root/.ssh/bsc_dev'], require => File['/root/.ssh/bsc_dev'],
} }
} }

View file

@ -14,7 +14,6 @@ class rhizo_base {
$mail_admins = hiera('rhizo::mail_admins') $mail_admins = hiera('rhizo::mail_admins')
$smsc_password = hiera('rhizo::smsc_password') $smsc_password = hiera('rhizo::smsc_password')
$kannel_admin_password = hiera('rhizo::kannel_admin_password')
$password_hash = hiera('rhizo::password_hash') $password_hash = hiera('rhizo::password_hash')
# Configuration settings # Configuration settings
@ -85,11 +84,6 @@ class rhizo_base {
$rai_admin_user = hiera('rhizo::rai_admin_user') $rai_admin_user = hiera('rhizo::rai_admin_user')
$rai_admin_pwd = hiera('rhizo::rai_admin_pwd') $rai_admin_pwd = hiera('rhizo::rai_admin_pwd')
$kannel_server = hiera('rhizo::kannel_server')
$kannel_port = hiera('rhizo::kannel_port')
$kannel_username = hiera('rhizo::kannel_username')
$kannel_sendsms_password = hiera('rhizo::kannel_sendsms_password')
# VOIP provider # VOIP provider
$voip_provider_name = hiera('rhizo::voip_provider_name') $voip_provider_name = hiera('rhizo::voip_provider_name')
$voip_username = hiera('rhizo::voip_username') $voip_username = hiera('rhizo::voip_username')
@ -149,7 +143,6 @@ class rhizo_base {
$link5_geo_lon = hiera('rhizo::link5_geo_lon', false) $link5_geo_lon = hiera('rhizo::link5_geo_lon', false)
include ntp include ntp
include kannel
include sshkeys include sshkeys
include rhizo_base::fixes include rhizo_base::fixes
include rhizo_base::apt include rhizo_base::apt
@ -161,6 +154,7 @@ class rhizo_base {
include rhizo_base::lcr include rhizo_base::lcr
include rhizo_base::sudo include rhizo_base::sudo
include rhizo_base::users include rhizo_base::users
if $operatingsystem != 'Debian' { if $operatingsystem != 'Debian' {
include rhizo_base::icinga include rhizo_base::icinga
} }

View file

@ -44,9 +44,9 @@ class rhizo_base::postgresql::debian inherits rhizo_base::postgresql::common {
class { 'postgresql::globals': class { 'postgresql::globals':
manage_package_repo => true, manage_package_repo => true,
version => '9.4', version => '9.6',
}-> }->
class { 'postgresql::server': class { 'postgresql::server':
} }
} }