Commit Graph

7 Commits

Author SHA1 Message Date
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
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
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
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
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