Move the hubot user creation to its own recipe
This commit is contained in:
parent
e137188a4e
commit
21f0e4143e
18
site-cookbooks/kosmos-hubot/recipes/_user.rb
Normal file
18
site-cookbooks/kosmos-hubot/recipes/_user.rb
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# Cookbook Name:: kosmos-hubot
|
||||||
|
# Recipe:: _user
|
||||||
|
#
|
||||||
|
# Copyright 2019, Kosmos
|
||||||
|
#
|
||||||
|
|
||||||
|
group "hubot" do
|
||||||
|
gid 48268
|
||||||
|
end
|
||||||
|
|
||||||
|
user "hubot" do
|
||||||
|
comment "hubot user"
|
||||||
|
manage_home true
|
||||||
|
uid 48268
|
||||||
|
gid 48268
|
||||||
|
shell "/bin/bash"
|
||||||
|
end
|
@ -17,16 +17,6 @@ end
|
|||||||
include_recipe "kosmos-nodejs"
|
include_recipe "kosmos-nodejs"
|
||||||
include_recipe "kosmos-redis"
|
include_recipe "kosmos-redis"
|
||||||
|
|
||||||
group "hubot" do
|
include_recipe "kosmos-hubot::_user"
|
||||||
gid 48268
|
|
||||||
end
|
|
||||||
|
|
||||||
user "hubot" do
|
|
||||||
comment "hubot user"
|
|
||||||
uid 48268
|
|
||||||
gid 48268
|
|
||||||
shell "/bin/bash"
|
|
||||||
end
|
|
||||||
|
|
||||||
include_recipe "kosmos-hubot::hal8000"
|
include_recipe "kosmos-hubot::hal8000"
|
||||||
include_recipe "kosmos-hubot::botka_freenode"
|
include_recipe "kosmos-hubot::botka_freenode"
|
||||||
|
@ -11,6 +11,7 @@ end
|
|||||||
|
|
||||||
include_recipe "kosmos-nodejs"
|
include_recipe "kosmos-nodejs"
|
||||||
include_recipe "kosmos-redis"
|
include_recipe "kosmos-redis"
|
||||||
|
include_recipe "kosmos-hubot::_user"
|
||||||
|
|
||||||
# Needed for hubot-kredits
|
# Needed for hubot-kredits
|
||||||
include_recipe "kosmos-ipfs"
|
include_recipe "kosmos-ipfs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user