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
edx
configuration
Commits
054e9607
Commit
054e9607
authored
Feb 04, 2014
by
Sef Kloninger
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #740 from edx/sef/gh_user_no_sudo
Turn off hash merge, add gh_user_no_sudo
parents
979de54c
1d650f01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
playbooks/edx-west/prod-jumpbox.yml
+4
-1
playbooks/edx-west/stage-ansible.cfg
+0
-1
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 @
054e9607
...
@@ -17,7 +17,10 @@
...
@@ -17,7 +17,10 @@
-
ali123
-
ali123
-
caesar2164
-
caesar2164
-
dcadams
-
dcadams
-
nparlante
gh_users_no_sudo
:
-
jinpa
-
jinpa
-
gbruhns
-
gbruhns
-
nparlante
-
paepcke
-
akshayak
tags
:
users
tags
:
users
playbooks/edx-west/stage-ansible.cfg
View file @
054e9607
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
[defaults]
[defaults]
# Always have these for using the configuration repo
# Always have these for using the configuration repo
jinja2_extensions=jinja2.ext.do
jinja2_extensions=jinja2.ext.do
hash_behaviour=merge
# These are environment-specific defaults
# These are environment-specific defaults
forks=10
forks=10
...
...
playbooks/roles/gh_users/defaults/main.yml
View file @
054e9607
...
@@ -3,3 +3,4 @@
...
@@ -3,3 +3,4 @@
# update the system bashrc default
# update the system bashrc default
GH_USERS_PROMPT
:
"
"
GH_USERS_PROMPT
:
"
"
gh_users
:
[]
gh_users
:
[]
gh_users_no_sudo
:
[]
playbooks/roles/gh_users/tasks/main.yml
View file @
054e9607
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
# gh_users:
# gh_users:
# - joe
# - joe
# - mark
# - mark
# gh_users_no_sudo:
# - tourist_dave
-
name
:
gh_users | creating default .bashrc
-
name
:
gh_users | creating default .bashrc
...
@@ -27,22 +29,28 @@
...
@@ -27,22 +29,28 @@
dest=/etc/sudoers.d/gh owner=root group=root
dest=/etc/sudoers.d/gh owner=root group=root
mode=0440 validate='visudo -cf %s'
mode=0440 validate='visudo -cf %s'
-
name
:
gh_users | create github users
-
name
:
gh_users | create
sudo
github users
user
:
user
:
name={{ item }} groups=gh
name={{ item }} groups=gh
shell=/bin/bash
shell=/bin/bash
with_items
:
gh_users
with_items
:
gh_users
-
name
:
gh_users | create non-sudo github users
user
:
name={{ item }}
shell=/bin/bash
with_items
:
gh_users_no_sudo
-
name
:
gh_users | create .ssh directory
-
name
:
gh_users | create .ssh directory
file
:
file
:
path=/home/{{ item }}/.ssh state=directory mode=0700
path=/home/{{ item }}/.ssh state=directory mode=0700
owner={{ item }}
owner={{ item }}
with_items
:
gh_users
with_items
:
gh_users
+ gh_users_no_sudo
-
name
:
gh_users | copy github key[s] to .ssh/authorized_keys
-
name
:
gh_users | copy github key[s] to .ssh/authorized_keys
get_url
:
get_url
:
url=https://github.com/{{ item }}.keys
url=https://github.com/{{ item }}.keys
dest=/home/{{ item }}/.ssh/authorized_keys mode=0600
dest=/home/{{ item }}/.ssh/authorized_keys mode=0600
owner={{ item }}
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