Skip to content

Commit

Permalink
Merge pull request #656 from 2fa/url_filesource_support
Browse files Browse the repository at this point in the history
Allow to install consul through local archive files
  • Loading branch information
bastelfreak committed Mar 8, 2024
2 parents d597d16 + 94cb8ba commit 9439999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ Default value: `'zip'`

##### <a name="-consul--download_url"></a>`download_url`

Data type: `Optional[Stdlib::HTTPUrl]`
Data type: `Optional[Stdlib::Filesource]`

Fully qualified url to the location of the archive file containing the consul binary.
Fully qualified url, puppet uri or absolute path to the location of the archive file containing the consul binary.

Default value: `undef`

Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# @param data_dir_mode Use this to set the data_dir directory mode for consul.
# @param docker_image Only valid when the install_method == docker. Defaults to `consul`.
# @param download_extension The extension of the archive file containing the consul binary to download.
# @param download_url Fully qualified url to the location of the archive file containing the consul binary.
# @param download_url Fully qualified url, puppet uri or absolute path to the location of the archive file containing the consul binary.
# @param download_url_base Base url to the location of the archive file containing the consul binary.
# @param extra_groups Extra groups to add the consul system user to.
# @param extra_options Extra arguments to be passed to the consul agent
Expand Down Expand Up @@ -110,7 +110,7 @@
String[1] $data_dir_mode = $consul::params::data_dir_mode,
String[1] $docker_image = 'consul',
String[1] $download_extension = 'zip',
Optional[Stdlib::HTTPUrl] $download_url = undef,
Optional[Stdlib::Filesource] $download_url = undef,
String[1] $download_url_base = 'https://releases.hashicorp.com/consul/',
Array $extra_groups = [],
Optional[String[1]] $extra_options = undef,
Expand Down

0 comments on commit 9439999

Please sign in to comment.