Skip to content

Commit

Permalink
#1962: setup_database.pp, restrict permission to database tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Aug 17, 2015
1 parent aba3b42 commit 0fe111e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions puppet/manifests/setup_database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
},
},
grants => {
'authenticated@localhost/*.*' => {
'authenticated@localhost/db_machine_learning.*' => {
ensure => 'present',
options => ['GRANT'],
privileges => ['INSERT', 'DELETE', 'UPDATE', 'SELECT'],
table => 'db_machine_learning.*',
user => 'authenticated@localhost',
},
'provisioner@localhost/*.*' => {
'provisioner@localhost/db_machine_learning.*' => {
ensure => 'present',
options => ['GRANT'],
privileges => ['CREATE'],
table => '*.*',
table => 'db_machine_learning.*',
user => 'provisioner@localhost',
},
},
Expand Down

0 comments on commit 0fe111e

Please sign in to comment.