This repository has been archived by the owner on Apr 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't run it by default, but make it a role.
- Loading branch information
Showing
3 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
name 'base' | ||
description 'Base bootstrap for every box' | ||
run_list "recipe[sysadmins]", "recipe[sudo]", "recipe[apt]", "recipe[build-essential]" | ||
default_attributes( | ||
"authorization" => { | ||
"sudo" => { | ||
"groups" => ["admin"], | ||
"passwordless" => false, | ||
"include_sudoers_d" => true, | ||
"sudoers_default" => [ | ||
"env_reset", | ||
"mail_badpass", | ||
"secure_path=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"" | ||
], | ||
} | ||
} | ||
) | ||
run_list "recipe[apt]", "recipe[build-essential]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name "sysadmins" | ||
description "This role configures sysadmins, users with sudo-rights on your server" | ||
run_list( | ||
"role[base]", | ||
"recipe[packages]", | ||
"recipe[sysadmins]", | ||
"recipe[sudo]" | ||
) | ||
# Configure the sudo recipe so it mirrors Ubuntu's default behaviour | ||
default_attributes( | ||
"authorization" => { | ||
"sudo" => { | ||
"groups" => ["admin"], | ||
"passwordless" => false, | ||
"include_sudoers_d" => true, | ||
"sudoers_default" => [ | ||
"env_reset", | ||
"mail_badpass", | ||
"secure_path=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"" | ||
], | ||
} | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters