-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support for RedHat #27
Open
michal800106
wants to merge
19
commits into
hpcloud-mon:master
Choose a base branch
from
FujitsuEnablingSoftwareTechnologyGmbH:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bf533e8
Initial version for RedHat
zielonkam 9fe5157
Revert "Initial version for RedHat"
zielonkam ca043d6
Adding yum install openjdk
zielonkam e89b662
Merge branch 'adding_yum' into gitlab/master
zielonkam bfb8e9f
Parameter apache_mirror changed for offline
b769935
Fix for apache_mirror address
bad47fd
Variable apache_mirror changed to kafka_apache_mirror
50736b8
[kafka] Scripts: Network and mutual dependencies
2d02871
Add firewalld rules
zielonkam f2c61ce
Fix for iptables checking
zielonkam 07c9150
[kafka] Uninstaller polishing
d897579
Fix ports for singlehost
zielonkam 06c81c0
Add logging variables to defaults
1842582
Add support for RedHat
zielonkam 1c41ece
Merge remote-tracking branch 'github_fj/master' into gitlab
zielonkam c378682
Access rights for kafka
9d21501
Upgrade kafka
23aac18
Cluster integration [kafka]
21c7ae0
Fix controller and state-change log severity
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- name: Install OpenJDK | ||
apt: name=openjdk-7-jre-headless state=present | ||
when: not skip_install |
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,4 @@ | ||
--- | ||
- name: Install OpenJDK | ||
yum: name=java-1.7.0-openjdk state=present | ||
when: not skip_install |
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 |
---|---|---|
@@ -1,6 +1,34 @@ | ||
--- | ||
- name: Install OpenJDK | ||
apt: name=openjdk-7-jre-headless state=present | ||
- include: DebianInst.yml | ||
when: "ansible_os_family == 'Debian'" | ||
|
||
- include: RedHatInst.yml | ||
when: "ansible_os_family == 'RedHat'" | ||
|
||
- name: Check if temporary directory already exists | ||
stat: path="{{ download_tmp_dir }}" | ||
register: st | ||
|
||
- name: Create download temporary directory | ||
file: path="{{ download_tmp_dir }}" state=directory force=true | ||
when: download_tmp_dir is defined and not st.stat.exists | ||
|
||
- name: Setup group | ||
group: name="{{ kafka_group }}" system=yes | ||
|
||
- name: Setup user | ||
user: name="{{ kafka_user }}" system=yes group="{{ kafka_group }}" | ||
|
||
- name: Fetch kafka binary package | ||
get_url: dest="{{ kafka_tarball_location }}/{{ kafka_tarball_name }}" url="{{apache_mirror}}/kafka/{{kafka_version}}/{{kafka_tarball_name}}" | ||
get_url: | ||
dest="{{ download_tmp_dir }}/{{kafka_tarball_name}}" | ||
url="{{kafka_apache_mirror}}/kafka/{{kafka_version}}/{{kafka_tarball_name}}" | ||
|
||
- name: Set owner and group for kafka package | ||
file: | ||
path="{{ download_tmp_dir }}/{{kafka_tarball_name}}" | ||
state=file | ||
owner={{ kafka_user }} | ||
group={{ kafka_group }} | ||
mode=640 | ||
when: download_tmp_dir is defined and not st.stat.exists |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
--- | ||
- name: Enable and Start Kafka | ||
service: name=kafka state=started enabled=yes | ||
|
||
- name: wait for kafka port | ||
wait_for: host={{kafka_listen_address| default('localhost')}} port={{kafka_port}} state=started timeout={{ monasca_wait_for_period }} | ||
when: verify |
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,9 @@ | ||
--- | ||
# Copyright 2016 FUJITSU LIMITED | ||
|
||
- name: Check Kafka status | ||
wait_for: | ||
host="{{ kafka_listen_address|default('localhost') }} " | ||
port="{{ kafka_port|int }} " | ||
state=started | ||
timeout="{{ monasca_wait_for_period|int }}" |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[Unit] | ||
Description=Kafka Daemon | ||
Requires=network.target | ||
After=zookeeper.service | ||
|
||
[Service] | ||
|
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.
In some installs zookeeper runs on the same box as kafka. In those cases it is important that zookeeper start first. In cases where zookeeper is not on the same box systemd handles the situation properly and ignores this line. The line should stay for that first case.