The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.
Change-Id: I46c786779b8f8d5b7dd836250de10f259744b5b5
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: Ic4c145a4e3b9d35c7938e29a0e139617322850bc
The new resource ordering algorithm in puppet 4 may cause the asterisk
service to be refreshed before the module directories are in place,
which then causes the module reload exec to fail. This patch adds an
explicit ordering to the customdir defined type to ensure that the
module directory exists before the asterisk service is refreshed.
Change-Id: Ic892983476c7da60e4801779dfecc50587a2404d
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.
Change-Id: I180d901bf18409bc249854e1925dba23187d28e8
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
zuul environment.
Change-Id: I8b1d3b1c9f1c750978989c705a9718790855dbb7
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.
Change-Id: I1b69aee1cd8a20a0cb0c4a3cb9ea1886e298fa8d
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.
Change-Id: Ic17314c3ab6c8a7fa7ebaa4d92dcf9470265021a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is needed to migrate pbx.openstack.org to Ubuntu Trusty. The
changes will not affect centos6.
Change-Id: I74094e6777ec768bb1ab3f2d480e3eecdb15c363
Depends-On: Id3fc74bf58ba5febac79674e6fd23d6ade3e4bd1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Use same target directory for zuul-cloner and
the regular git command.
Change-Id: I917eb69d69aad4fe6f102b62640c387da048bdd0
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
Variables with numbers for names are valid as regex capture groups in
puppet 4[1], so this check is not beneficial and can be
counterproductive when we do actually want to have numeric variables.
[1] https://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#naming
Change-Id: I6ff5b68f40ece65101c6f262a3269d25bc1119d7
Discussion following https://review.openstack.org/#/c/200854/ confirmed
that we do want to enforce this check. This patch re-enables the check
and fixes lint errors that fail the check.
Change-Id: I39cdaa5c26668f7815460c489fcde543a57e9a01
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. This patch also
corrects lint errors caught by the puppet-lint-absolute_classname-check
and puppet-lint-empty_string-check gems.
We disable the disable_arrow_alignment check in the Rakefile.
Previously, the system version of puppet-lint that was being run by
'rake lint' was too old to catch this. When using 'bundle exec rake
lint' the gem is new enough to catch this. Whether we want to actually
fix these lint errors is a different discussion, so this patch disables
the check for now.
Change-Id: Ib44f2d6ac941e6fed118a5ff78bddd3d0f0a40b5
The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.
Change-Id: I55f646b79919be94f6bcbf9de87dd5cbde059509
The content of this project is Apache 2 licensed, but we should
include a standard LICENSE file just to be clear about that.
Change-Id: Iee6320b9d7e35fbe8d3b0a9794f3e485c18ef2c8
* modules/asterisk/manifests/init.pp
* modules/jenkins/manifests/master.pp
* modules/jenkins/manifests/slave.pp
* modules/openstack_project/manifests/gerrit.pp
* modules/openstack_project/manifests/jenkins.pp
* modules/openstack_project/manifests/nodepool.pp
* modules/openstack_project/manifests/static.pp: When a directory is
puppet-managed for content using recurse, replace and purge you also
need force or empty subdirectories will fail to be removed. What's
worse, subscribing to that directory will cause a refresh to be
triggered for it on every agent run.
Change-Id: I232d6ba98475522f391f469c194a4450c7a0b2e1
After some more testing with the -infra team, it was found these changes
seem to provide ths best experience within a ConfBridge.
Change-Id: Ibfaa8ede94134e10a699f19913e682e9b042a5ce
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
*Grumble Grumble* Seems the Asterisk packaging from Digium is missing
asterisk functionality, as such we need to remove some modules from
loading otherwise we see the following warnings:
[2013-08-13 17:21:49.911] WARNING[20375] loader.c: Error loading module
'app_setcallerid.so': /usr/lib64/asterisk/modules/app_setcallerid.so:
cannot open shared object file: No such file or directory
[2013-08-13 17:21:49.914] WARNING[20375] loader.c: Error loading module
'codec_speex.so': /usr/lib64/asterisk/modules/codec_speex.so: cannot
open shared object file: No such file or directory
[2013-08-13 17:21:49.916] WARNING[20375] loader.c: Error loading module
'format_sln16.so': /usr/lib64/asterisk/modules/format_sln16.so: cannot
open shared object file: No such file or directory
[2013-08-13 17:21:49.917] WARNING[20375] loader.c: Error loading module
'func_curl.so': /usr/lib64/asterisk/modules/func_curl.so: cannot open
shared object file: No such file or directory
[2013-08-13 17:21:49.920] WARNING[20375] loader.c: Error loading module
'func_speex.so': /usr/lib64/asterisk/modules/func_speex.so: cannot open
shared object file: No such file or directory
[2013-08-13 17:21:49.922] WARNING[20375] loader.c: Error loading module
'res_curl.so': /usr/lib64/asterisk/modules/res_curl.so: cannot open
shared object file: No such file or directory
Change-Id: I0e148d05b1d73967b335912ffa208670003b44c7
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Rather then autoloading everything, we explicitly load what we need. I
find this give the user better control of what is installed by default.
Additionally, upstream (my) puppet modules will likely expect this.
Change-Id: Ib572c54053bd5b5f9a3a513f6f8696db87ea0864
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
I've imported a few puppet scripts from my asterisk package. This
will add reload support to asterisk until I get a chance to update
the module for CentOS.
Change-Id: I6d7f1d7b415de8fc9ccd55e887a6050f2e32f2a7
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Telephone calls are generally 8 kHz. With VoIP, higher sample rates
are possible. G.722 is the most common, which is 16 kHz. Conferencing
supports these higher sample rates, as well. Make sure we have the
higher quality sound prompts installed as well in case we can make use
of them.
While we're at it, install the gsm prompts, as well. That is the low
bandwidth codec currently allowed.
Change-Id: I34921fa6a00720d05113a848bc9f1f94f2200c8b
Set up basic conferencing support. Right now I have reserved 6000-6999
as conference rooms (not that we actually need that many, but whatever).
Change-Id: I9acddf4ffedc7f499740184778b8bd67e5b38a4f
Enable inbound SIP calls. There are a few steps to this.
1) iptables config. Open UDP and TCP port 5060 for SIP, as well as
UDP ports 10000-20000 for RTP.
2) Add a custom sip.conf which makes chan_sip listen on all address, including
IPv4 and IPv6. Also enable unauthenticated inbound calls and send them to the
'public' dialplan context.
3) Create the dialplan. Right now it just plays a sound prompt called 'spam'.
You'll have to call in to find out what it says. Note that this required
installing the extra sounds. There's a bunch of good stuff in there that
may be handy, other than just 'spam'.
Change-Id: I6b62511317603eedf9280b55a00ba5cee0611b62
This commit sets up the basic configuration for Asterisk. It will allow
Asterisk to run, but it won't do anything useful yet.
Change-Id: I7975082ff5351db4dc6e3c8cf9dd2d90675e3108
In addition to installing Asterisk itself, we want to install some sound
packages. This includes a large set of prompts, as well as some music on
hold files.
Change-Id: I197079cb2398f97ae82abf38a18d5cb8c377b5bc
Add the necessary bits to get Asterisk installed on the pbx node.
This is using Asterisk 11 from Digium's repo.
Change-Id: I200789c7ee7fc1fb2e0779a38db2ea35ead998ae