-
Notifications
You must be signed in to change notification settings - Fork 105
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
DCOS cassandra #396
Merged
Merged
DCOS cassandra #396
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Role Name | ||
========= | ||
|
||
Install mesos frameworks via capgemini:dcos-cli. | ||
|
||
Requirements | ||
------------ | ||
|
||
The tasks inside the role should be run only once, i.e run_once=true | ||
|
||
Role Variables | ||
-------------- | ||
|
||
frameworks_dcos_cli_image: capgemini/dcos-cli | ||
frameworks_zk_master_peers: "zk://{{ zookeeper_peers_nodes }}/mesos" | ||
frameworks_mesos_master_url: "http://{{ ansible_ssh_host }}:5050" | ||
frameworks_marathon_url: "http://{{ ansible_ssh_host }}:8080" | ||
|
||
frameworks_FRAMEWORK-NAME_enabled: false | ||
|
||
License | ||
------- | ||
|
||
BSD | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# defaults file for frameworks | ||
frameworks_dcos_cli_image: capgemini/dcos-cli | ||
frameworks_zk_master_peers: "zk://{{ zookeeper_peers_nodes }}/mesos" | ||
frameworks_mesos_master_url: "http://{{ ansible_ssh_host }}:{{ mesos_master_port }}" | ||
frameworks_marathon_url: "http://{{ ansible_ssh_host }}:{{ marathon_port }}" | ||
|
||
frameworks_cassandra_enabled: false | ||
frameworks_cassandra_node_count: 1 | ||
frameworks_list: | ||
- cassandra |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# handlers file for frameworks |
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 |
---|---|---|
@@ -0,0 +1,135 @@ | ||
--- | ||
galaxy_info: | ||
author: Alberto Lamela | ||
description: | ||
company: Capgemini | ||
# If the issue tracker for your role is not on github, uncomment the | ||
# next line and provide a value | ||
# issue_tracker_url: http://example.com/issue/tracker | ||
# Some suggested licenses: | ||
# - BSD (default) | ||
# - MIT | ||
# - GPLv2 | ||
# - GPLv3 | ||
# - Apache | ||
# - CC-BY | ||
license: license (GPLv2, CC-BY, etc) | ||
min_ansible_version: 1.2 | ||
# | ||
# Below are all platforms currently available. Just uncomment | ||
# the ones that apply to your role. If you don't see your | ||
# platform on this list, let us know and we'll get it added! | ||
# | ||
#platforms: | ||
#- name: EL | ||
# versions: | ||
# - all | ||
# - 5 | ||
# - 6 | ||
# - 7 | ||
#- name: GenericUNIX | ||
# versions: | ||
# - all | ||
# - any | ||
#- name: Fedora | ||
# versions: | ||
# - all | ||
# - 16 | ||
# - 17 | ||
# - 18 | ||
# - 19 | ||
# - 20 | ||
# - 21 | ||
# - 22 | ||
#- name: SmartOS | ||
# versions: | ||
# - all | ||
# - any | ||
#- name: opensuse | ||
# versions: | ||
# - all | ||
# - 12.1 | ||
# - 12.2 | ||
# - 12.3 | ||
# - 13.1 | ||
# - 13.2 | ||
#- name: Amazon | ||
# versions: | ||
# - all | ||
# - 2013.03 | ||
# - 2013.09 | ||
#- name: GenericBSD | ||
# versions: | ||
# - all | ||
# - any | ||
#- name: FreeBSD | ||
# versions: | ||
# - all | ||
# - 8.0 | ||
# - 8.1 | ||
# - 8.2 | ||
# - 8.3 | ||
# - 8.4 | ||
# - 9.0 | ||
# - 9.1 | ||
# - 9.1 | ||
# - 9.2 | ||
#- name: Ubuntu | ||
# versions: | ||
# - all | ||
# - lucid | ||
# - maverick | ||
# - natty | ||
# - oneiric | ||
# - precise | ||
# - quantal | ||
# - raring | ||
# - saucy | ||
# - trusty | ||
# - utopic | ||
# - vivid | ||
#- name: SLES | ||
# versions: | ||
# - all | ||
# - 10SP3 | ||
# - 10SP4 | ||
# - 11 | ||
# - 11SP1 | ||
# - 11SP2 | ||
# - 11SP3 | ||
#- name: GenericLinux | ||
# versions: | ||
# - all | ||
# - any | ||
#- name: Debian | ||
# versions: | ||
# - all | ||
# - etch | ||
# - jessie | ||
# - lenny | ||
# - squeeze | ||
# - wheezy | ||
# | ||
# Below are all categories currently available. Just as with | ||
# the platforms above, uncomment those that apply to your role. | ||
# | ||
#categories: | ||
#- cloud | ||
#- cloud:ec2 | ||
#- cloud:gce | ||
#- cloud:rax | ||
#- clustering | ||
#- database | ||
#- database:nosql | ||
#- database:sql | ||
#- development | ||
#- monitoring | ||
#- networking | ||
#- packaging | ||
#- system | ||
#- web | ||
dependencies: [] | ||
# List your role dependencies here, one per line. | ||
# Be sure to remove the '[]' above if you add dependencies | ||
# to this list. | ||
|
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# tasks file for frameworks | ||
- name: "create config directory" | ||
when: "frameworks_{{ item }}_enabled" | ||
run_once: true | ||
template: | ||
src: "{{ item }}-config.j2" | ||
dest: "/tmp/{{ item }}-config" | ||
mode: 0755 | ||
sudo: yes | ||
tags: | ||
- "{{ item }}" | ||
with_items: | ||
- "{{ frameworks_list }}" | ||
|
||
- name: "install dcos-cli package" | ||
when: "frameworks_{{ item }}_enabled" | ||
run_once: true | ||
docker: | ||
name: "{{ item }}" | ||
image: "{{ frameworks_dcos_cli_image }}" | ||
state: started | ||
command: "package install --options=/config --yes {{ item }}" | ||
volumes: | ||
- "/tmp/{{ item }}-config:/config" | ||
env: | ||
MESOS_MASTER_URL: "{{ frameworks_mesos_master_url }}" | ||
MARATHON_URL: "{{ frameworks_marathon_url }}" | ||
tags: | ||
- "{{ item }}" | ||
with_items: | ||
- "{{ frameworks_list }}" | ||
|
||
- name: "uninstall dcos-cli package" | ||
when: "not frameworks_{{ item }}_enabled" | ||
run_once: true | ||
docker: | ||
name: "{{ item }}" | ||
image: "{{ frameworks_dcos_cli_image }}" | ||
state: started | ||
command: "package uninstall {{ item }}" | ||
env: | ||
MESOS_MASTER_URL: "{{ frameworks_mesos_master_url }}" | ||
MARATHON_URL: "{{ frameworks_marathon_url }}" | ||
tags: | ||
- "{{ item }}" | ||
with_items: | ||
- "{{ frameworks_list }}" | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"mesos": {"master": "{{ frameworks_zk_master_peers }}"}, | ||
"cassandra": { | ||
"zk": "zk://{{ zookeeper_peers_nodes }}/cassandra-mesos", | ||
"node-count": {{ frameworks_cassandra_node_count }} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# vars file for frameworks |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we expose the other config vars here or just leave it for now? https://github.com/mesosphere/universe/blob/version-1.x/repo/packages/C/cassandra/0/config.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even expose the minimum required configuration values would be nice with the default in the config.json e.g.
"framework","cluster-name","zk-timeout-ms","node-count","seed-count","health-check-interval-seconds","bootstrap-grace-time-seconds","data-directory","resources"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be a follow-up issue