<@U11HA7VJ7>: I’ve reduced my manifest to as simpl...
# puppet
p
@binford2k: I’ve reduced my manifest to as simple as possible to replicate the issue (and removed all substituted variables - i.e. everything is hardcoded)
Copy code
class dspace_modern (
  $config = [],
) {
    file { '/opt':
      ensure => 'directory',
    }

    file { '/opt/dspace_src':
      ensure  => 'directory',
      owner   => 'tomcat',
      group   => 'tomcat',
      require => File['/opt'],
    }

    archive { '/tmp/dspace-7.5.tar.gz':
      source       => '<https://github.com/DSpace/DSpace/archive/refs/tags/dspace-7.5.tar.gz>',
      extract      => true,
      extract_path => '/opt/dspace_src',
      cleanup      => true,
      user         => 'tomcat',
      group        => 'tomcat',
      require      => File['/opt/dspace_src'],
    }

    file { '/opt/dspace_src/latest':
      ensure  => 'link',
      target  => '/opt/dspace_src/DSpace-dspace-7.5',   # When dspace-7.5.tar.gz is extracted (from above), it has directory 'DSpace-dspace-7.5' inside of it
      require => Archive['/tmp/dspace-7.5.tar.gz'],
    }
}