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

Improve support for complete removal of Jenkins #60

Open
php-coder opened this issue Nov 2, 2013 · 1 comment
Open

Improve support for complete removal of Jenkins #60

php-coder opened this issue Nov 2, 2013 · 1 comment
Labels
enhancement New feature or request

Comments

@php-coder
Copy link
Contributor

I tried to purge Jenkins from my system, but it outputs a lot of warnings:

Notice: /Stage[main]/Jenkins::Package/Package[jenkins]/ensure: ensure changed '1.509.3' to 'purged'
Error: /Stage[main]/Jenkins::Config/Jenkins::Sysconfig[HTTP_PORT]/File_line[Jenkins sysconfig setting HTTP_PORT]: Could not evaluate: No such file or directory - /etc/default/jenkins
Notice: /User[jenkins]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /User[jenkins]: Skipping because of failed dependencies
Notice: /Group[jenkins]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /Group[jenkins]: Skipping because of failed dependencies
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[greenballs]/File[/var/lib/jenkins]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[greenballs]/File[/var/lib/jenkins]: Skipping because of failed dependencies
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[greenballs]/File[/var/lib/jenkins/plugins]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[greenballs]/File[/var/lib/jenkins/plugins]: Skipping because of failed dependencies
[...]
Notice: /Stage[main]/Jenkins::Service/Service[jenkins]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /Stage[main]/Jenkins::Service/Service[jenkins]: Skipping because of failed dependencies
Notice: /Stage[main]/Jenkins/Anchor[jenkins::end]: Dependency File_line[Jenkins sysconfig setting HTTP_PORT] has failures: true
Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies

It also only removed a package and jenkins user but leaved other artifacts on my system:

  • jenkins group
  • key for jenkins repository
  • /etc/apt/sources.list.d/jenkins.list file

This is my puppet code I used for removal:

class { 'jenkins':
  version     => 'purged',
  lts         => 1, # use stable version
  repo        => 1, # install from repository
  config_hash => {
    'HTTP_PORT' => { 'value' => '8000' }
  },
  plugin_hash => {
    'greenballs'            => { version => '1.12'    }
  }
}
@jlambert121
Copy link
Contributor

Right now this functionality doesn't exist in the module, a PR would be welcome though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants