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
b6f7c4cf
Commit
b6f7c4cf
authored
Oct 01, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use all caps for user creation vars.
parent
8245acfc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
playbooks/roles/common/tasks/create_github_users.yml
+5
-5
playbooks/roles/common/tasks/create_users.yml
+2
-2
playbooks/roles/common/tasks/main.yml
+1
-1
No files found.
playbooks/roles/common/tasks/create_github_users.yml
View file @
b6f7c4cf
...
...
@@ -3,10 +3,10 @@
# Overview:
#
# Creates OS accounts for users based on their github credential.
# Expects to find a list in scope named
github_users
with
# Expects to find a list in scope named
GITHUB_USERS
with
# the following structure:
#
#
github_users
:
#
GITHUB_USERS
:
# - user: me_at_github
# groups:
# - adm
...
...
@@ -20,7 +20,7 @@
name={{ item.user }}
groups={{ ",".join(item.groups) }}
shell=/bin/bash
with_items
:
github_users
with_items
:
GITHUB_USERS
tags
:
-
users
-
update
...
...
@@ -29,7 +29,7 @@
file
:
path=/home/{{ item.user }}/.ssh state=directory mode=0700
owner={{ item.user }} group={{ item.user }}
with_items
:
github_users
with_items
:
GITHUB_USERS
tags
:
-
users
-
update
...
...
@@ -39,7 +39,7 @@
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
with_items
:
GITHUB_USERS
tags
:
-
users
-
update
playbooks/roles/common/tasks/create_users.yml
View file @
b6f7c4cf
...
...
@@ -36,8 +36,8 @@
-
name
:
common | Creating env users
user
:
name={{ item.user }} {% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %} shell=/bin/bash
with_items
:
env_users
when
:
env_users
is defined
with_items
:
ENV_USERS
when
:
ENV_USERS
is defined
tags
:
-
users
-
update
...
...
playbooks/roles/common/tasks/main.yml
View file @
b6f7c4cf
---
-
include
:
create_users.yml
-
include
:
create_github_users.yml
when
:
github_users
is defined
when
:
GITHUB_USERS
is defined
-
name
:
common | Add user www-data
# This user should be created on the system by default
...
...
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