Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mysql-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
mysql-formula
Commits
4b4ad882
Unverified
Commit
4b4ad882
authored
5 years ago
by
N
Browse files
Options
Downloads
Patches
Plain Diff
feat(linux): archlinux support (no osmajorrelase grain)
parent
5d42846e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
mysql/osfamilymap.yaml
+4
-4
4 additions, 4 deletions
mysql/osfamilymap.yaml
mysql/osmap.yaml
+1
-1
1 addition, 1 deletion
mysql/osmap.yaml
mysql/repo.sls
+1
-1
1 addition, 1 deletion
mysql/repo.sls
mysql/server.sls
+1
-1
1 addition, 1 deletion
mysql/server.sls
with
7 additions
and
7 deletions
mysql/osfamilymap.yaml
+
4
−
4
View file @
4b4ad882
...
...
@@ -2,7 +2,7 @@
#
Debian
:
{
%
if salt
[
'
grains.get'
]
('osmajorrelease')|int >= 9 %
}
{
%
if
'osmajorrelease' in grains and
salt
[
'
grains.get'
]
('osmajorrelease')|int >= 9 %
}
serverpkg
:
mariadb-server
service
:
mariadb
clientpkg
:
mariadb-client
...
...
@@ -42,13 +42,13 @@ Debian:
key_buffer_size
:
16M
append
:
|
!includedir /etc/mysql/conf.d/
# {% if salt['grains.get']('osmajorrelease')|int >= 9 -%}
# {% if
'osmajorrelease' in grains and
salt['grains.get']('osmajorrelease')|int >= 9 -%}
# !includedir /etc/mysql/mariadb.conf.d/
# {%- endif %}
RedHat
:
#https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
{
%
- if salt
[
'
grains.get'
]
('osmajorrelease')|int in
[
7
]
%
}
{
%
- if
'osmajorrelease' in grains and
salt
[
'
grains.get'
]
('osmajorrelease')|int in
[
7
]
%
}
{
%
set fork = 'mariadb' %
}
serverpkg
:
mariadb-server
service
:
mariadb
...
...
@@ -75,7 +75,7 @@ RedHat:
Suse
:
serverpkg
:
mariadb
clientpkg
:
mariadb-client
{
%
- if salt
[
'
grains.get'
]
('osmajorrelease')|int == 42 %
}
{
%
- if
'osmajorrelease' in grains and
salt
[
'
grains.get'
]
('osmajorrelease')|int == 42 %
}
# "old" package name up to Leap 42.x
pythonpkg
:
python-PyMySQL
{% else %}
...
...
This diff is collapsed.
Click to expand it.
mysql/osmap.yaml
+
1
−
1
View file @
4b4ad882
...
...
@@ -24,7 +24,7 @@ Ubuntu:
CentOS
:
# https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
{
%
- if salt
[
'
grains.get'
]
('osmajorrelease')|int in
[
7
]
%
}
{
%
- if
'osmajorrelease' in grains and
salt
[
'
grains.get'
]
('osmajorrelease')|int in
[
7
]
%
}
{
%
set fork = 'mariadb' %
}
{
%
set service = 'mariadb' %
}
{
%
- else %
}
...
...
This diff is collapsed.
Click to expand it.
mysql/repo.sls
+
1
−
1
View file @
4b4ad882
...
...
@@ -6,7 +6,7 @@ include:
# Completely ignore non-RHEL based systems
# TODO: Add Debian and Suse systems.
# TODO: Allow user to specify MySQL version and alter yum repo file accordingly.
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
and `osmajorrelease` in grains
%}
{% if grains['osmajorrelease']|int == 5 %}
{% set rpm_source = "http://repo.mysql.com/mysql57-community-release-el5.rpm" %}
{% elif grains['osmajorrelease']|int == 6 %}
...
...
This diff is collapsed.
Click to expand it.
mysql/server.sls
+
1
−
1
View file @
4b4ad882
...
...
@@ -29,7 +29,7 @@ mysql_debconf:
- require:
- pkg: mysql_debconf_utils
{% if salt['grains.get']('osmajorrelease')|int < 9 or not salt['grains.get']('os')|lower == 'debian' %}
{% if
'osmajorrelease' in grains and
salt['grains.get']('osmajorrelease')|int < 9 or not salt['grains.get']('os')|lower == 'debian' %}
mysql_password_debconf:
debconf.set:
...
...
This diff is collapsed.
Click to expand it.
Jan Philipp Timme
@timmej
mentioned in commit
c5751112
·
5 years ago
mentioned in commit
c5751112
mentioned in commit c57511124d73b429154dcfa141752c1d861606ff
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment