Remove recursive for mysql db dir

This commit is contained in:
Lars Delhage 2025-01-20 11:53:25 +01:00
parent 0e154b0e53
commit 09deca0172
Signed by untrusted user who does not match committer: lasse
GPG key ID: 6B250FE35CC876D1

View file

@ -18,7 +18,7 @@ define sunetdrive::db_type(
$mariadb_dir = '/etc/mariadb'
$mycnf_path = 'sunetdrive/mariadb/my.cnf.erb'
$server_id = 1000 + Integer($facts['networking']['hostname'][-1])
ensure_resource('file',$mariadb_dir, { ensure => directory, recurse => true } )
ensure_resource('file',$mariadb_dir, { ensure => directory } )
$dirs = ['datadir', 'init', 'conf', 'backups', 'scripts' ]
$dirs.each |$dir| {
ensure_resource('file',"${mariadb_dir}/${dir}", { ensure => directory, recurse => true } )