Added modules

This commit is contained in:
Ciaby 2014-07-11 13:30:23 -05:00
parent c53c931217
commit 59ec520742
646 changed files with 35182 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>rhizomatica_base_system</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.puppetlabs.geppetto.pp.dsl.ui.modulefileBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.puppetlabs.geppetto.pp.dsl.ui.puppetNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,11 @@
name 'rhizomatica_base_system'
version '0.1.0'
source ''
author ''
license ''
summary ''
description ''
project_page ''
## Add dependencies, if any:
# dependency 'username/name', '>= 1.2.0'

View file

@ -0,0 +1,3 @@
# rhizomatica_base_system #
This is the rhizomatica_base_system module. It provides...

View file

@ -0,0 +1,2 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'

View file

@ -0,0 +1,120 @@
# Class: rhizomatica_base_system
#
# This module manages rhizomatica_base_system
#
# Parameters: none
#
# Actions:
#
# Requires: see Modulefile
#
# Sample Usage:
#
class rhizomatica_base_system {
$vpn_address = hiera('rhizo::vpn_address')
$postgresql_password = hiera('rhizo::postgresql_password')
$smsc_password= hiera('rhizo::smsc_password')
$kannel_admin_password = ('rhizo::kannel_admin_password')
$kannel_sendsms_password = hiera('rhizo::kannel_sendsms_password')
include 'ntp'
include 'kannel'
class { 'apt': }
apt::source { 'rhizomatica':
location => 'http://dev.rhizomatica.org/ubuntu/',
release => 'precise',
repos => 'main',
include_src => false,
require => File['/etc/apt/apt.conf.d/90unsigned'],
}
apt::source { 'mosh':
location => 'http://ppa.launchpad.net/keithw/mosh/ubuntu',
release => 'precise',
repos => 'main',
key => '7BF6DFCD',
include_src => false,
require => File['/etc/apt/apt.conf.d/90unsigned'],
}
file { '/etc/apt/apt.conf.d/90unsigned':
ensure => present,
content => 'APT::Get::AllowUnauthenticated "true";',
}
# file { '/var/rhizomatica':
# ensure => directory,
# }
file { '/var/www/rmai':
ensure => link,
target => '/var/rhizomatica/rmai',
}
class { 'postgresql::globals':
manage_package_repo => true,
version => '9.3',
}->
class { 'postgresql::server':
}
postgresql::server::db { 'rhizomatica':
user => 'rhizomatica',
password => postgresql_password('rhizomatica', $postgresql_password),
}
package { 'openvpn':
ensure => installed,
}
package { 'lm-sensors':
ensure => installed,
}
class { 'riak':
version => '1.4.7-1',
template => 'rhizomatica_base_system/app.config.erb',
vmargs_template => 'rhizomatica_base_system/vm.args.erb',
}
class { 'python':
version => 'system',
pip => true,
dev => true,
}
python::pip { 'riak':
ensure => present,
}
package { ['apache2','libapache2-mod-php5', 'rrdtool', 'python-twisted-web', 'python-psycopg2', 'python-pysqlite2',
'php5', 'php5-pgsql', 'php5-curl', 'python-corepost']:
ensure => installed,
}
package { ['freeswitch', 'freeswitch-lang-en', 'freeswitch-mod-amr', 'freeswitch-mod-amrwb', 'freeswitch-mod-b64',
'freeswitch-mod-bv', 'freeswitch-mod-cdr-pg-csv', 'freeswitch-mod-cluechoo', 'freeswitch-mod-commands',
'freeswitch-mod-conference', 'freeswitch-mod-console', 'freeswitch-mod-db', 'freeswitch-mod-dialplan-asterisk',
'freeswitch-mod-dialplan-xml', 'freeswitch-mod-dptools', 'freeswitch-mod-enum', 'freeswitch-mod-esf',
'freeswitch-mod-event-socket','freeswitch-mod-expr', 'freeswitch-mod-fifo','freeswitch-mod-fsv',
'freeswitch-mod-g723-1', 'freeswitch-mod-g729', 'freeswitch-mod-h26x', 'freeswitch-mod-hash',
'freeswitch-mod-httapi', 'freeswitch-mod-local-stream', 'freeswitch-mod-logfile', 'freeswitch-mod-loopback',
'freeswitch-mod-lua', 'freeswitch-mod-native-file', 'freeswitch-mod-python', 'freeswitch-mod-say-en',
'freeswitch-mod-say-es', 'freeswitch-mod-sms', 'freeswitch-mod-sndfile', 'freeswitch-mod-sofia',
'freeswitch-mod-spandsp', 'freeswitch-mod-speex', 'freeswitch-mod-syslog', 'freeswitch-mod-tone-stream',
'freeswitch-mod-voicemail', 'freeswitch-mod-voicemail-ivr', 'freeswitch-mod-vp8', 'freeswitch-mod-xml-cdr',
'freeswitch-sysvinit', 'libfreeswitch1']:
ensure => installed,
require => [ Apt::Source['rhizomatica'], File['/etc/apt/apt.conf.d/90unsigned'] ],
}
package { ['osmocom-nitb', 'osmocom-nitb-dbg']:
ensure => installed,
require => Apt::Source['rhizomatica'],
}
}

