hubspotdevops / puppet-nexus

Puppet module for Sonatype Nexus
MIT License
24 stars 92 forks source link

tons of file resources with nexus 3.0.x #96

Closed wyardley closed 4 years ago

wyardley commented 7 years ago

We have the following setup (with Nexus 3.0.0):

  class{ '::nexus':
    version               => '3.0.0',
    revision              => '03',
    download_site         => 'http://download.sonatype.com/nexus/3',
    nexus_type            => 'unix',
    nexus_work_dir_manage => false,
  }

Despite nexus_work_dir_manage being set to false, since recurse is set to true in file{ $nexus_home_real:, with default settings, the work dir seems to be inside the main nexus home anyway, so Puppet creates a resource for each of those files. This is creating massive reports and long Puppet run times.

# grep -c "resource: File" /var/lib/puppet/state/last_run_report.yaml 
47371
      resource: File[/srv/nexus-3.0.0-03/data/blobs/default/content/vol-08/chap-38/9bfbb901-705f-4ed1-921e-82d4262e71ee.properties]

Is the goal to ensure permissions on the initial installation, or to preserve them?

You might also look into replacing wget + exec with the archive module?

wyardley commented 7 years ago

I'll also check - it looks like we may have made a local modification that could be partially to blame.