Commit Graph

36 Commits

Author SHA1 Message Date
Clark Boylan 56f87fa040 Retire this repo
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
2022-02-17 11:28:58 -08:00
OpenDev Sysadmins dc6cfc3bcd OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:01 +00:00
Ian Wienand c657851ca0 Replace openstack.org git:// URLs with https://
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
2019-03-24 20:35:36 +00:00
Colleen Murphy 327523ddd8 Ensure asterisk refresh happens last
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
2018-09-11 23:57:58 +02:00
Colleen Murphy db3962c1a0 Add beaker tests
Add tests to ensure the asterisk class can be applied correctly and the
service can start.

Change-Id: I9714e040d6c73e7b0e8ce5d9fe91f2674214efa6
2018-07-11 14:16:33 +02:00
Colleen Murphy 1211b073a3 Update Gemfile for Zuulv3
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
2018-07-10 15:02:22 +02:00
Colleen Murphy b13391ded3 Depend on helper gem for spec_helper_acceptance
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
2017-08-18 10:41:43 +02:00
Colleen Murphy ebb0381dea Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I1b69aee1cd8a20a0cb0c4a3cb9ea1886e298fa8d
2017-06-24 15:31:08 +02:00
Paul Belanger 5dd3bfc9ca
Add bindep.txt file
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>
2017-05-01 21:05:22 -04:00
Spencer Krum f095058723 Use new infra_spec_helper for gem dependencies
Change-Id: I8af0205f4d9c29e02223c52b7133de1da52d65c3
2016-06-21 18:37:41 -07:00
Spencer Krum 806b8db0e8 Pin google-api-client; sanitize Gemfile
Change-Id: I03d4e0a466ebd857668f085528a6d4d24f514f80
2016-04-14 15:17:04 -07:00
Paul Belanger ede8d4980e Add support for Ubuntu
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>
2015-12-02 17:01:35 -05:00
Spencer Krum 086171c8d4 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I917eb69d69aad4fe6f102b62640c387da048bdd0
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:34:18 -07:00
Jenkins 21c9a0737c Merge "Remove invalid comment" 2015-08-06 00:12:39 +00:00
Spencer Krum 517a6e772f Boilerplate beaker-rspec files
Change-Id: I33f64dddadecc1ed3ff4a3f714ff99da36b4f3cf
2015-07-28 02:03:49 -07:00
Paul Belanger 0e68eea5af Remove invalid comment
Change-Id: Iae65fd408e46491b4e4f9ee3a23c388f2286a90f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-24 12:53:21 -04:00
Colleen Murphy 5674df86db Remove puppet-lint-numericvariable gem
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
2015-07-21 19:40:55 -07:00
Colleen Murphy 2ecd9d71f9 Enable arrow alignment lint check
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
2015-07-14 19:20:25 -07:00
Colleen Murphy 140508f8a0 Add Gemfile and puppet 4 checks
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
2015-07-11 18:42:28 -07:00
Jeremy Stanley 885d35d54f Replace ci.o.o links with docs.o.o/infra
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
2015-05-14 21:38:17 +00:00
Ramy Asselin 181d15a7a7 Rename openstackci to openstackinfra
Change-Id: Id8da81ef1881091f788b078f7ca5b7038d048b4e
2015-04-20 13:42:46 -07:00
Jeremy Stanley 6c9d9c2305 Add missing LICENSE file
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
2015-01-29 22:56:30 +00:00
Ramy Asselin 56bb64efb9 Add boilerplate files for Asterisk puppet module
Change-Id: I667bb01fe4c66a2b2687e1ff906f6522416e5370
2015-01-28 15:27:46 -08:00
Monty Taylor c7287b257d Remove extra g722 sounds
They do not actually exist in the yum repos

Change-Id: I77f4bec9aa236f8080550622b04af496642b4415
2014-03-23 08:40:18 -07:00
Jeremy Stanley 8b731d140e Use force when purging
* 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
2013-12-05 18:38:04 +00:00
Paul Belanger 019abe5a04 Relax silence threshold for ConfBridge
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>
2013-10-17 15:12:49 -04:00
Paul Belanger db30ae275f Clean up warning messages for asterisk
*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>
2013-08-13 13:29:21 -04:00
Paul Belanger bde8895505 Invert modules.conf logic
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>
2013-07-26 13:17:55 +00:00
Paul Belanger a343b814f1 Add reload support to Asterisk
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>
2013-07-25 17:40:45 +00:00
Russell Bryant 18b4852926 Install additional sound prompts
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
2013-07-18 14:44:51 -04:00
Russell Bryant 40fa91c46a Enable basic conferencing support
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
2013-07-18 14:44:51 -04:00
Russell Bryant 2f9bb520e7 Enable inbound SIP calls
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
2013-07-18 14:44:51 -04:00
Russell Bryant b00f67a5dc Set up basic Asterisk configuration
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
2013-07-18 14:44:51 -04:00
Russell Bryant 039f5bd5da Ensure asterisknow-version is installed before asterisk
Change-Id: Ied523d40c9ec670f6ca1d0ca30adaa59b489e784
2013-07-18 14:44:51 -04:00
Russell Bryant 4f9a82955b Install Asterisk sounds
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
2013-07-17 13:11:39 -04:00
Russell Bryant 064f5d5708 Install Asterisk
Add the necessary bits to get Asterisk installed on the pbx node.
This is using Asterisk 11 from Digium's repo.

Change-Id: I200789c7ee7fc1fb2e0779a38db2ea35ead998ae
2013-07-17 13:11:39 -04:00