Commit Graph

22 Commits

Author SHA1 Message Date
Monty Taylor 5369c88ab0 Switch to ssl-mode=DISABLED
ssl=false is deprecated.

Change-Id: I05d82a5dd84cd3d5dc19861645a743b83a9d8f7e
2019-12-18 10:49:47 -05:00
Monty Taylor 8a5cb47fa7 Turn off ssl in my.cnf
We aren't configured with certs, so this is never the right choice.

Change-Id: I1c19fd22298e0e2df8ecf1bbdc193e01ef1a1c6b
2019-12-17 14:17:12 -08:00
OpenDev Sysadmins 96b050cf87 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:25:35 +00:00
Ian Wienand 9193f1d8ac 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: Iaf3b8f65a1dfd021c968a84e11c720c7230513cc
2019-03-24 20:35:41 +00:00
Colleen Murphy bd502ced88 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: Ic35f60eb6f400042e06a778b688287779e996045
2018-07-12 09:57:45 +02:00
Colleen Murphy b306534ff9 Use instance variables in puppet template
Using local ruby variables in puppet ERB templates was deprecated in
puppet 3 and doesn't work any more in puppet 4. Access these values as
ruby instance variables instead.

Change-Id: I6dd414a630de50819e1bed68441c891117386360
2018-04-19 23:17:35 +02:00
Colleen Murphy 79471eb220 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: If280787758be4ef18b1346e66756243d306e2406
2017-08-18 10:41:44 +02:00
Colleen Murphy a0e70b5e81 Update beaker setup for xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: I51e216d6bccc9e7ccf762178bafa0546b1261982
2017-06-11 20:51:54 +02:00
Monty Taylor 320fe64ba8
Use --single-transaction for mysqldump
InnoDB is an MVCC storage engine. This means it does not need to lock
tables in order to do a consistent read of data. Add
--single-transaction to mysqldump invocations to enable this behavior
and stop locking the tables.

Downsides to this - changes made to MyISAM tables may not be consistent
(but for the love of all that is holy we should be storing nothing in
MyISAM and neither should anyone else) and DDL commands will not be
allowed during the backup.

Change-Id: If2ea9e5a25a3cfe30c16cc646463afbd3b2a5ab5
2017-02-15 18:21:26 -06:00
Spencer Krum ec9649b4da Use new infra_spec_helper for gem dependencies
Change-Id: Ia50ba84b6bd2b593daac2220cc9b9aa6811ed186
2016-06-21 18:39:12 -07:00
Spencer Krum d8c2cb2b5e Pin google-api-client; sanitize Gemfile
Change-Id: I9cf70ab9eb7bd6d87b0d02399b9136ebddcc49fc
2016-04-14 15:21:14 -07:00
Andrey Nikitin ec079e793b Order of the classes parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I62834743fbe2a7cc9154c906136f6d38574f8105
2016-03-21 16:36:26 +03:00
Spencer Krum a4806abe06 Fix target path for regular git clone during tests
Use same target directory for zuul-cloner and
the regular git command.

Change-Id: I6545cdf358adbeac070aeacf434f001618153210
Co-Authored-By: Fabien Boucher <fabien.boucher@enovance.com>
2015-08-19 16:40:05 -07:00
Colleen Murphy c8bf03c398 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
gem.

Change-Id: Ideaba35b73a03025c3144fceaf5e7836a985ba11
2015-08-07 13:04:07 -07:00
Spencer Krum 843b8d0580 Boilerplate beaker-rspec files
Change-Id: Iaa3fb9e17b92c0d36fc0883e2a2e48fafb08094f
2015-07-28 02:05:07 -07:00
Jeremy Stanley e47ee960e1 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: I12bea8d5f45cecf375af310c35549daa94dc86c8
2015-05-14 21:38:18 +00:00
Ramy Asselin 64d65e6e52 Rename openstackci to openstackinfra
Change-Id: I06fe217ccd93eb0cf04de7f8ce1a69eac2b78d83
2015-04-20 13:45:38 -07:00
Jeremy Stanley a16ac0abe9 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:58:49 +00:00
Ramy Asselin 0c53a06db9 Add initial puppet module files for mysql_backup
Change-Id: I382807c7fb4891d9304f0d24baa947dd4fab7055
2015-01-29 11:15:27 -08:00
Clark Boylan 27ecc02cab Update etherpad and etherpad puppet manifests.
* manifests/site.pp: Pass new mysql DB variables to
openstack::etherpad*.

* modules/etherpad_lite/manifests/apache.pp: Fix broken /etc/ssl/certs
permissions (0700 -> 0755).

* modules/etherpad_lite/manifests/init.pp: Update default nodejs and
etherpad versions. Remove ep_headings plugin install. New plugin define
should be used for this instead. Stop making the etherpad-lite ref to
checkout optional (defaults to develop). Note these changes are probably
not going to be backward compat.

* modules/etherpad_lite/manifests/plugin.pp: Define to install etherpad
lite plugins.

* modules/etherpad_lite/manifests/site.pp: Simplify DB support and
remove support for the dirty DB type.

* modules/etherpad_lite/templates/etherpad-lite_settings.json.erb: Bring
settings erb up to par with latest template.

* modules/etherpad_lite/templates/etherpadlite.vhost.erb: Update rewrite
rules for new etherpad. Instead of allowing nice pad urls rooted at /
redirect these url to /p/padname. Etherpad does not deal well with a
change in root path as /p/ is hardcoded in many places.

* modules/openstack_project/manifests/etherpad.pp
* modules/openstack_project/manifests/etherpad_dev.pp:
Update to use new etherpad module setup. MySQL DBs are now externally
managed, pass in needed connection info.

* modules/mysql_backup/manifests/backup_remote.pp: New define to backup
remote DB servers.

* modules/mysql_backup/templates/my.cnf.erb: Template for a my.cnf to be
used by the cron in backup_remote.pp. Allows for easy connectivity from
server using MySQL DB as root.

Change-Id: I1250297674b91e81d59cd28c07c52e09967ca548
2013-10-09 16:53:06 -07:00
Clark Boylan f3a9cb739b Make mysql backup crons quiet.
* modules/mysql_backup/manifests/backup.pp: Ignore the mysql.event table
when dumping all databases so that cron jobs are silent and do not
output a warning that this table was not dumped.

Change-Id: I5f7065d4184ca2ecd997bfc3d1beefee47c12acb
2013-08-20 13:05:43 -07:00
Clark Boylan c267aaa7e8 Add new mysql_backup module.
The puppetlabs mysql modules has a backup class which seems to be too
smart for its own good. Create a simple module with a backup define that
allows us to backup specific databases independently.

Change-Id: If8a68b254ab1df61a1c9f99f8484a6ebd2e66944
2013-08-14 16:53:45 -07:00