Puppet Class: profile::mariadb::grants::cloudinfra

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

Overview

Parameters:

  • labspuppet_pass (String) (defaults to: hiera('profile::mariadb::grants::cloudinfra::labspuppet_pass'))
  • repl_pass (String) (defaults to: hiera('profile::mariadb::grants::cloudinfra::repl_pass'))


1
2
3
4
5
6
7
8
9
10
11
12
# File 'modules/profile/manifests/mariadb/grants/cloudinfra.pp', line 1

class profile::mariadb::grants::cloudinfra (
    String $labspuppet_pass  = hiera('profile::mariadb::grants::cloudinfra::labspuppet_pass'),
    String $repl_pass        = hiera('profile::mariadb::grants::cloudinfra::repl_pass'),
) {
    file { '/etc/mysql/cloudinfra-grants.sql':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0400',
        content => template('profile/mariadb/grants/cloudinfra.sql.erb'),
    }
}