Commit graph

598 commits

Author SHA1 Message Date
Imran Iqbal
26743c1db4
Merge pull request #231 from myii/ci/merge-matrix-and-add-salt-lint-and-rubocop
ci: merge travis matrix, add `salt-lint` & `rubocop` to `lint` job
2019-10-09 23:50:00 +01:00
Imran Iqbal
00494d5e58 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Semi-automated using https://github.com/myii/ssf-formula/pull/60
2019-10-09 14:40:12 +01:00
Imran Iqbal
a014e5539b
fix(user.sls): fix salt-lint errors
```bash
Examining mysql/user.sls of type state
[202] Jinja statement should have spaces before and after: {% statement %}
mysql/user.sls:35
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host%}

[206] Jinja variables should have spaces before and after: {{ var_name }}
mysql/user.sls:100
    - grant: {{db['grants']|join(",")}}
```
2019-10-09 14:36:20 +01:00
Imran Iqbal
764dd0c489
fix(server.sls): fix salt-lint errors
```bash
Examining mysql/server.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
mysql/server.sls:119
    - creates: {{ mysql_datadir}}/mysql/

[206] Jinja variables should have spaces before and after: {{ var_name }}
mysql/server.sls:141
    - creates: {{ mysql_datadir}}/mysql/
```
2019-10-09 14:36:20 +01:00
Imran Iqbal
b2b88631c7 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Automated using https://github.com/myii/ssf-formula/pull/60
2019-10-08 16:37:13 +01:00
Imran Iqbal
80f79c92a5 chore(yamllint): update ignored paths and add octal-values [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/59
2019-10-07 19:31:50 +01:00
Imran Iqbal
3b34955b31 chore(issues): update Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/58
2019-10-07 15:25:53 +01:00
Imran Iqbal
8b89ebcee7 ci(kitchen): install required packages to bootstrapped opensuse [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/53
2019-10-02 00:07:21 +01:00
Imran Iqbal
4bdaab7f31 ci(kitchen): use bootstrapped opensuse images until 2019.2.2 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/52
2019-10-01 21:33:40 +01:00
Imran Iqbal
5c20c9b57c ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:20:18 +01:00
Imran Iqbal
e6bc70bf02 chore(issues): provide Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/48
2019-09-30 15:57:54 +01:00
Imran Iqbal
75fd8dc929 ci(kitchen): change log_level to debug instead of info
* Automated using https://github.com/myii/ssf-formula/pull/41
2019-09-23 16:59:37 +01:00
Imran Iqbal
70e5b435d6
Merge pull request #228 from myii/chore/standardise-structure
ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
2019-09-14 23:36:30 +01:00
Imran Iqbal
2322ff67fd
ci(yamllint): add rule empty-values & use new yaml-files setting
* Semi-automated using https://github.com/myii/ssf-formula/pull/27
* Fix (or ignore) errors shown below:

```bash
mysql-formula$ yamllint -s .
./mysql/osfamilymap.yaml
  46:14     error    empty value in block mapping  (empty-values)
  66:14     error    empty value in block mapping  (empty-values)
  67:14     error    empty value in block mapping  (empty-values)
  68:16     error    empty value in block mapping  (empty-values)
  69:17     error    empty value in block mapping  (empty-values)
  70:16     error    empty value in block mapping  (empty-values)
  87:7      error    empty value in block mapping  (empty-values)
  216:14    error    empty value in block mapping  (empty-values)
  217:17    error    empty value in block mapping  (empty-values)

./mysql/defaults.yaml
  29:10     error    empty value in block mapping  (empty-values)
  30:11     error    empty value in block mapping  (empty-values)
```
2019-09-14 23:25:34 +01:00
Niels Abspoel
ef36766661
Merge pull request #227 from myii/chore/standardise-structure
ci: use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround
2019-09-08 21:44:24 +02:00
Imran Iqbal
05b1cef68f ci: use dist: bionic & apply opensuse-leap-15 SCP error workaround
* Automated using https://github.com/myii/ssf-formula/pull/22
2019-09-07 03:36:01 +01:00
semantic-release-bot
4a9a2a1ab5 chore(release): 0.52.0 [skip ci]
# [0.52.0](https://github.com/saltstack-formulas/mysql-formula/compare/v0.51.0...v0.52.0) (2019-08-17)

### Features

* **yamllint:** include for this repo and apply rules throughout ([9f739fa](https://github.com/saltstack-formulas/mysql-formula/commit/9f739fa))
2019-08-17 09:04:53 +00:00
Niels Abspoel
755d916ad3
Merge pull request #225 from myii/chore/standardise-structure
feat(yamllint): include for this repo and apply rules throughout
2019-08-17 09:51:05 +02:00
Imran Iqbal
9f739fa8b4
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix (or ignore) errors shown below:

```bash
mysql-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./mysql/osfamilymap.yaml
  4:1       warning  missing document start "---"  (document-start)
  5:6       error    syntax error: found character '%' that cannot start any token
  94:17     error    trailing spaces  (trailing-spaces)
  191:89    error    line too long (90 > 88 characters)  (line-length)

./mysql/defaults.yaml
  3:1       warning  missing document start "---"  (document-start)
  7:4       error    syntax error: found character '%' that cannot start any token
  44:89     error    line too long (93 > 88 characters)  (line-length)
  51:89     error    line too long (111 > 88 characters)  (line-length)
  58:89     error    line too long (104 > 88 characters)  (line-length)
  65:89     error    line too long (103 > 88 characters)  (line-length)
  71:89     error    line too long (95 > 88 characters)  (line-length)
  77:89     error    line too long (102 > 88 characters)  (line-length)
  83:89     error    line too long (101 > 88 characters)  (line-length)
  86:89     error    line too long (95 > 88 characters)  (line-length)
  90:89     error    line too long (95 > 88 characters)  (line-length)

./mysql/supported_sections.yaml
  2:2       error    syntax error: found character '%' that cannot start any token

./mysql/osmap.yaml
  4:4       error    syntax error: found character '%' that cannot start any token
  7:89      error    line too long (96 > 88 characters)  (line-length)
  8:89      error    line too long (97 > 88 characters)  (line-length)

pillar.example
  1:1       warning  missing document start "---"  (document-start)
  36:8      error    wrong indentation: expected 8 but found 7  (indentation)
  77:16     warning  truthy value should be one of [false, true]  (truthy)
  80:13     warning  truthy value should be one of [false, true]  (truthy)
  83:13     warning  truthy value should be one of [false, true]  (truthy)
  85:13     warning  truthy value should be one of [false, true]  (truthy)
  89:13     warning  truthy value should be one of [false, true]  (truthy)
  96:13     warning  truthy value should be one of [false, true]  (truthy)
  112:19    warning  truthy value should be one of [false, true]  (truthy)
  117:17    warning  too few spaces before comment  (comments)
  118:12    warning  truthy value should be one of [false, true]  (truthy)
  119:17    warning  truthy value should be one of [false, true]  (truthy)
  130:25    warning  truthy value should be one of [false, true]  (truthy)
  131:19    warning  truthy value should be one of [false, true]  (truthy)
  153:16    warning  truthy value should be one of [false, true]  (truthy)
  166:14    warning  truthy value should be one of [false, true]  (truthy)
  171:18    warning  truthy value should be one of [false, true]  (truthy)
  172:89    error    line too long (93 > 88 characters)  (line-length)
  175:18    warning  truthy value should be one of [false, true]  (truthy)
  176:89    error    line too long (111 > 88 characters)  (line-length)
  179:18    warning  truthy value should be one of [false, true]  (truthy)
  179:26    warning  missing starting space in comment  (comments)
  180:89    error    line too long (104 > 88 characters)  (line-length)
  183:18    warning  truthy value should be one of [false, true]  (truthy)
  183:26    warning  missing starting space in comment  (comments)
  184:89    error    line too long (103 > 88 characters)  (line-length)
  187:18    warning  truthy value should be one of [false, true]  (truthy)
  187:26    warning  missing starting space in comment  (comments)
  188:89    error    line too long (95 > 88 characters)  (line-length)
  191:18    warning  truthy value should be one of [false, true]  (truthy)
  191:26    warning  missing starting space in comment  (comments)
  192:89    error    line too long (102 > 88 characters)  (line-length)
  195:18    warning  truthy value should be one of [false, true]  (truthy)
  195:26    warning  missing starting space in comment  (comments)
  196:89    error    line too long (101 > 88 characters)  (line-length)
  199:18    warning  truthy value should be one of [false, true]  (truthy)
  199:26    warning  missing starting space in comment  (comments)
  200:89    error    line too long (95 > 88 characters)  (line-length)
  203:18    warning  truthy value should be one of [false, true]  (truthy)
  203:26    warning  missing starting space in comment  (comments)
  204:89    error    line too long (95 > 88 characters)  (line-length)
  207:18    warning  truthy value should be one of [false, true]  (truthy)
  207:26    warning  missing starting space in comment  (comments)
  211:18    warning  truthy value should be one of [false, true]  (truthy)
  211:26    warning  missing starting space in comment  (comments)
  214:1     error    too many blank lines (1 > 0)  (empty-lines)

test/salt/pillar/mysql.sls
  1:1       warning  missing document start "---"  (document-start)
  36:8      error    wrong indentation: expected 8 but found 7  (indentation)
  77:16     warning  truthy value should be one of [false, true]  (truthy)
  80:13     warning  truthy value should be one of [false, true]  (truthy)
  82:13     warning  truthy value should be one of [false, true]  (truthy)
  84:13     warning  truthy value should be one of [false, true]  (truthy)
  88:13     warning  truthy value should be one of [false, true]  (truthy)
  95:13     warning  truthy value should be one of [false, true]  (truthy)
  111:19    warning  truthy value should be one of [false, true]  (truthy)
  152:16    warning  truthy value should be one of [false, true]  (truthy)
  165:14    warning  truthy value should be one of [false, true]  (truthy)
  170:18    warning  truthy value should be one of [false, true]  (truthy)
  171:89    error    line too long (93 > 88 characters)  (line-length)
  174:18    warning  truthy value should be one of [false, true]  (truthy)
  175:89    error    line too long (111 > 88 characters)  (line-length)
  178:18    warning  truthy value should be one of [false, true]  (truthy)
  178:26    warning  missing starting space in comment  (comments)
  179:89    error    line too long (104 > 88 characters)  (line-length)
  182:18    warning  truthy value should be one of [false, true]  (truthy)
  182:26    warning  missing starting space in comment  (comments)
  183:89    error    line too long (103 > 88 characters)  (line-length)
  186:18    warning  truthy value should be one of [false, true]  (truthy)
  186:26    warning  missing starting space in comment  (comments)
  187:89    error    line too long (95 > 88 characters)  (line-length)
  190:18    warning  truthy value should be one of [false, true]  (truthy)
  190:26    warning  missing starting space in comment  (comments)
  191:89    error    line too long (102 > 88 characters)  (line-length)
  194:18    warning  truthy value should be one of [false, true]  (truthy)
  194:26    warning  missing starting space in comment  (comments)
  195:89    error    line too long (101 > 88 characters)  (line-length)
  198:18    warning  truthy value should be one of [false, true]  (truthy)
  198:26    warning  missing starting space in comment  (comments)
  199:89    error    line too long (95 > 88 characters)  (line-length)
  202:18    warning  truthy value should be one of [false, true]  (truthy)
  202:26    warning  missing starting space in comment  (comments)
  203:89    error    line too long (95 > 88 characters)  (line-length)
  206:18    warning  truthy value should be one of [false, true]  (truthy)
  206:26    warning  missing starting space in comment  (comments)
  210:18    warning  truthy value should be one of [false, true]  (truthy)
  210:26    warning  missing starting space in comment  (comments)
  213:1     error    too many blank lines (1 > 0)  (empty-lines)
```
2019-08-17 00:41:39 +01:00
Imran Iqbal
272a1ae4ae
Merge pull request #224 from asenci/fix_typo_in_repo_sls
Fix typo in repo.sls
2019-08-13 05:41:02 +01:00
Andre Sencioles
6cd8e36da0 Fix typo in repo.sls 2019-08-13 12:17:22 +12:00
semantic-release-bot
c57511124d chore(release): 0.51.0 [skip ci]
# [0.51.0](https://github.com/saltstack-formulas/mysql-formula/compare/v0.50.0...v0.51.0) (2019-08-08)

### Bug Fixes

* **connector:** fix typos (connnector) and missing `enabled` ([bdee94a](https://github.com/saltstack-formulas/mysql-formula/commit/bdee94a))

### Features

* **linux:** archlinux support (no osmajorrelase grain) ([4b4ad88](https://github.com/saltstack-formulas/mysql-formula/commit/4b4ad88))
2019-08-08 20:14:33 +00:00
Niels Abspoel
ccccfd3652
Merge pull request #222 from noelmcloughlin/arch
feat(linux): archlinux support (no osmajorrelase grain)
2019-08-08 21:58:15 +02:00
Niels Abspoel
58b95ba32e
Merge pull request #223 from myii/fix/typo-connector
fix(connector): fix typos (connnector) and missing `enabled`
2019-08-08 21:58:04 +02:00
Imran Iqbal
bdee94aaed
fix(connector): fix typos (connnector) and missing enabled 2019-08-08 15:36:34 +01:00
N
4b4ad882c8
feat(linux): archlinux support (no osmajorrelase grain) 2019-08-03 15:15:24 +01:00
Éric Veiras Galisson
5d42846e0c
Merge pull request #221 from myii/ci/standardise-structure
chore: use `semantic-release` cross-formula standard structure
2019-07-22 14:04:20 +02:00
Imran Iqbal
a067c5853a chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.1)
2019-07-20 06:13:32 +01:00
semantic-release-bot
981adf7f78 chore(release): 0.50.0 [skip ci]
# [0.50.0](https://github.com/saltstack-formulas/mysql-formula/compare/v0.49.0...v0.50.0) (2019-07-12)

### Features

* **semantic-release:** implement for this formula ([1d2e2f5](https://github.com/saltstack-formulas/mysql-formula/commit/1d2e2f5))
2019-07-12 17:56:48 +00:00
Niels Abspoel
0981d9332b
Merge pull request #220 from myii/feat/semantic-release
feat(semantic-release): implement for this formula
2019-07-12 19:47:33 +02:00
Imran Iqbal
1d2e2f59dd
feat(semantic-release): implement for this formula
* Include latest pre-salted images replacing EOL platforms
  - Ref: https://github.com/saltstack-formulas/template-formula/pull/148
2019-07-10 19:12:58 +01:00
alxwr
52ed6ab67c
Merge pull request #217 from alxwr/remove-db-or-user
Remove DB and/or user
2019-04-24 12:53:20 +02:00
Alexander Weidinger
39915a49fd Handle empty/Null database_obj 2019-04-24 12:45:34 +02:00
Alexander Weidinger
3633a6ec84 Allow to remove DB 2019-04-09 23:59:44 +02:00
Alexander Weidinger
d1de0fdfc6 Allow to remove DB user 2019-04-09 23:40:18 +02:00
Niels Abspoel
49e4a81956
Merge pull request #215 from thejcannon/master
Update hash for MySQL community server RPM repo
2019-02-11 21:51:23 +01:00
Joshua Cannon
577c5a1120
Update hash for MySQL community server RPM repo 2019-02-11 09:00:52 -06:00
Niels Abspoel
d4067e13fa
Merge pull request #214 from noelmcloughlin/fixes
Only download archive if necessary [macos]
2019-01-29 20:52:11 +01:00
N
d40a6c5d47
Only download archive if necessary 2019-01-27 20:17:46 +00:00
Niels Abspoel
eb0431fb3a
Merge pull request #213 from getSurreal/Any_Host
Include pillar example for granting permissions to user on Any host
2019-01-19 10:08:58 +01:00
james@getsurreal.com
e156ddaf6e Include pillar example for granting permissions to user on Any host 2019-01-18 21:27:24 -06:00
Wayne Gemmell
168d1e2c12 Support for official mysql 8 packages
I've added support for the official mysql 8.0 packages and the relevant repositories.
Package names are mysql-community-server and mysql-community-client.
I know the repo setting breaks convention a bit but it is compulsory so I'm not sure how else to properly include it.

This change requires the salt pull request I created https://github.com/saltstack/salt/pull/51240 to be able to grant users.
2019-01-18 13:28:15 +02:00
N
8f2e6ad770
Merge pull request #168 from nesteves/master
Allow the use of wildcards on a user's database/table names when defining grants.
2018-12-18 22:59:39 +00:00
Nuno Esteves
e540589cb0 Include an example of using a wildcard with a reference to salt/saltstack#41178. Thanks to @scambra for the fix. 2018-12-18 22:35:51 +00:00
Niels Abspoel
66c2d13393
Merge pull request #209 from noelmcloughlin/fixes
don't fail on missing apparmor dict
2018-12-18 19:52:34 +01:00
N
a7145a59da
Add config section to pillar example 2018-12-12 22:27:12 +00:00
N
c7945aabac
Don't fail on missing mysql.config.apparmor 2018-12-12 14:46:17 +00:00
Niels Abspoel
86e2408afe
Merge pull request #208 from noelmcloughlin/fixes
Make apparmor standalone state
2018-12-09 17:08:36 +01:00
N
78b00b6dca
Make apparmor standalone state . 2018-12-09 15:57:54 +00:00
Niels Abspoel
3ed3e96e5c
Merge pull request #207 from noelmcloughlin/fixes
Add server.apparmor state
2018-12-09 13:06:24 +01:00