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
87c533ef
Commit
87c533ef
authored
Jul 17, 2017
by
Shirley He
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove SANDBOX_CREATE_ADMIN_USER var
parent
2f881bb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
+2
-9
playbooks/roles/common_vars/defaults/main.yml
+0
-2
playbooks/roles/demo/defaults/main.yml
+1
-0
playbooks/roles/demo/tasks/deploy.yml
+1
-7
No files found.
playbooks/roles/common_vars/defaults/main.yml
View file @
87c533ef
...
...
@@ -221,5 +221,3 @@ COMMON_JWT_AUDIENCE: 'SET-ME-PLEASE'
COMMON_JWT_ISSUER
:
'
{{
COMMON_OIDC_ISSUER
}}'
COMMON_JWT_SECRET_KEY
:
'
SET-ME-PLEASE'
# Set sandbox admin default
SANDBOX_CREATE_ADMIN_USER
:
True
playbooks/roles/demo/defaults/main.yml
View file @
87c533ef
...
...
@@ -41,6 +41,7 @@ demo_staff_user:
hashed_password
:
"
{{
demo_hashed_password
}}"
is_staff
:
true
is_superuser
:
false
SANDBOX_EDXAPP_USERS
:
[]
demo_edxapp_user
:
'
edxapp'
demo_edxapp_settings
:
'
{{
COMMON_EDXAPP_SETTINGS
}}'
demo_edxapp_venv_bin
:
'
{{
COMMON_APP_DIR
}}/{{
demo_edxapp_user
}}/venvs/{{demo_edxapp_user}}/bin'
...
...
playbooks/roles/demo/tasks/deploy.yml
View file @
87c533ef
...
...
@@ -28,13 +28,7 @@
-
name
:
build staff, admin, and test user list
set_fact
:
demo_test_admin_and_staff_users
:
"
{{
demo_test_and_staff_users
+
[SANDBOX_EDXAPP_USERS]
}}"
when
:
SANDBOX_CREATE_ADMIN_USER
-
name
:
build staff, admin, and test user list
set_fact
:
demo_test_admin_and_staff_users
:
"
{{
demo_test_and_staff_users
}}"
when
:
not SANDBOX_CREATE_ADMIN_USER
demo_test_admin_and_staff_users
:
"
{{
demo_test_and_staff_users
+
SANDBOX_EDXAPP_USERS
}}"
-
name
:
create some test users
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings={{
demo_edxapp_settings
}}
--service-variant
lms
manage_user
{{
item.username}}
{{
item.email
}}
--initial-password-hash
{{
item.hashed_password
|
quote
}}{%
if
item.is_staff
%}
--staff{%
endif
%}{%
if
item.is_superuser
%}
--superuser{%
endif
%}"
...
...
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