-
Notifications
You must be signed in to change notification settings - Fork 762
add role argument spec for os, ssh, mysql #687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ddfb1fb
add role argument spec for os, ssh, mysql
e81e832
Merge branch 'master' into arg_spec
rndmh3ro 4cb2975
add role argument spec for os, ssh, mysql
a8fb049
remove variable in variable as it cannot be used in argument spec
ce75987
fix wrong syntax
7cdfd7e
fix spelling errors
76431dd
cannot use vars before arg-spec validation
00cb7c4
yamllint the arg-spec
a927c77
add back variable
6dbc14d
remove redundant setting in tests
224be17
fix descriptions in mysql hardening to betterreflect what they do
8fecb67
remove duplicate empty line
da25e68
set correct defaults on to ssl options
1e326cd
remove left-over hidepid argument spec
90a4130
remove license and author infos, this lives in the collection readme
2cf3f9f
fix styling
f26d67a
update some descriptions and sort them in the readme
b76618c
some more linting
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
argument_specs: | ||
main: | ||
short_description: The main entry point for the mysql hardening role. | ||
version_added: 8.8.0 | ||
options: | ||
mysql_hardening_chroot: | ||
default: '' | ||
type: str | ||
description: '[chroot](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_chroot)' | ||
mysql_hardening_options.safe-user-create: | ||
default: 1 | ||
type: int | ||
description: '[safe-user-create](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_safe-user-create)' | ||
mysql_hardening_options.secure-auth: | ||
default: 1 | ||
type: int | ||
description: '[secure-auth](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-auth)' | ||
mysql_hardening_options.skip-symbolic-links: | ||
default: 1 | ||
type: int | ||
description: '[skip-symbolic-links](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_symbolic-links)' | ||
'mysql_hardening_skip_grant_tables:': | ||
default: false | ||
type: bool | ||
description: '[skip-grant-tables](https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_skip-grant-tables)' | ||
mysql_hardening_skip_show_database: | ||
default: 1 | ||
type: int | ||
description: '[skip-show-database](http://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_skip-show-database)' | ||
mysql_hardening_options.local-infile: | ||
default: 0 | ||
type: int | ||
description: '[local-infile](http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_local_infile)' | ||
mysql_hardening_options.allow-suspicious-udfs: | ||
default: 0 | ||
type: int | ||
description: '[allow-suspicious-udfs](https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_allow-suspicious-udfs)' | ||
mysql_hardening_chroot.automatic-sp-privileges: | ||
default: 0 | ||
type: int | ||
description: '[automatic_sp_privileges](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_automatic_sp_privileges)' | ||
mysql_hardening_options.secure-file-priv: | ||
default: /tmp | ||
type: str | ||
description: '[secure-file-priv](https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_secure-file-priv)' | ||
mysql_remove_anonymous_users: | ||
default: true | ||
type: bool | ||
description: remove users without authentication | ||
mysql_remove_test_database: | ||
default: true | ||
type: bool | ||
description: remove test database | ||
mysql_hardening_restart_mysql: | ||
default: true | ||
type: bool | ||
description: Restart mysql after running this role | ||
mysql_hardening_enabled: | ||
default: true | ||
type: bool | ||
description: Whether to run the hardening | ||
mysql_daemon_enabled: | ||
default: true | ||
type: bool | ||
description: Whether to run the hardening | ||
rndmh3ro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
mysql_root_password: | ||
default: '-----====>SetR00tPa$$wordH3r3!!!<====-----' | ||
type: str | ||
description: The default password. Please change or overwrite it | ||
mysql_user_home: | ||
default: '{{ ansible_env.HOME }}' | ||
type: str | ||
description: The path where the `.my.cnf` will be stored | ||
mysql_remove_remote_root: | ||
default: true | ||
type: bool | ||
description: Set to false to not remove remote root users. If true, root can | ||
rndmh3ro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
only connect from localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.