Make germqtt a regular user

To use germqtt it needs to ssh into gerrit to get the event stream.
Initiating an ssh connection by default assumes there is a home
directory for the user, and that it can use that to store stuff. To
make things simpler this commit changes the germqtt user to be a
regular user instead of a system user to facilitate this.
This commit is contained in:
Matthew Treinish 2016-07-26 12:33:25 -04:00
parent 05431ccc6b
commit 88428b22ea
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 10 additions and 2 deletions

View File

@ -35,10 +35,18 @@ class germqtt::server (
group => 'root',
content => template('germqtt/germqtt.service.erb')
}
user { 'germqtt':
group {'germqtt':
ensure => present,
system => true,
}
user { 'germqtt':
ensure => present,
home => '/home/germqtt',
shell => '/bin/bash',
gid => 'germqtt',
require => Group['germqtt'],
}
service { 'germqtt':
enable => true,
hasrestart => true,