Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
451f3c31
Commit
451f3c31
authored
May 09, 2013
by
Sef Kloninger
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #51 from edx/feature/sef/passwordless-sudo
enable passwordless sudo for everyone in "adm" group
parents
df9b7067
8c683d69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
playbooks/roles/common/tasks/create_users.yml
+12
-0
No files found.
playbooks/roles/common/tasks/create_users.yml
View file @
451f3c31
...
...
@@ -4,6 +4,7 @@
tags
:
-
users
-
admin_users
-
name
:
Add user 'ubuntu' to 'edx' group
# This is a temporary measure for initial configuration; after the last
# play is run and we've got a good set of users, ubuntu should no longer be used
...
...
@@ -11,6 +12,7 @@
tags
:
-
users
-
admin_users
-
name
:
Creating admin users
# Admin users, by definition, should be able to sudo w/ password, and read adm-only files
user
:
name={{ item.user }} append=yes groups={{ "adm,edx,"+",".join(item.groups) }} shell=/bin/bash
...
...
@@ -19,21 +21,31 @@
tags
:
-
users
-
admin_users
-
name
:
Copying ssh keys for admin users
authorized_key
:
user={{ item.user }} key="{{lookup('file', item.path)}}"
with_items
:
admin_keys
tags
:
-
users
-
admin_users
-
name
:
Creating env users
user
:
name={{ item.user }} groups={{ ",".join(item.groups) }} shell=/bin/bash
with_items
:
env_users
when
:
env_users is defined
tags
:
-
users
-
name
:
Copying ssh keys for env users
authorized_key
:
user={{ item.user }} key="{{lookup('file', item.path)}}"
with_items
:
env_keys
when
:
env_keys is defined
tags
:
-
users
-
name
:
Group adm passwordless sudo
copy
:
content="%adm ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/adm-group owner=root group=root mode=0440
tags
:
-
users
-
admin_users
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment