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
600eafba
Commit
600eafba
authored
Oct 27, 2016
by
Kevin Falcone
Committed by
GitHub
Oct 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3435 from edx/jibsheet/only-security-updates
Use unattended-upgrade to only take security updates
parents
47b02a78
b73c2017
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
+15
-1
CHANGELOG.md
+4
-0
playbooks/roles/security/defaults/main.yml
+2
-0
playbooks/roles/security/tasks/security-ubuntu.yml
+9
-1
No files found.
CHANGELOG.md
View file @
600eafba
...
...
@@ -192,3 +192,7 @@
-
Role: discovery
-
Added
`PUBLISHER_FROM_EMAIL`
for sending emails to publisher app users.
-
Role: security
-
Changed SECURITY_UPGRADE_ON_ANSIBLE to only apply security updates. If you want to retain the behavior of running safe-upgrade,
you should switch to using SAFE_UPGRADE_ON_ANSIBLE.
playbooks/roles/security/defaults/main.yml
View file @
600eafba
...
...
@@ -20,6 +20,8 @@ SECURITY_UNATTENDED_UPGRADES: false
# set to true to upgrade all packages nightly. false will only upgrade from security repo.
SECURITY_UPDATE_ALL_PACKAGES
:
false
# set to true to run aptitute safe-upgrade whenever ansible is run
SAFE_UPGRADE_ON_ANSIBLE
:
false
# set to true to run unattended-upgrade during ansible runs. This is expected to only install security udpates.
SECURITY_UPGRADE_ON_ANSIBLE
:
false
...
...
playbooks/roles/security/tasks/security-ubuntu.yml
View file @
600eafba
...
...
@@ -11,7 +11,7 @@
-
name
:
Update all system packages
apt
:
upgrade
:
safe
when
:
S
ECURITY
_UPGRADE_ON_ANSIBLE
when
:
S
AFE
_UPGRADE_ON_ANSIBLE
-
name
:
Configure periodic unattended-upgrades
template
:
...
...
@@ -50,6 +50,14 @@
state
:
absent
when
:
SECURITY_UPDATE_ALL_PACKAGES or not SECURITY_UNATTENDED_UPGRADES
# We dry-run because unattended-upgrade is quiet, and only had -d (debug) not -v (verbose)
-
name
:
"
Take
security
updates
during
ansible
runs"
command
:
"
{{
item
}}"
when
:
SECURITY_UPGRADE_ON_ANSIBLE
with_items
:
-
unattended-upgrade --dry-run
-
unattended-upgrade
#### Bash security vulnerability
-
name
:
Check if we are vulnerable
...
...
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