From 55cc71871ff865cce1582c359d6a8dd3a6374c3a Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 25 Mar 2025 19:01:44 +0100 Subject: [PATCH] Create dirs --- manifests/multinode_db.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/manifests/multinode_db.pp b/manifests/multinode_db.pp index 1a2a817..491ac07 100644 --- a/manifests/multinode_db.pp +++ b/manifests/multinode_db.pp @@ -41,7 +41,10 @@ class sunetdrive::multinode_db(){ group => 'root', mode => '0600', } - file { '/root/tasks/listusersbydep.sh': + file { '/root/tasks/': + ensure => directory, + } + -> file { '/root/tasks/listusersbydep.sh': ensure => file, content => template('sunetdrive/mariadb/listusersdep.sh.erb'), owner => 'root', @@ -55,7 +58,10 @@ class sunetdrive::multinode_db(){ group => 'root', mode => '0700', } - file {'/opt/mariadb/statistics/custdata.json': + file {'/opt/mariadb/statistics/': + ensure => directory, + } + -> file {'/opt/mariadb/statistics/custdata.json': ensure => file, content => template('sunetdrive/mariadb/custconfig.json.erb'), owner => 'root',