This file is indexed.

/usr/share/puppet/modules.available/openstacklib/manifests/db/mysql/host_access.pp is in puppet-module-openstacklib 9.4.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Allow a user to access the database for the service
#
# == Namevar
#  String with the form dbname_host. The host part of the string is the host
#  to allow
#
# == Parameters
#  [*user*]
#    username to allow
#
#  [*password_hash*]
#    user password hash
#
#  [*database*]
#    the database name
#
#  [*privileges*]
#    the privileges to grant to this user
#
define openstacklib::db::mysql::host_access (
  $user,
  $password_hash,
  $database,
  $privileges,
) {
  validate_re($title, '_', 'Title must be $dbname_$host')

  $host = inline_template('<%= @title.split("_").last.downcase %>')

  mysql_user { "${user}@${host}":
    password_hash => $password_hash,
    require       => Mysql_database[$database],
  }

  mysql_grant { "${user}@${host}/${database}.*":
    privileges => $privileges,
    table      => "${database}.*",
    require    => Mysql_user["${user}@${host}"],
    user       => "${user}@${host}",
  }
}