Move the hubot user creation to its own recipe

This commit is contained in:
Greg Karékinian 2019-04-08 17:54:15 +02:00
parent e137188a4e
commit 21f0e4143e
3 changed files with 20 additions and 11 deletions

View 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

View File

@ -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"

View File

@ -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"