-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hold securedrop-grsec package in staging
Ensures that the "securedrop-grsec" package built locally for staging takes precedence, so that the version served from the apt-test.freedom.press repository doesn't win out.
- Loading branch information
Conor Schaefer
committed
Feb 23, 2021
1 parent
00568de
commit c2a46a3
Showing
4 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
install_files/ansible-base/roles/grsecurity/tasks/from_local_pkg_install_grsec.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
--- | ||
- name: Get the grsec version of the current scenario | ||
set_fact: | ||
grsec_version: "{% if ansible_distribution_release == 'xenial' %}{{ securedrop_pkg_grsec_xenial.ver }}{% else %}{{ securedrop_pkg_grsec_focal.ver }}{% endif %}" | ||
|
||
- name: Copy locally built securedrop-grsec metapackage | ||
copy: | ||
src: "../../build/{{ securedrop_target_distribution }}/securedrop-grsec-{{ grsec_version }}+{{ securedrop_target_distribution }}-amd64.deb" | ||
dest: /root/securedrop-grsec.deb | ||
|
||
- name: Install locally built securedrop-grsec metapackage | ||
command: apt-get install -y -f /root/securedrop-grsec.deb | ||
|
||
- name: Mark package as held, so it doesn't update to apt-test version | ||
command: apt-mark hold securedrop-grsec |