Commit b9af5fc4 by Feanil Patel Committed by GitHub

Merge pull request #4022 from edx/revert-3974-asadiqbal08/ENT-322

Revert "[asadiqbal08/ENT-322] Add 'enterprise_worker' user to LMS user provisioning"
parents 328be0df c344c2b7
...@@ -221,5 +221,3 @@ COMMON_JWT_AUDIENCE: 'SET-ME-PLEASE' ...@@ -221,5 +221,3 @@ COMMON_JWT_AUDIENCE: 'SET-ME-PLEASE'
COMMON_JWT_ISSUER: '{{ COMMON_OIDC_ISSUER }}' COMMON_JWT_ISSUER: '{{ COMMON_OIDC_ISSUER }}'
COMMON_JWT_SECRET_KEY: 'SET-ME-PLEASE' COMMON_JWT_SECRET_KEY: 'SET-ME-PLEASE'
# Set worker user default
CREATE_SERVICE_WORKER_USERS: True
...@@ -1304,10 +1304,3 @@ edxapp_cms_variant: cms ...@@ -1304,10 +1304,3 @@ edxapp_cms_variant: cms
# Worker Settings # Worker Settings
worker_django_settings_module: '{{ EDXAPP_SETTINGS }}' worker_django_settings_module: '{{ EDXAPP_SETTINGS }}'
# Add default service worker users
SERVICE_WORKER_USERS:
- email: 'enterprise_worker@example.com'
username: "{{ EDXAPP_ENTERPRISE_SERVICE_WORKER_USERNAME }}"
is_staff: true
is_superuser: false
...@@ -417,22 +417,3 @@ ...@@ -417,22 +417,3 @@
become_user: "{{ common_web_user }}" become_user: "{{ common_web_user }}"
tags: tags:
- manage - manage
- name: build service worker users list
set_fact:
service_worker_users: "{{ [SERVICE_WORKER_USERS] }}"
when: CREATE_SERVICE_WORKER_USERS
tags:
- manage
- manage:db
- name: create service worker users
shell: "{{ edxapp_venv_bin }}/python ./manage.py lms --settings={{ edxapp_settings }} --service-variant lms manage_user {{ item.username}} {{ item.email }} --unusable-password {% if item.is_staff %} --staff{% endif %}"
args:
chdir: "{{ edxapp_code_dir }}"
become_user: "{{ common_web_user }}"
with_items: "{{ service_worker_users }}"
when: CREATE_SERVICE_WORKER_USERS
tags:
- manage
- manage:db
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment