X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fopenstacklib%2Fmanifests%2Fdb%2Fmysql%2Fhost_access.pp;fp=3rdparty%2Fmodules%2Fopenstacklib%2Fmanifests%2Fdb%2Fmysql%2Fhost_access.pp;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=4909f631a778beefadb06d14677625ab2c5483b7;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/openstacklib/manifests/db/mysql/host_access.pp b/3rdparty/modules/openstacklib/manifests/db/mysql/host_access.pp deleted file mode 100644 index 4909f631a..000000000 --- a/3rdparty/modules/openstacklib/manifests/db/mysql/host_access.pp +++ /dev/null @@ -1,41 +0,0 @@ -# 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 %>') - - 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}", - } -}