From 64426292081dee915d91b5495a52bd221cf6315b Mon Sep 17 00:00:00 2001 From: Ciaby Date: Thu, 18 Jun 2015 15:40:57 -0500 Subject: [PATCH] Added basic Hiera configuration --- hiera.yaml | 9 +++++ hieradata/defaults.yaml | 64 ++++++++++++++++++++++++++++++++++++ hieradata/site_template.yaml | 23 +++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 hiera.yaml create mode 100644 hieradata/defaults.yaml create mode 100644 hieradata/site_template.yaml diff --git a/hiera.yaml b/hiera.yaml new file mode 100644 index 0000000..4ebda8a --- /dev/null +++ b/hiera.yaml @@ -0,0 +1,9 @@ +--- +:backends: + - yaml +:hierarchy: + - "%{clientcert}" + - defaults + +:yaml: + :datadir: /etc/puppet/hieradata diff --git a/hieradata/defaults.yaml b/hieradata/defaults.yaml new file mode 100644 index 0000000..040d2e5 --- /dev/null +++ b/hieradata/defaults.yaml @@ -0,0 +1,64 @@ +#Admin config +rhizo::mail_admins: "ciaby@rhizomatica.org tele@rhizomatica.org" +rhizo::smsc_password: "Password" +rhizo::rhizomatica_dir: "/var/rhizomatica" +rhizo::sq_hlr_path: "/var/lib/osmocom/hlr.sqlite3" +rhizo::password_hash: "$6$FM010nsT$FhByUmcQNo4snzPVfbMuTVyVrwmuzwsnsJ/CyUkk7yu7NKNA2zzTCF/UwrK6U4ZDU6KmkSNjtM0UUNBpj4GMo1" + +#PostgreSQL config +rhizo::pgsql_db: "rhizomatica" +rhizo::pgsql_user: "rhizomatica" +rhizo::pgsql_pwd: "rhizomatica" +rhizo::pgsql_host: "localhost" + +#Call limits +rhizo::limit_local_calls: "1" +rhizo::limit_local_minutes: "5" +rhizo::charge_local_calls: "0" +rhizo::charge_local_rate: "" +rhizo::charge_local_rate_type: "" +rhizo::charge_internal_calls: "0" +rhizo::charge_internal_rate: "" +rhizo::charge_internal_rate_type: "" +rhizo::charge_inbound_calls: "0" +rhizo::charge_inbound_rate: "" +rhizo::charge_inbound_rate_type: "" + +#SMS config +rhizo::smsc_shortcode: "10000" +rhizo::sms_sender_unauthorized: "Tu usuario no está autorizado en esta red. Por favor registre su teléfono." +rhizo::sms_destination_unauthorized: "Este usuario no se ha registrado. Él no va a recibir su mensaje." +rhizo::sms_welcome_roaming: "Bienvenido a la red de telefonia movil comunitaria de %s. Ya puedes realizar llamadas y enviar mensajes." +rhizo::sms_credit_added: "La cantidad de %s pesos fue abonado con exito a su cuenta. Su balance actual es %s pesos" + +#RAI user/password +rhizo::rai_admin_user: "admin" +rhizo::rai_admin_pwd: "password" + +#Kannel config +rhizo::kannel_server: "127.0.0.1" +rhizo::kannel_port: "14002" +rhizo::kannel_username: "rhizomatica" +rhizo::kannel_sendsms_password: "123abcde" +rhizo::kannel_admin_password: "123abcde" + +#Monthly subscription messages +rhizo::notice_msg: "Favor de pagar su cooperacion mensual de 40 pesos. Gracias." +rhizo::reminder_msg: "Recuerda: su servicio sera desactivado si no paga su cuota antes del 7 de cada mes. Gracias." +rhizo::deactivate_msg: "Su servicio ha sido desactivado hasta que haga su cooperacion mensual." + +#OpenBSC config +rhizo::max_power_red: "0" + +#SSH keys +sshkeys::keys: + test: + type: 'ssh-rsa' + key: 'PUT_YOUR_SSH_KEY_HERE' + +# SSH users +sshkeys::users: + rhizomatica: + home: /home/rhizomatica + keys: + - test diff --git a/hieradata/site_template.yaml b/hieradata/site_template.yaml new file mode 100644 index 0000000..39d00a8 --- /dev/null +++ b/hieradata/site_template.yaml @@ -0,0 +1,23 @@ +# Site specific info +rhizo::bts1_ip_address: "172.16.0.11" +rhizo::site_name: "Site" +rhizo::postcode: "12345" +rhizo::pbxcode: "1" +rhizo::network_name: "NetworkName" +rhizo::arfcn_A: "249" +rhizo::arfcn_B: "251" +rhizo::auth_policy: "accept-all" +rhizo::vpn_ip_address: "10.66.0.0" +rhizo::wan_ip_address: "192.168.0.0" + +#Emergency call contact +rhizo::emergency_contact: "12345" + +# VoIP provider info +rhizo::voip_provider_name: "provider" +rhizo::voip_username: "1234567890" +rhizo::voip_fromuser: "1234567890" +rhizo::voip_password: "1234" +rhizo::voip_proxy: "10.10.10.10" +rhizo::voip_did: "12345678901" +rhizo::voip_cli: "12345678901"