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
8f4a3094
Commit
8f4a3094
authored
Feb 11, 2014
by
Sef Kloninger
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #742 from edx/sef/gh_users_no_sudo_master
add users without sudo (gh_user_no_sudo)
parents
416ac5c9
fba3f8ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
playbooks/edx-west/prod-jumpbox.yml
+15
-0
playbooks/roles/gh_users/defaults/main.yml
+1
-0
playbooks/roles/gh_users/tasks/main.yml
+11
-3
No files found.
playbooks/edx-west/prod-jumpbox.yml
View file @
8f4a3094
...
...
@@ -8,3 +8,18 @@
roles
:
-
common
-
supervisor
-
role
:
gh_users
gh_users
:
-
sefk
-
jbau
-
jrbl
-
ali123
-
caesar2164
-
dcadams
-
nparlante
gh_users_no_sudo
:
-
jinpa
-
gbruhns
-
paepcke
-
akshayak
tags
:
users
playbooks/roles/gh_users/defaults/main.yml
View file @
8f4a3094
...
...
@@ -3,3 +3,4 @@
# update the system bashrc default
GH_USERS_PROMPT
:
"
"
gh_users
:
[]
gh_users_no_sudo
:
[]
playbooks/roles/gh_users/tasks/main.yml
View file @
8f4a3094
...
...
@@ -10,6 +10,8 @@
# gh_users:
# - joe
# - mark
# gh_users_no_sudo:
# - tourist_dave
-
name
:
creating default .bashrc
...
...
@@ -27,22 +29,28 @@
dest=/etc/sudoers.d/gh owner=root group=root
mode=0440 validate='visudo -cf %s'
-
name
:
create github users
-
name
:
create
sudo
github users
user
:
name={{ item }} groups=gh
shell=/bin/bash
with_items
:
gh_users
-
name
:
create non-sudo github users
user
:
name={{ item }}
shell=/bin/bash
with_items
:
gh_users_no_sudo
-
name
:
create .ssh directory
file
:
path=/home/{{ item }}/.ssh state=directory mode=0700
owner={{ item }}
with_items
:
gh_users
with_items
:
gh_users
+ gh_users_no_sudo
-
name
:
copy github key[s] to .ssh/authorized_keys
get_url
:
url=https://github.com/{{ item }}.keys
dest=/home/{{ item }}/.ssh/authorized_keys mode=0600
owner={{ item }}
with_items
:
gh_users
with_items
:
gh_users
+ gh_users_no_sudo
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