dev/provisioning/modules/mysql/examples/mysql_user.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 $mysql_root_pw = 'password'
       
     2 
       
     3 class { 'mysql::server':
       
     4   root_password => 'password',
       
     5 }
       
     6 
       
     7 mysql_user{ 'redmine@localhost':
       
     8   ensure        => present,
       
     9   password_hash => mysql_password('redmine'),
       
    10   require       => Class['mysql::server'],
       
    11 }
       
    12 
       
    13 mysql_user{ 'dan@localhost':
       
    14   ensure        => present,
       
    15   password_hash => mysql_password('blah')
       
    16 }
       
    17 
       
    18 mysql_user{ 'dan@%':
       
    19   ensure        => present,
       
    20   password_hash => mysql_password('blah'),
       
    21 }
       
    22 
       
    23 mysql_user{ 'socketplugin@%':
       
    24   ensure => present,
       
    25   plugin => 'unix_socket',
       
    26 }
       
    27 
       
    28 mysql_user{ 'socketplugin@%':
       
    29   ensure        => present,
       
    30   password_hash => mysql_password('blah'),
       
    31   plugin        => 'mysql_native_password',
       
    32 }