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
58817a99
Commit
58817a99
authored
Oct 14, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding tags to forum role
parent
20b2a559
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
playbooks/roles/forum/tasks/deploy.yml
+21
-1
playbooks/roles/forum/tasks/main.yml
+15
-2
No files found.
playbooks/roles/forum/tasks/deploy.yml
View file @
58817a99
...
...
@@ -8,6 +8,9 @@
mode=0644
sudo_user
:
"
{{
supervisor_user
}}"
register
:
forum_supervisor
tags
:
-
install
-
install:configuration
-
name
:
enable the supervisor config
file
:
>
...
...
@@ -20,7 +23,10 @@
sudo_user
:
"
{{
supervisor_user
}}"
when
:
not disable_edx_services
register
:
forum_supervisor
tags
:
-
install
-
install:confugration
-
name
:
create the supervisor wrapper
template
:
>
src={{ forum_supervisor_wrapper|basename }}.j2
...
...
@@ -28,6 +34,9 @@
mode=0755
sudo_user
:
"
{{
forum_user
}}"
notify
:
restart the forum service
tags
:
-
install
-
install:configuration
-
name
:
git checkout forum repo into {{ forum_code_dir }}
git
:
>
...
...
@@ -36,6 +45,9 @@
sudo_user
:
"
{{
forum_user
}}"
register
:
forum_checkout
notify
:
restart the forum service
tags
:
-
install
-
install:code
# TODO: This is done as the common_web_user
# since the process owner needs write access
...
...
@@ -45,6 +57,9 @@
sudo_user
:
"
{{
common_web_user
}}"
environment
:
"
{{
forum_environment
}}"
notify
:
restart the forum service
tags
:
-
install
-
install:code
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
...
...
@@ -56,6 +71,9 @@
register
:
supervisor_update
changed_when
:
supervisor_update.stdout is defined and supervisor_update.stdout != ""
when
:
not disable_edx_services
tags
:
-
install
-
install:configuration
-
name
:
ensure forum is started
supervisorctl
:
>
...
...
@@ -64,6 +82,8 @@
config={{ supervisor_cfg }}
state=started
when
:
not disable_edx_services
tags
:
-
manage
-
include
:
test.yml tags=deploy
...
...
playbooks/roles/forum/tasks/main.yml
View file @
58817a99
---
1;2802;0c
---
# forum
#
...
...
@@ -27,12 +27,18 @@
createhome=no
shell=/bin/false
notify
:
restart the forum service
tags
:
-
install
-
install:base
-
name
:
create forum app dir
file
:
>
path="{{ forum_app_dir }}" state=directory
owner="{{ forum_user }}" group="{{ common_web_group }}"
notify
:
restart the forum service
tags
:
-
install
-
install:base
-
name
:
setup the forum env
template
:
>
...
...
@@ -41,11 +47,17 @@
mode=0644
notify
:
-
restart the forum service
tags
:
-
install
-
install:base
-
name
:
create {{ forum_data_dir }}
file
:
>
path={{ forum_data_dir }} state=directory
owner="{{ common_web_user }}" group="{{ common_web_group }}"
mode=0777
tags
:
-
install
-
install:base
-
include
:
deploy.yml tags=deploy
\ 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