Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 122cea0

Browse files
committed
Merge pull request #8 from hardening-io/new_role_layout
New role layout
2 parents b36d3b7 + 38af066 commit 122cea0

File tree

12 files changed

+14
-12
lines changed

12 files changed

+14
-12
lines changed

.kitchen.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ driver:
33
name: vagrant
44
provisioner:
55
name: ansible_playbook
6-
test_repo_uri: https://github.com/TelekomLabs/tests-mysql-hardening.git
6+
test_repo_uri: https://github.com/hardening-io/tests-mysql-hardening.git
77
hosts: all
88
require_ansible_repo: false
99
require_ansible_omnibus: true
@@ -46,9 +46,10 @@ platforms:
4646
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_debian-8.1_chef-provisionerless.box
4747
suites:
4848
- name: default
49-
roles_path: roles
5049
hosts: all
5150
ansible_verbose: true
5251
ansible_version: 1.9.2
52+
ansible_diff: true
53+
roles_path: ../ansible-mysql-hardening/
5354
provisioner:
5455
playbook: test/integration/playbooks/default.yml

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before_install:
77
install:
88
- pip install ansible
99
- echo -e 'localhost ansible_connection=local' > spec/inventory
10-
- echo -e '[defaults]\nroles_path = ./roles\nhostfile = ./spec/inventory' > ansible.cfg
10+
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg
1111

1212
script:
1313
- ansible-playbook --syntax-check spec/travis.yml

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This role focuses on security configuration of MySQL. Therefore you can add this
1010

1111
## Requirements
1212

13-
* Ansible
13+
* Ansible
1414

1515
## Usage
1616

@@ -20,7 +20,7 @@ Before you use this role make sure to have a valid login-configuration in `~/.my
2020

2121
- hosts: localhost
2222
roles:
23-
- ansible-os-hardening
23+
- hardening.mysql-hardening
2424

2525
This hardening role installs the hardening but expects an existing installation of MySQL, MariaDB or Percona. Please ensure that the following variables are set accordingly:
2626

@@ -30,7 +30,7 @@ This hardening role installs the hardening but expects an existing installation
3030

3131
## Security Options
3232

33-
Further information is already available at [Deutsche Telekom (German)](http://www.telekom.com/static/-/155996/7/technische-sicherheitsanforderungen-si) and [Symantec](http://www.symantec.com/connect/articles/securing-mysql-step-step)
33+
Further information is already available at [Deutsche Telekom (German)](http://www.telekom.com/static/-/155996/7/technische-sicherheitsanforderungen-si) and [Symantec](http://www.symantec.com/connect/articles/securing-mysql-step-step)
3434

3535
* `mysql_hardening_chroot` - [chroot](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_chroot)
3636
* `mysql_hardening_options.safe-user-create` - [safe-user-create](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_safe-user-create)
@@ -46,22 +46,22 @@ Further information is already available at [Deutsche Telekom (German)](http://w
4646

4747
This setup sets the following parameters by default
4848

49-
# via `mysql_hardening_options.local-infile`
49+
# via `mysql_hardening_options.local-infile`
5050
local-infile = 0
5151

52-
# via `mysql_hardening_options.safe-user-create`
52+
# via `mysql_hardening_options.safe-user-create`
5353
safe-user-create = 1
5454

55-
# via `mysql_hardening_options.safe-user-create`
55+
# via `mysql_hardening_options.safe-user-create`
5656
secure-auth = 1
5757

58-
# via `mysql_hardening_skip_show_database`
58+
# via `mysql_hardening_skip_show_database`
5959
skip-show-database
6060

61-
# via `mysql_hardening_options.skip-symbolic-links`
61+
# via `mysql_hardening_options.skip-symbolic-links`
6262
skip-symbolic-links
6363

64-
# via `mysql_hardening_chroot.automatic-sp-privileges`
64+
# via `mysql_hardening_chroot.automatic-sp-privileges`
6565
automatic_sp_privileges = 0
6666

6767
# via `mysql_hardening_options.secure-file-priv`
@@ -95,6 +95,7 @@ ansible-galaxy install -p roles/ bennojoy.mysql
9595
# change password in MySQL-installation role to match the one from testing
9696
sed -i 's/foobar/iloverandompasswordsbutthiswilldo/g' roles/bennojoy.mysql/defaults/main.yml
9797

98+
9899
# fast test on one machine
99100
bundle exec kitchen test default-ubuntu-1204
100101

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)