diff --git a/README.md b/README.md index 0070298..17a445e 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -# lesson12 \ No newline at end of file +# lesson12 +Report on practical task 12. diff --git a/databases.png b/databases.png new file mode 100644 index 0000000..607cef3 Binary files /dev/null and b/databases.png differ diff --git a/node.loc.log b/node.loc.log new file mode 100644 index 0000000..96c5d17 --- /dev/null +++ b/node.loc.log @@ -0,0 +1,7 @@ +Info: Using configured environment 'production' +Info: Retrieving pluginfacts +Info: Retrieving plugin +Info: Loading facts +Info: Caching catalog for node.loc +Info: Applying configuration version '1492099750' +Notice: Applied catalog in 0.34 seconds diff --git a/site.pp b/site.pp new file mode 100644 index 0000000..dd741ce --- /dev/null +++ b/site.pp @@ -0,0 +1,20 @@ +node 'node.loc' { + class { '::mysql::server': + root_password => 'strongpassword' + } + mysql_database { 'test_mdb': + ensure => present, + charset => 'utf8', + } + mysql_user { 'test_user@node.loc': + ensure => present, + } + mysql_grant { 'test_user@node.loc/test_mdb.*': + + ensure => present, + options => ['GRANT'], + privileges => ['ALL'], + table => 'test_mdb.*', + user => 'test_user@node.loc', + } +} diff --git a/user_privilegies.png b/user_privilegies.png new file mode 100644 index 0000000..acd7e6f Binary files /dev/null and b/user_privilegies.png differ