mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
Add documentation for testing, change value in vars
This commit is contained in:
parent
dab153eb56
commit
daf8e4c45b
3 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,3 +12,4 @@ Berksfile.lock
|
|||
ansible.cfg
|
||||
hosts
|
||||
default.yml
|
||||
roles/bennojoy.mysql/
|
||||
|
|
|
@ -89,6 +89,12 @@ bundle install
|
|||
# Fetch tests
|
||||
bundle exec thor kitchen:fetch-remote-tests
|
||||
|
||||
# download a MySQL-installation role
|
||||
ansible-galaxy install -p roles/ bennojoy.mysql
|
||||
|
||||
# change password in MySQL-installation role to match the one from testing
|
||||
sed -i 's/foobar/iloverandompasswordsbutthiswilldo/g' roles/bennojoy.mysql/defaults/main.yml
|
||||
|
||||
# fast test on one machine
|
||||
bundle exec kitchen test default-ubuntu-1204
|
||||
|
||||
|
|
|
@ -10,7 +10,9 @@ mysql_remove_test_database: true
|
|||
|
||||
# @see http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_skip-show-database
|
||||
mysql_hardening_skip_show_database: true
|
||||
mysql_hardening_skip_grant_tables: true
|
||||
|
||||
# @see https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_skip-grant-tables
|
||||
mysql_hardening_skip_grant_tables: false
|
||||
|
||||
# @see http://www.symantec.com/connect/articles/securing-mysql-step-step
|
||||
# @see http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_chroot
|
||||
|
|
Loading…
Reference in a new issue