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
1a7b4b63
Commit
1a7b4b63
authored
Feb 26, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating the meta files for as and edxapp
parent
d4f78ef6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
23 deletions
+29
-23
playbooks/roles/analytics-server/defaults/main.yml
+4
-1
playbooks/roles/analytics-server/meta/main.yml
+6
-7
playbooks/roles/edxapp/defaults/main.yml
+2
-6
playbooks/roles/edxapp/meta/main.yml
+4
-4
playbooks/roles/user/tasks/main.yml
+6
-5
playbooks/roles/user/templates/etc/sudoers.d/99-analytics-manage-cmds.j2
+1
-0
playbooks/roles/user/templates/etc/sudoers.d/99-edxapp-manage-cmds.j2
+5
-0
playbooks/roles/user/templates/restricted.bashrc.j2
+1
-0
No files found.
playbooks/roles/analytics-server/defaults/main.yml
View file @
1a7b4b63
...
@@ -19,6 +19,9 @@ AS_SERVER_PORT: '9000'
...
@@ -19,6 +19,9 @@ AS_SERVER_PORT: '9000'
AS_ENV_LANG
:
'
en_US.UTF-8'
AS_ENV_LANG
:
'
en_US.UTF-8'
AS_LOG_LEVEL
:
'
INFO'
AS_LOG_LEVEL
:
'
INFO'
AS_WORKERS
:
'
4'
AS_WORKERS
:
'
4'
# add public keys to enable the automator user
# for running manage.py commands
AS_AUTOMATOR_AUTHORIZED_KEYS
:
[]
DATABASES
:
DATABASES
:
default
:
&databases_default
default
:
&databases_default
...
@@ -43,7 +46,7 @@ analytics_auth_config:
...
@@ -43,7 +46,7 @@ analytics_auth_config:
MONGO_STORED_QUERIES_COLLECTION
:
$AS_DB_RESULTS_COLLECTION
MONGO_STORED_QUERIES_COLLECTION
:
$AS_DB_RESULTS_COLLECTION
as_role_name
:
"
analytics-server"
as_role_name
:
"
analytics-server"
as_user
:
"
analytics-server"
as_user
:
"
analytics-server"
as_home
:
"
/opt/wwc/analytics-server"
as_home
:
"
/opt/wwc/analytics-server"
as_venv_dir
:
"
{{
as_home
}}/virtualenvs/analytics-server"
as_venv_dir
:
"
{{
as_home
}}/virtualenvs/analytics-server"
as_source_repo
:
"
git@github.com:edx/analytics-server.git"
as_source_repo
:
"
git@github.com:edx/analytics-server.git"
...
...
playbooks/roles/analytics-server/meta/main.yml
View file @
1a7b4b63
---
---
dependencies
:
dependencies
:
-
{
-
role
:
user
role
:
automated
,
name
:
automator
automated_rbash_links
:
$as_automated_rbash_links
,
sudoers_template
:
'
99-automator-analytics.j2'
autmoated_sudoers_dest
:
'
99-automator-analytics-server'
,
user_authorized_keys
:
"
{{
AS_AUTOMATOR_AUTHORIZED_KEYS
}}"
automated_sudoers_template
:
'
roles/analytics-server/templates/etc/sudoers.d/99-automator-analytics-server.j2'
rbash_links
:
"
{{
as_automated_rbash_links
}}"
}
when
:
AS_AUTOMATOR_AUTHORIZED_KEYS|length != 0
playbooks/roles/edxapp/defaults/main.yml
View file @
1a7b4b63
...
@@ -123,12 +123,8 @@ EDXAPP_PYTHON_SANDBOX: false
...
@@ -123,12 +123,8 @@ EDXAPP_PYTHON_SANDBOX: false
# it puts the sandbox in 'complain' mode, for reporting but not enforcement
# it puts the sandbox in 'complain' mode, for reporting but not enforcement
EDXAPP_SANDBOX_ENFORCE
:
true
EDXAPP_SANDBOX_ENFORCE
:
true
# Supply authorized keys used for remote management via the automated
# Supply authorized keys used for remote management via the user
# role, see meta/main.yml. Ensure you know what this does before
# role.
# enabling. The boolean flag determines whether the role is included.
# This is done to make it possible to disable remote access easily by
# setting the flag to true and providing an empty array.
EDXAPP_INCLUDE_AUTOMATOR_ROLE
:
false
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
:
[]
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
:
[]
EDXAPP_USE_GIT_IDENTITY
:
false
EDXAPP_USE_GIT_IDENTITY
:
false
...
...
playbooks/roles/edxapp/meta/main.yml
View file @
1a7b4b63
...
@@ -6,8 +6,8 @@ dependencies:
...
@@ -6,8 +6,8 @@ dependencies:
rbenv_dir
:
"
{{
edxapp_app_dir
}}"
rbenv_dir
:
"
{{
edxapp_app_dir
}}"
rbenv_ruby_version
:
"
{{
edxapp_ruby_version
}}"
rbenv_ruby_version
:
"
{{
edxapp_ruby_version
}}"
-
devpi
-
devpi
-
role
:
automated
-
role
:
user
user_rbash_links
:
"
{{
edxapp_automated_rbash_links
}}"
name
:
automator
user_sudoers_template
:
'
roles/edxapp/templates/etc/sudoers.d/99-automator-edxapp-server
.j2'
sudoers_template
:
'
99-edxapp-manage-cmds
.j2'
user_authorized_keys
:
"
{{
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
}}"
user_authorized_keys
:
"
{{
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
}}"
when
:
EDXAPP_
INCLUDE_AUTOMATOR_ROLE
when
:
EDXAPP_
AUTOMATOR_AUTHORIZED_KEYS|length != 0
playbooks/roles/user/tasks/main.yml
View file @
1a7b4b63
...
@@ -144,9 +144,9 @@
...
@@ -144,9 +144,9 @@
with_items
:
user_info
with_items
:
user_info
-
name
:
create sudoers file from template
-
name
:
create sudoers file from template
copy
:
template
:
dest=/etc/sudoers.d/{{ item.sudoers_template|basename|replace('.j2','') }}
dest=/etc/sudoers.d/{{ item.sudoers_template|basename|replace('.j2','') }}
src={{ item.sudoers_template }} owner="root"
src=
etc/sudoers.d/
{{ item.sudoers_template }} owner="root"
group="root" mode=0440 validate='visudo -cf %s'
group="root" mode=0440 validate='visudo -cf %s'
when
:
item.restricted is defined and item.sudoers_template is defined
when
:
item.restricted is defined and item.sudoers_template is defined
with_items
:
user_info
with_items
:
user_info
...
@@ -168,9 +168,10 @@
...
@@ -168,9 +168,10 @@
-
name
:
create allowed command links
-
name
:
create allowed command links
file
:
file
:
src={{ item[1] }} dest=/home/{{ item[0] }}/bin/{{ item.[1]|basename }}
src
:
"
{{
item[1]
}}"
state=link
dest
:
"
/home/{{
item[0].name
}}/bin/{{
item[1]|basename
}}"
when
:
when item[0].restricted is defined
state
:
link
when
:
item[0].restricted is defined
with_nested
:
with_nested
:
-
user_info
-
user_info
-
user_rbash_links
-
user_rbash_links
playbooks/roles/user/templates/etc/sudoers.d/99-analytics-manage-cmds.j2
0 → 100644
View file @
1a7b4b63
{{ item.user }} ALL=({{ analytics_web_user }}) NOPASSWD:SETENV:{{ analytics_venv_dir }}/bin/django-admin.py run_all_queries *
playbooks/roles/user/templates/etc/sudoers.d/99-edxapp-manage-cmds.j2
0 → 100644
View file @
1a7b4b63
{{ item.name }} ALL=({{ common_web_user }}) NOPASSWD:SETENV:{{ edxapp_venv_dir }}/bin/django-admin.py migrate *
{{ item.name }} ALL=({{ common_web_user }}) NOPASSWD:SETENV:{{ edxapp_venv_dir }}/bin/django-admin.py seed_permissions_roles *
{{ item.name }} ALL=({{ common_web_user }}) NOPASSWD:SETENV:{{ edxapp_venv_dir }}/bin/django-admin.py set_staff *
{{ item.name }} ALL=({{ common_web_user }}) NOPASSWD:SETENV:{{ edxapp_venv_dir }}/bin/django-admin.py transfer_students *
playbooks/roles/user/templates/restricted.bashrc.j2
0 → 100644
View file @
1a7b4b63
PATH=${HOME}/bin
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