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