View file

@ -0,0 +1,13 @@
{
"name": "rhizomatica_base_system",
"version": "0.1.0",
"summary": "",
"author": "",
"description": "",
"dependencies": [],
"types": [],
"checksums": {},
"source": "",
"project_page": "",
"license": ""
}

View file

@ -0,0 +1,6 @@
--format
s
--colour
--loadby
mtime
--backtrace

View file

@ -0,0 +1,2 @@
require 'rubygems'
require 'puppetlabs_spec_helper/module_spec_helper'

View file

@ -0,0 +1,85 @@
[
{bitcask, [
{data_root, "/var/lib/riak/bitcask"}
]},
{eleveldb, [
{data_root, "/var/lib/riak/leveldb"}
]},
{kernel, [
{inet_dist_listen_max, 7999},
{inet_dist_listen_min, 6000}
]},
{lager, [
{crash_log, "/var/log/riak/crash.log"},
{crash_log_count, 5},
{crash_log_date, "$D0"},
{crash_log_msg_side, 65536},
{crash_log_size, 10485760},
{error_logger_redirect, true},
{handlers, [
{lager_file_backend, [
{"/var/log/riak/error.log", error, 10485760, "$D0", 5},
{"/var/log/riak/console.log", info, 10485760, "$D0", 5}
]}
]}
]},
{merge_index, [
{buffer_rollover_size, 1048576},
{data_root, "/var/lib/riak/merge_index"},
{max_compact_segments, 20}
]},
{riak_api, [
{pb_ip, "127.0.0.1"},
{pb_port, 8087}
]},
{riak_control, [
{admin, true},
{auth, "userlist"},
{enabled, false},
{userlist, {"user", "pass"}}
]},
{riak_core, [
{dtrace_support, false},
{handoff_port, 8099},
{http, [
{"127.0.0.1", 8098}
]},
{platform_bin_dir, "/usr/sbin"},
{platform_data_dir, "/var/lib/riak"},
{platform_etc_dir, "/etc/riak"},
{platform_lib_dir, "/usr/lib/riak"},
{platform_log_dir, "/var/log/riak"},
{ring_creation_size, 64},
{ring_state_dir, "/var/lib/riak/ring"}
]},
{riak_kv, [
{hook_js_vm_count, 2},
{http_url_encoding, on},
{js_max_vm_mem, 8},
{js_thread_stack, 16},
{legacy_keylisting, false},
{listkeys_backpressure, true},
{map_js_vm_count, 8},
{mapred_2i_pipe, true},
{mapred_name, "mapred"},
{mapred_system, "pipe"},
{reduce_js_vm_count, 6},
{storage_backend, riak_kv_bitcask_backend},
{vnode_vclocks, true}
]},
{riak_search, [
{enabled, false}
]},
{riak_sysmon, [
{busy_dist_port, true},
{busy_port, true},
{gc_ms_limit, 100},
{heap_word_limit, 40111000},
{post_limit, 2},
{process_limit, 20}
]},
{sasl, [
{sasl_error_logger, false},
{utc_log, true}
]}
].

View file

@ -0,0 +1,8 @@
+A 64
+K true
-env ERL_CRASH_DUMP /var/log/riak/erl_crash.dmp
-env ERL_MAX_PORTS 4096
-ip <%= @vpn_address %>
-name riak@<%= @vpn_address %>
-setcookie riak
-smp enable

View file

@ -0,0 +1 @@
include rhizomatica_base_system