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
1eec3be3
Commit
1eec3be3
authored
Jul 31, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task to create OS users based on github credentials and keys.
parent
3157401e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
playbooks/roles/common/tasks/create_github_users.yml
+46
-0
No files found.
playbooks/roles/common/tasks/create_github_users.yml
0 → 100644
View file @
1eec3be3
---
# Overview:
#
# Creates OS accounts for users based on their github credential.
# Expects to find a list in scope named github_users with
# the following structure:
#
# github_users:
# - user: me_at_github
# groups:
# - adm
# - user: otheruser
# groups:
# - users
#
-
name
:
common | create local user for github user
user
:
name={{ item.user }}
{% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %}
shell=/bin/bash
with_items
:
github_users
tags
:
-
users
-
update
-
name
:
common | create .ssh directory
file
:
path=/home/{{ item.user }}/.ssh state=directory mode=0600
owner={{ item.user }} group={{ item.user }}
with_items
:
github_users
tags
:
-
users
-
update
-
name
:
common | copy github key[s] to .ssh/authorized_keys
get_url
:
url=https://github.com/{{ item.user }}.keys
dest=/home/{{ item.user }}/.ssh/authorized_keys mode=0600
owner={{ item.user }} group={{ item.user }}
with_items
:
github_users
tags
:
-
users
-
update
\ No newline at end of file
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