Move all shared into this new repo

This commit is contained in:
2020-04-02 15:48:20 -06:00
parent 27307f26f2
commit 66fd90a649
465 changed files with 61143 additions and 0 deletions

View File

@@ -0,0 +1 @@
[mysql]

View File

@@ -0,0 +1,4 @@
[mysqldump]
quick
quote-names
max_allowed_packet = 16M

View File

@@ -0,0 +1,30 @@
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# The MySQL Server configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
log-error = /var/log/mysql/error.log
# By default we only accept connections from localhost
bind-address = 127.0.0.1
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

View File

@@ -0,0 +1,31 @@
---
# We use the official MySQL repositories which contains many versions of MySQL
# All of these versions will be newer than comes stock with debian
# Add MySQL GPG keys
# When I tried to setup this up initially, this pgp.mit.edu site was down
# So following https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
# I downloaded https://dev.mysql.com/downloads/repo/apt/
# and `dpkg -i mysql-apt-config_0.8.10-1_all.deb` instead (selecting mysql 5.7)
# which according to `apt-key list` did indeed install the `A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5` fingerprinted key
- name: Addding MySQL sources GPG key
apt_key: keyserver=pgp.mit.edu id=5072E1F5 state=present
# Add MySQL repositories for Debian 8
- name: Adding MySQL sources for Debian 8 Jessie
apt_repository: repo='deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "8"
# Add MySQL repositories for Debian 9
- name: Adding MySQL sources for Debian 9 Jessie
apt_repository: repo='deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "9"
# Install MySQL 5.7
- name: Installing MySQL 5.7
apt:
update_cache: yes
state: present
name:
- mysql-server
- python-mysqldb # Required for ansible to createdb or createuser

View File

@@ -0,0 +1,6 @@
---
# Oracle MySQL 5.7
# Install Oracle MySQL 5.7 - Debian All Versions
- include_tasks: install-debian.yml
when: ansible_os_family == "Debian"