From 3b18e931316732940f05d29308e10e0798a3f0b1 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 16 Jul 2013 17:03:58 -0400 Subject: [PATCH] Add a skeleton asterisk server. This commit adds a bare server that will be updated to become an Asterisk server. Change-Id: If54badab3269d8c8ce504f8bfcb0e5f79eeaeb69 --- doc/source/asterisk.rst | 25 +++++++++++++++++ manifests/site.pp | 6 ++++ modules/openstack_project/manifests/pbx.pp | 32 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 doc/source/asterisk.rst create mode 100644 modules/openstack_project/manifests/pbx.pp diff --git a/doc/source/asterisk.rst b/doc/source/asterisk.rst new file mode 100644 index 0000000000..88a84db36e --- /dev/null +++ b/doc/source/asterisk.rst @@ -0,0 +1,25 @@ +:title: Asterisk + +.. _asterisk: + +Asterisk +######## + +A telephony server. + +At a Glance +=========== + +:Hosts: + * http://pbx.openstack.org +:Projects: + * http://www.asterisk.org +:Bugs: + * http://bugs.launchpad.net/openstack-ci + * http://issues.asterisk.org + +Overview +======== + +This is a CentOS 6 system that runs Asterisk, a telephony server. It is used +as a conferencing server for the OpenStack project. diff --git a/manifests/site.pp b/manifests/site.pp index cf50e6cee1..fe19adbf2a 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -322,6 +322,12 @@ node 'zuul-dev.openstack.org' { } } +node 'pbx.openstack.org' { + class { 'openstack_project::pbx': + sysadmins => hiera('sysadmins'), + } +} + # A bare machine, but with a jenkins user node /^.*\.template\.openstack\.org$/ { include openstack_project::slave_template diff --git a/modules/openstack_project/manifests/pbx.pp b/modules/openstack_project/manifests/pbx.pp new file mode 100644 index 0000000000..1a312a0f06 --- /dev/null +++ b/modules/openstack_project/manifests/pbx.pp @@ -0,0 +1,32 @@ +# Copyright 2013 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# Class to configure asterisk on a CentOS node. +# +# == Class: openstack_project::pbx +class openstack_project::pbx ( + $sysadmins = [], +) { + class { 'openstack_project::server': + sysadmins => $sysadmins, + } + + class { 'selinux': + mode => 'enforcing', + } + + realize ( + User::Virtual::Localuser['rbryant'], + ) +}