voxpupuli / puppet-wildfly

Puppet module to install, configure and manage Wildfly (8/9/10+), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak and Infinispan.
Apache License 2.0
29 stars 78 forks source link

Installer download fails because install_cache_dir doesn't exist #309

Closed EmersonPrado closed 9 months ago

EmersonPrado commented 9 months ago

Affected Puppet, Ruby, OS and module versions/distributions

All

Test code

class { 'java':
  distribution => 'jre',
  before       => Class['wildfly'],
}
$ip_bind = $facts['networking']['interfaces']['eth1']['ip']
class { 'wildfly':
  distribution   => 'wildfly',
  version        => '8.0.0',
  properties     => {
    'jboss.bind.address'            => $ip_bind,
    'jboss.bind.address.management' => $ip_bind,
  },
  mgmt_user      => { username => 'name', password => 'pass' },
  java_home      => $java::params::java['jre']['java_home'],
  external_facts => true,
}

Results

Error: Could not set 'file' on ensure: No such file or directory
A directory component in /var/cache/wget/wildfly-8.0.0.Final.tar.gz20231122-12494-4u0ok6.lock does not exist or is a dangling symbolic link
(file: /tmp/vagrant-puppet/modules-6aa599ec01948f6c0445cc68d9a925f4/wildfly/manifests/install.pp, line: 11)

Expected results

Successful download

Additional information

Class wildfly::install has file ${wildfly::install_cache_dir}/${install_file}, but doesn't manage $wildfly::install_cache_dir directory.