Skip to content

Merge deploy user to apps #6

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
default["appbox"]["apps_dir"] = "/home/apps"

default["appbox"]["admin_user"] = "devops"
default["appbox"]["deploy_user"] = "deploy"
default["appbox"]["apps_user"] = "apps"
7 changes: 1 addition & 6 deletions recipes/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
user_account node["appbox"]["apps_user"] do
comment "apps runner"
end
user_account node["appbox"]["deploy_user"] do
comment "deployer"
ssh_keys node["appbox"]["deploy_keys"]
end
user_account node["appbox"]["admin_user"] do
comment "sysadmin"
ssh_keys node["appbox"]["admin_keys"]
Expand All @@ -24,14 +20,13 @@
members [
node["appbox"]["apps_user"],
node["appbox"]["admin_user"],
node["appbox"]["deploy_user"]
]
end

node.default["authorization"]["sudo"]["groups"] = [
"sudo",
node["appbox"]["admin_user"],
node["appbox"]["deploy_user"] # TODO workaround to enable deployer to restart app
node["appbox"]["apps_user"],
]
node.default["authorization"]["sudo"]["passwordless"] = true
include_recipe "sudo"
Expand Down