Skip to content

Commit 284333b

Browse files
DavidWittmanernestas-poskus
authored andcommitted
Use HTTPS for repository URLs (#53)
RPM packages should be installed over HTTPS to prevent MITM attacks. Apt is less susceptible since all packages are signed and verified, but we should rely on the long key IDs instead of short ones to reduce the chance of an OpenPGP key ID collision. Closes #47.
1 parent fcea7ed commit 284333b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ mesos_package_version: "0.2.70"
77
mesosphere_apt_url: "http://repos.mesosphere.com/{{ ansible_distribution | lower }}"
88

99
# RedHat: EPEL and Mesosphere yum repositories URL
10-
epel_repo: "http://dl.fedoraproject.org/pub/epel/{{ os_version_major }}/{{ ansible_architecture }}/{{ epel_releases[os_version_major] }}"
11-
mesosphere_yum_repo: "http://repos.mesosphere.com/el/{{ os_version_major }}/noarch/RPMS/{{ mesosphere_releases[os_version_major] }}"
10+
epel_repo: "https://dl.fedoraproject.org/pub/epel/{{ os_version_major }}/{{ ansible_architecture }}/{{ epel_releases[os_version_major] }}"
11+
mesosphere_yum_repo: "https://repos.mesosphere.com/el/{{ os_version_major }}/noarch/RPMS/{{ mesosphere_releases[os_version_major] }}"
1212

1313
# conf file settings
1414
mesos_cluster_name: "mesos_cluster"

tasks/Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Add apt-key
3-
apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present
3+
apt_key: id=DF7D54CBE56151BF keyserver=keyserver.ubuntu.com state=present
44

55
- name: Add mesosphere repo
66
apt_repository: repo='deb {{ mesosphere_apt_url }} {{ansible_distribution_release|lower}} main' state=present

0 commit comments

Comments
 (0)