add java depends
This commit is contained in:
Родитель
753e118446
Коммит
822d3e39a1
|
@ -1,6 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
kafka:
|
||||
java:
|
||||
pkg: openjdk-8-jre-headless
|
||||
pkg: kafka
|
||||
config: '/usr/local/lib/kafka/config/server.properties'
|
||||
service:
|
||||
|
|
|
@ -15,6 +15,11 @@ kafka:
|
|||
- groups:
|
||||
- kafka
|
||||
|
||||
java-pkg:
|
||||
pkg.installed:
|
||||
- name: {{ kafka.java.pkg }}
|
||||
- refresh: true
|
||||
|
||||
kafka-tarball:
|
||||
archive.extracted:
|
||||
- name: /usr/local/lib
|
||||
|
@ -25,6 +30,8 @@ kafka-tarball:
|
|||
- user: root
|
||||
- group: root
|
||||
- if_missing: /usr/local/lib/kafka_{{ kafka.version.scala }}-{{ kafka.version.kafka }}
|
||||
- require:
|
||||
- pkg: java-pkg
|
||||
|
||||
kafka-alternatives:
|
||||
alternatives.install:
|
||||
|
|
Загрузка…
Ссылка в новой задаче