Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example mesos slave playbook? #8

Open
skinney6 opened this issue May 8, 2016 · 1 comment
Open

example mesos slave playbook? #8

skinney6 opened this issue May 8, 2016 · 1 comment

Comments

@skinney6
Copy link

skinney6 commented May 8, 2016

Could you add an example playbook for a mesos slave?
These are great.
Thanks very much!

@ernestas-poskus
Copy link
Member

  1. Clone: java, zookeeper and mesos repositories into your roles path defined by ansible.cfg
roles_path    = /etc/ansible/roles
  1. Create testing environment e.g.: Vagrant CentOS 7

  2. Run playbook

# Java + Zookeeper + Mesos
- name: Java + Zookeeper + Mesos [master-slave]
  hosts: all
  sudo: yes
  roles:
    - role: ansible-java
      java_packages:
        - java-1.8.0-openjdk

    - role: ansible-zookeeper
      zookeeper_version: 3.4.8

    - role: ansible-mesos
      mesos_install_mode: master-slave
      mesos_ip: 127.0.0.1
      mesos_version: '0.28.1'

Mesos requires zookeeper for master elections, zookeeper requires Java, so following should be installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants