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
1bf7c64d
Commit
1bf7c64d
authored
Feb 26, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding more comments
parent
9c77bdf0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
21 deletions
+24
-21
playbooks/roles/analytics-server/defaults/main.yml
+0
-8
playbooks/roles/analytics-server/meta/main.yml
+7
-4
playbooks/roles/edxapp/meta/main.yml
+4
-3
playbooks/roles/user/tasks/main.yml
+13
-6
No files found.
playbooks/roles/analytics-server/defaults/main.yml
View file @
1bf7c64d
...
...
@@ -66,14 +66,6 @@ as_env_vars:
ANALYTICS_SERVER_LOG_LEVEL
:
"
{{
AS_LOG_LEVEL
}}"
#
# Used by the included role, automated.
# See meta/main.yml
#
as_automated_rbash_links
:
-
/usr/bin/sudo
-
/usr/bin/scp
#
# OS packages
#
...
...
playbooks/roles/analytics-server/meta/main.yml
View file @
1bf7c64d
---
dependencies
:
-
role
:
user
name
:
automator
sudoers_template
:
'
99-automator-analytics.j2'
user_authorized_keys
:
"
{{
AS_AUTOMATOR_AUTHORIZED_KEYS
}}"
rbash_links
:
"
{{
as_automated_rbash_links
}}"
user_info
:
-
name
:
automator
sudoers_template
:
'
99-automator-analytics.j2'
user_authorized_keys
:
"
{{
AS_AUTOMATOR_AUTHORIZED_KEYS
}}"
user_rbash_links
:
-
/usr/bin/sudo
-
/usr/bin/scp
when
:
AS_AUTOMATOR_AUTHORIZED_KEYS|length != 0
playbooks/roles/edxapp/meta/main.yml
View file @
1bf7c64d
...
...
@@ -7,7 +7,8 @@ dependencies:
rbenv_ruby_version
:
"
{{
edxapp_ruby_version
}}"
-
devpi
-
role
:
user
name
:
automator
sudoers_template
:
'
99-edxapp-manage-cmds.j2'
user_authorized_keys
:
"
{{
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
}}"
user_info
:
name
:
automator
sudoers_template
:
'
99-edxapp-manage-cmds.j2'
user_authorized_keys
:
"
{{
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS
}}"
when
:
EDXAPP_AUTOMATOR_AUTHORIZED_KEYS|length != 0
playbooks/roles/user/tasks/main.yml
View file @
1bf7c64d
...
...
@@ -35,26 +35,33 @@
#
# - role: user
# user_info:
# - name: joe
# # This restricted user is defined in meta/
# # for edxapp, it creates a user that can only
# # run manage.py commands
# - name: automator
# restricted: true
# # The sudoers file is optional.
# sudoers_template: '
roles/edxapp/templates/etc/sudoers.d/99-automator-edxapp-server
.j2'
# sudoers_template: '
99-edxapp-manage-cmds
.j2'
# authorized_keys:
# - ssh-rsa abcdef...
# - ssh-rsa ghiklm...
#
# # More users passed to the role, this one is a user
# # with full sudo, key fetched from github
# - name: frank
# github: true
# admin: true
#
# # This user is a normal login user without sudo, with
# # a couple keys passed in as parameters
# - name: sally
# authorized_keys:
# - ssh-rsa abcdef...
# - ssh-rsa ghiklm...
#
# Set user_rbash_links for links to be set in the restricted
# user's bin dir by default we only allow /usr/bin/sudo
# By default for restricted users we only allow sudo, if you
# want to provide more binaries add them to user_rbash_links
# which can be passed in as a paramter to the role.
#
-
fail
:
you must pass in a user_info parameter to this role
...
...
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