Defined Type: profile::mariadb::grants::core

Defined in:
modules/profile/manifests/mariadb/grants/core.pp

Overview

wikiadmin, wikiuser

Parameters:

  • wikiadmin_pass (String) (defaults to: '')
  • wikiuser_username (String) (defaults to: '')
  • wikiuser_pass (String) (defaults to: '')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/mariadb/grants/core.pp', line 2

define profile::mariadb::grants::core(
    String                          $wikiadmin_pass = '',
    String                          $wikiuser_username = '',
    String                          $wikiuser_pass  = '',
){
    $shard = $title
    file { "/etc/mysql/production-grants-core-${title}.sql":
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0400',
        content => template('profile/mariadb/grants/production-core.sql.erb'),
    }

    ensure_resource('file', '/etc/mysql/production-grants-core.sql', {'ensure' => 'absent'})
}