diff --git a/manifests/init.pp b/manifests/init.pp index d530a0c..c69264d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -245,6 +245,8 @@ # Path to the source for public files # @param manage_logrotate # Boolean that allows disabling management of logrotate +# @param git_proxy +# http proxy, if any, used to download git repos via vcsrepo # class openondemand ( # repos @@ -386,6 +388,7 @@ Optional[String] $apps_config_repo = undef, Optional[String] $apps_config_revision = undef, String $apps_config_repo_path = '', # lint:ignore:params_empty_string_assignment + Optional[String[1]] $git_proxy = undef, Optional[String] $locales_config_repo_path = undef, Optional[String] $announcements_config_repo_path = undef, diff --git a/manifests/install/app.pp b/manifests/install/app.pp index 5b15367..dab07a0 100644 --- a/manifests/install/app.pp +++ b/manifests/install/app.pp @@ -58,11 +58,12 @@ if $git_repo { vcsrepo { $_path: - ensure => $ensure, - source => $git_repo, - revision => $git_revision, - provider => 'git', - require => Package['ondemand'], + ensure => $ensure, + source => $git_repo, + revision => $git_revision, + provider => 'git', + http_proxy => $openondemand::git_proxy, + require => Package['ondemand'], } }