AnsibleShipyard.mesos

ansible-mesos - Ansible Playbook for Mesos

Build Status

The ansible-mesos role helps you install and set up a Mesos cluster. You can choose to set it up as a master, a slave, or both. It works on Ubuntu and RedHat/Centos operating systems.

This role lets you choose specific slave executors so you can use Docker natively.

Installation

Run the following command to install:

ansible-galaxy install JasonGiedymin.mesos

Dependencies

You will need Java and Zookeeper:

Requirements

You need Ansible version 1.7 or higher.

Role Variables

Here are some of the key variables you can set:

---
mesos_install_mode: "master" # Options: master, slave, master-slave
mesos_version: "1.0.1"

# Settings for Debian
mesos_package_version: "2.0.93"
mesos_os_distribution: "{{ ansible_distribution | lower }}"
mesos_os_version: "{{ ansible_distribution_version.split('.') | join('') }}"
mesos_apt_url: "http://{{ mesos_repo_host }}/{{ ansible_distribution | lower }}"
mesos_package_full_version: "{{ mesos_version }}-{{ mesos_package_version }}.{{ mesos_os_distribution }}{{ mesos_os_version }}"
mesos_apt_package: "mesos={{ mesos_package_full_version }}"

# Settings for RedHat
epel_repo: "https://dl.fedoraproject.org/pub/epel/{{ os_version_major }}/{{ ansible_architecture }}/{{ epel_releases[os_version_major] }}"
mesosphere_yum_repo: "https://repos.mesosphere.com/el/{{ os_version_major }}/noarch/RPMS/{{ mesosphere_releases[os_version_major] }}"

# Configuration file settings
mesos_cluster_name: "mesos_cluster"
mesos_ip: "{{ ansible_default_ipv4.address }}"
mesos_hostname: "{{ ansible_hostname }}"
mesos_master_port: "5050"
mesos_slave_port: "5051"
mesos_log_location: "/var/log/mesos"
mesos_ulimit: "-n 8192"
mesos_work_dir: "/var/mesos"
mesos_quorum: "1"
zookeeper_client_port: "2181"
zookeeper_hostnames: "{{ mesos_hostname }}:{{ zookeeper_client_port }}"
mesos_zookeeper_masters: "zk://{{ zookeeper_hostnames }}/mesos"
mesos_owner: root
mesos_group: root

# Container settings
mesos_containerizers: "docker,mesos"
mesos_executor_timeout: "5mins"

# SSL Settings
mesos_ssl_enabled: false
mesos_ssl_support_downgrade: false
mesos_ssl_key_file: # File path for the SSL key when SSL is enabled
mesos_ssl_cert_file: # File path for the SSL certificate when SSL is enabled

mesos_option_prefix: "MESOS_"

# Additional configurations
mesos_additional_configs: []
  # Example:
  # - name: FOO
  #   value: bar

# Additional settings for master
mesos_master_additional_configs: []
  # Example:
  # - name: FOO
  #   value: bar

# Additional settings for slave
mesos_slave_additional_configs: []
  # Example:
  # - name: FOO
  #   value: bar

Playbook Example

Here is an example of how to use the playbook:

- name: Install Java, Zookeeper, and Mesos [master-slave]
  hosts: all
  sudo: yes
  roles:
    - role: geerlingguy.java
    - role: AnsibleShipyard.ansible-zookeeper
    - role: ansible-mesos
      mesos_install_mode: master-slave

Note: Docker is only needed on slave nodes and isn't installed by default. If using Docker with Mesos, ensure Docker is installed on the slave nodes and set mesos_containerizers: "docker,mesos" for those nodes.

License

This project is licensed under the Apache License.

AnsibleShipyard

Check out our other playbooks:

  1. ansible-marathon
  2. ansible-chronos
  3. ansible-zookeeper

Author Information

This project is developed by @AnsibleShipyard/developers and others.

Informazioni sul progetto

Ansible NodeJS Playbook Role

Installa
ansible-galaxy install AnsibleShipyard.mesos
Licenza
apache-2.0
Download
845
Proprietario
Ansible Roles with a touch of Docker