Skip to content

Commit

Permalink
Fix containerization + Make APT-Package name more generic with varial…
Browse files Browse the repository at this point in the history
…bes (#60)

* Make the version of mesos configurable as a whole

* Add docker to mesos_containerizers
  • Loading branch information
guenhter authored and ernestas-poskus committed Sep 7, 2016
1 parent 5402208 commit 3de781d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mesos_package_version: "0.2.70"
mesosphere_apt_url: "http://repos.mesosphere.com/{{ ansible_distribution | lower }}"
mesos_os_distribution: "{{ ansible_distribution | lower }}"
mesos_os_version: "{{ ansible_distribution_version.split('.') | join('') }}"
mesos_apt_package: "mesos={{ mesos_version }}-{{ mesos_package_version }}.{{ mesos_os_distribution }}{{ mesos_os_version }}"

# RedHat: EPEL and Mesosphere yum repositories URL
epel_repo: "https://dl.fedoraproject.org/pub/epel/{{ os_version_major }}/{{ ansible_architecture }}/{{ epel_releases[os_version_major] }}"
Expand All @@ -29,7 +30,7 @@ mesos_owner: root
mesos_group: root

# Containerizer
mesos_containerizers: "mesos"
mesos_containerizers: "docker,mesos"
mesos_executor_timeout: "5mins"

mesos_option_prefix: "MESOS_"
Expand Down
7 changes: 3 additions & 4 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present

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

- name: Install Debian OS packages
apt: pkg={{item}} state=present update_cache=yes
apt: pkg={{ item }} state=present update_cache=yes
with_items:
- wget
- curl
- unzip
- python-setuptools
- python-dev
- mesos={{ mesos_version }}-{{ mesos_package_version }}.{{ mesos_os_distribution }}{{ mesos_os_version }}

- "{{ mesos_apt_package }}"

0 comments on commit 3de781d

Please sign in to comment.