Skip to content

Commit

Permalink
replace lwf/remote_file with puppet/archive (#69)
Browse files Browse the repository at this point in the history
Use the Vox Pupuli archive module for fetching files over ftp, https,
and http. The lwf/remote_file module appears to be unmaintained (last
commit was in 2018).
  • Loading branch information
kenyon authored Sep 4, 2022
1 parent 8bcdd9d commit cc62866
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions manifests/ca.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
# When retrieving a certificate whether or not to validate the CA of the
# source. (defaults to true)
# [*checksum*]
# The md5sum of the file. (defaults to undef)
# The checksum of the file. (defaults to undef)
# [*checksum_type*]
# The type of file checksum. (defauts to undef)
# [*ca_file_mode*]
# The installed CA certificate's POSIX filesystem permissions. This uses
# the same syntax as Puppet's native file resource's "mode" parameter.
Expand All @@ -39,6 +41,7 @@
String $ensure = 'trusted',
Boolean $verify_https_cert = true,
Optional[String] $checksum = undef,
Optional[String[1]] $checksum_type = undef,
Optional[String] $ca_file_mode = undef,
) {

Expand Down Expand Up @@ -106,13 +109,13 @@
}
}
'ftp', 'https', 'http': {
remote_file { $ca_cert:
ensure => present,
source => $source,
checksum => $checksum,
mode => '0644',
verify_peer => $verify_https_cert,
notify => Class['::ca_cert::update'],
archive { $ca_cert:
ensure => present,
source => $source,
checksum => $checksum,
checksum_type => $checksum_type,
allow_insecure => !$verify_https_cert,
notify => Class['ca_cert::update'],
}
}
'file': {
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"version_requirement": ">= 3.0.0 < 9.0.0"
},
{
"name": "lwf/remote_file",
"version_requirement": ">= 1.1.2"
"name": "puppet/archive",
"version_requirement": ">= 6.0.0"
}
],
"operatingsystem_support": [
Expand Down

0 comments on commit cc62866

Please sign in to comment.