Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# lesson12
# lesson12
Report on practical task 12.
Binary file added databases.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions node.loc.log
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions site.pp
Original file line number Diff line number Diff line change
@@ -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',
}
}
Binary file added user_privilegies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.