Skip to content

Commit

Permalink
Added support to add module files into the OnDemand public folder (#151)
Browse files Browse the repository at this point in the history
* Added support to add module files into the OnDemand public folder

* Fixed indentation for public_files_source_paths
abujeda authored Jan 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2da17bb commit b80cc03
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
@@ -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',
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit b80cc03

Please sign in to comment.