Skip to content

Commit 4f700ca

Browse files
author
edge-records
committed
custom archive type needs extract_path
archive type's extract_path doesn't have a default parameter and needs to be set (see https://github.com/voxpupuli/puppet-archive/blob/master/lib/puppet/type/archive.rb#L71-L78). If I don't set one I get the following error when trying to use this module: Error: Failed to apply catalog: No title provided and :file is not a valid resource reference
1 parent 519e2d7 commit 4f700ca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

manifests/oracle.pp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,11 @@
188188
case $ensure {
189189
'present' : {
190190
archive { $destination :
191-
ensure => present,
192-
source => "${oracle_url}${release_major}-${release_minor}/${package_name}",
193-
cleanup => false,
194-
cookie => 'gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie',
191+
ensure => present,
192+
source => "${oracle_url}${release_major}-${release_minor}/${package_name}",
193+
cleanup => false,
194+
extract_path => '/tmp',
195+
cookie => 'gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie',
195196
}->
196197
case $::kernel {
197198
'Linux' : {

0 commit comments

Comments
 (0)