From b80cc03da808799aebef197bf6647c81e42ce58c Mon Sep 17 00:00:00 2001 From: Aday BA Date: Sun, 21 Jan 2024 17:23:45 +0000 Subject: [PATCH] Added support to add module files into the OnDemand public folder (#151) * Added support to add module files into the OnDemand public folder * Fixed indentation for public_files_source_paths --- manifests/config.pp | 11 +++++++++++ manifests/init.pp | 3 +++ 2 files changed, 14 insertions(+) diff --git a/manifests/config.pp b/manifests/config.pp index 963b99f..93ecd4d 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -190,6 +190,17 @@ } } + $openondemand::public_files_source_paths.each |$path| { + $basename = basename($path) + file { "${openondemand::public_root}/${basename}": + ensure => 'file', + owner => 'root', + group => 'root', + mode => '0644', + source => $path, + } + } + file { '/etc/ood/config/clusters.d': ensure => 'directory', owner => 'root', diff --git a/manifests/init.pp b/manifests/init.pp index 4526d8b..a5b2178 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -225,6 +225,8 @@ # Source for aouncements config, not used if `apps_config_repo` is defined # @param public_files_repo_paths # Path to public files in apps config Git repo +# @param public_files_source_paths +# Path to the source for public files # @param manage_logrotate # Boolean that allows disabling management of logrotate # @@ -367,6 +369,7 @@ Optional[String] $locales_config_source = undef, Optional[String] $announcements_config_source = undef, Array $public_files_repo_paths = [], + Array $public_files_source_paths = [], # Disable functionality Boolean $manage_logrotate = true,