Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when dealing with configuration file #9

Closed
FredPraca opened this issue Mar 23, 2021 · 2 comments
Closed

Error when dealing with configuration file #9

FredPraca opened this issue Mar 23, 2021 · 2 comments

Comments

@FredPraca
Copy link

When trying to use the module with the following definition:

class profile::nexus::server {
  class{ '::nexus':
    version    => '3.30.0',
    nexus_root => '/srv', # All directories and files will be relative to this
    download_site         => 'http://download.sonatype.com/nexus/3',
    nexus_type            => 'unix',
    nexus_work_dir_manage => false
  }
}

It failed when dealing with the nexus configuration file:

No such file or directory @ rb_sysopen - /srv/sonatype-work/nexus3/etc/nexus.properties
Error: /Stage[main]/Nexus::Config/File[/srv/sonatype-work/nexus3/etc/nexus.properties]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ rb_sysopen - /srv/sonatype-work/nexus3/etc/nexus.properties (file: /etc/puppetlabs/code/environments/production/site-modules/nexus/manifests/config.pp, line: 49)

As a fact, the file and even etc directory don't exist.
Is that something that changed recently ?

@TuningYourCode
Copy link
Collaborator

Hi,

sorry for the late response but i didn't got any mails regarding new issues opened.

If you disable nexus_work_dir_manage (or other module defaults) you most likly have to take care of these things yourself.

In this case it could be that you upgraded to a nexus version newer than 3.1.0? Then this case would apply https://github.com/puppets-epic-show-theatre/puppet-nexus/blob/master/manifests/config.pp#L32-L37

@TuningYourCode
Copy link
Collaborator

Hi,

i just saw that you used the example from the Readme.md. The example was quiet outdated as it seems and i adjusted it.

The updated example should be working - if not feel free to reopen this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants