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
5fc48d10
Commit
5fc48d10
authored
Jan 24, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a general role to DRY out specific roles.
parent
7332bbbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
0 deletions
+113
-0
playbooks/roles/edx_service/defaults/main.yml
+25
-0
playbooks/roles/edx_service/handlers/main.yml
+18
-0
playbooks/roles/edx_service/meta/main.yml
+20
-0
playbooks/roles/edx_service/tasks/main.yml
+50
-0
No files found.
playbooks/roles/edx_service/defaults/main.yml
0 → 100644
View file @
5fc48d10
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role edx_service
#
#
# vars are namespace with the module name.
#
edx_service_role_name
:
edx_service
#
# OS packages
#
edx_service_debian_pkgs
:
[]
edx_service_redhat_pkgs
:
[]
playbooks/roles/edx_service/handlers/main.yml
0 → 100644
View file @
5fc48d10
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Handlers for role edx_service
#
# Overview:
#
#
-
name
:
edx_service | notify me
debug
:
msg="stub handler"
playbooks/roles/edx_service/meta/main.yml
0 → 100644
View file @
5fc48d10
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role edx_service
#
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
playbooks/roles/edx_service/tasks/main.yml
0 → 100644
View file @
5fc48d10
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role edx_service
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
-
name
:
create application user
user
:
>
name="{{ edx_service_name }}"
home="{{ COMMON_APP_DIR }}/{{ edx_service_name }}"
createhome=no
shell=/bin/false
-
name
:
create edx_service app and venv dir
file
:
>
path="{{ item }}"
state=directory
owner="{{ edx_service_name }}"
group="{{ common_web_group }}"
with_items
:
-
"
{{
COMMON_APP_DIR
}}/{{
edx_service_name
}}"
-
"
{{
COMMON_APP_DIR
}}/{{
edx_service_name
}}/venvs"
-
name
:
install a bunch of system packages on which edx_service relies
apt
:
pkg={{ item }} state=present
with_items
:
"
{{
edx_service_name
}}_debian_pkgs"
when
:
ansible_distribution in common_debian_variants
-
name
:
install a bunch of system packages on which edx_service relies
yum
:
pkg={{ item }} state=present
with_items
:
"
{{
edx_service_name
}}_redhat_pkgs"
when
:
ansible_distribution in common_redhat_variants
\ No newline at end of file
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