Updated Branches: refs/heads/master 9483175eb -> b709cd500
BIGTOP-980. bigtop-toolchaing user module can't create 'jenkins' user Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/b709cd50 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/b709cd50 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/b709cd50 Branch: refs/heads/master Commit: b709cd5006d2db126e1c4b40158a42d14b231962 Parents: 9483175 Author: Konstantin Boudnik <[email protected]> Authored: Wed May 29 12:34:18 2013 -0700 Committer: Konstantin Boudnik <[email protected]> Committed: Wed May 29 12:34:18 2013 -0700 ---------------------------------------------------------------------- bigtop-toolchain/manifests/user.pp | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/b709cd50/bigtop-toolchain/manifests/user.pp ---------------------------------------------------------------------- diff --git a/bigtop-toolchain/manifests/user.pp b/bigtop-toolchain/manifests/user.pp index cbf978a..32259b4 100644 --- a/bigtop-toolchain/manifests/user.pp +++ b/bigtop-toolchain/manifests/user.pp @@ -19,6 +19,12 @@ class bigtop-toolchain::user { ensure => present, home => '/var/lib/jenkins', managehome => true, + gid => 'jenkins', + require => Group['jenkins'], + } + + group { 'jenkins': + ensure => present, } file {"/var/lib/jenkins/.m2": @@ -28,4 +34,12 @@ class bigtop-toolchain::user { mode => 755, require => User['jenkins'], } + + file {"/var/lib/jenkins/.ssh": + ensure => directory, + owner => 'jenkins', + group => 'jenkins', + mode => 600, + require => User['jenkins'], + } }
