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
3ac02010
Commit
3ac02010
authored
Jul 27, 2016
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address comments
parent
5d2bba3f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
25 deletions
+20
-25
playbooks/roles/aws/tasks/main.yml
+3
-8
playbooks/roles/common/tasks/main.yml
+1
-1
playbooks/roles/common_vars/defaults/main.yml
+1
-1
playbooks/roles/supervisor/tasks/main.yml
+15
-15
No files found.
playbooks/roles/aws/tasks/main.yml
View file @
3ac02010
...
@@ -99,15 +99,10 @@
...
@@ -99,15 +99,10 @@
-
name
:
Update the ssh motd on Ubuntu
-
name
:
Update the ssh motd on Ubuntu
file
:
file
:
path
:
"
{{
item.
0
}}"
path
:
"
{{
item.
item
}}"
mode
:
"
0644"
mode
:
"
0644"
when
:
>
when
:
>
vagrant_home_dir.stat.exists == false and
vagrant_home_dir.stat.exists == false and
ansible_distribution in common_debian_variants and
ansible_distribution in common_debian_variants and
item.1.stat.exists
item.stat.exists
with_together
:
with_items
:
motd_files_exist.results
-
-
"
/etc/update-motd.d/10-help-text"
-
"
/usr/share/landscape/landscape-sysinfo.wrapper"
-
"
/etc/update-motd.d/51-cloudguest"
-
"
/etc/update-motd.d/91-release-upgrade"
-
motd_files_exist.results
playbooks/roles/common/tasks/main.yml
View file @
3ac02010
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
apt
:
apt
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
install_recommends
:
yes
install_recommends
:
yes
state
:
present
state
:
present
update_cache
:
yes
update_cache
:
yes
with_items
:
"
{{
common_custom_debian_pkgs
}}"
with_items
:
"
{{
common_custom_debian_pkgs
}}"
when
:
>
when
:
>
...
...
playbooks/roles/common_vars/defaults/main.yml
View file @
3ac02010
...
@@ -115,7 +115,7 @@ common_debian_pkgs:
...
@@ -115,7 +115,7 @@ common_debian_pkgs:
-
python-pip
-
python-pip
-
python2.7-dev
-
python2.7-dev
# Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA
# Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA
common_custom_debian_pkgs
:
common_custom_debian_pkgs
:
-
"
python2.7=2.7.10-0+{{
ansible_distribution_release
}}1"
-
"
python2.7=2.7.10-0+{{
ansible_distribution_release
}}1"
...
...
playbooks/roles/supervisor/tasks/main.yml
View file @
3ac02010
...
@@ -121,19 +121,7 @@
...
@@ -121,19 +121,7 @@
dest
:
"
/etc/init/{{
supervisor_service
}}.conf"
dest
:
"
/etc/init/{{
supervisor_service
}}.conf"
owner
:
root
owner
:
root
group
:
root
group
:
root
when
:
ansible_distribution_major_version < 16
when
:
ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16
tags
:
-
install
-
install:base
# NB: with systemd, pre_supervisor is a pre-task for supervisor, not a separate service
-
name
:
Create supervisor systemd job
template
:
src
:
"
etc/init/supervisor-systemd.service.j2"
dest
:
"
/etc/systemd/system/{{
supervisor_service
}}.service"
owner
:
root
group
:
root
when
:
ansible_distribution_major_version >= 16
tags
:
tags
:
-
install
-
install
-
install:base
-
install:base
...
@@ -149,11 +137,23 @@
...
@@ -149,11 +137,23 @@
group
:
root
group
:
root
when
:
>
when
:
>
supervisor_service == "supervisor" and disable_edx_services and not devstack
supervisor_service == "supervisor" and disable_edx_services and not devstack
and ansible_distribution_major_version < 16
and ansible_distribution
== 'Ubuntu' and ansible_distribution
_major_version < 16
tags
:
tags
:
-
to-remove
-
to-remove
-
aws-specfic
-
aws-specfic
# NB: with systemd, pre_supervisor is a pre-task for supervisor, not a separate service
-
name
:
Create supervisor systemd job
template
:
src
:
"
etc/init/supervisor-systemd.service.j2"
dest
:
"
/etc/systemd/system/{{
supervisor_service
}}.service"
owner
:
root
group
:
root
when
:
not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16)
tags
:
-
install
-
install:base
-
name
:
Write the pre_suprevisor python script
-
name
:
Write the pre_suprevisor python script
copy
:
copy
:
src
:
pre_supervisor_checks.py
src
:
pre_supervisor_checks.py
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
service
:
service
:
name
:
"
{{
supervisor_service
}}.service"
name
:
"
{{
supervisor_service
}}.service"
enabled
:
yes
enabled
:
yes
when
:
ansible_distribution_major_version >= 16
when
:
not (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 16)
tags
:
tags
:
-
install
-
install
-
install:base
-
install:base
...
...
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