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

Rundeck user/group should be a system user/group #380

Closed
philippeganz opened this issue Jun 5, 2018 · 0 comments · Fixed by #381
Closed

Rundeck user/group should be a system user/group #380

philippeganz opened this issue Jun 5, 2018 · 0 comments · Fixed by #381

Comments

@philippeganz
Copy link
Contributor

Currently, the default rundeck user and group are created as non-system. Since these are meant to only run the rundeck service, they probably need to be declared as system account/group.

This could be done easily in the rundeck::install class:

  if $manage_group {
    group { $group:
      ensure => present,
      gid    => $group_id,
+     system => true,
    }

    if $group != 'rundeck' {
      group { 'rundeck':
        ensure => absent,
      }
    }
  }

  if $manage_user {
    user { $user:
      ensure => present,
      groups => [$group],
      uid    => $user_id,
      gid    => $group_id,
+     system => true,
      before => File['/var/rundeck'],
    }

    if $user != 'rundeck' {
      user { 'rundeck':
        ensure => absent,
      }
    }
  }

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.9
  • Ruby: 2.0
  • Distribution: Centos 7.5, 3.10.0-862.3.2.el7.x86_64
  • Module version: 5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant