Skip to content

Commit

Permalink
fixed kafka groups
Browse files Browse the repository at this point in the history
  • Loading branch information
grierdavid committed Nov 7, 2019
1 parent 4e366ca commit 0df789d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions playbooks/provision_rax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,47 @@
wait_timeout: 900
register: rax
when: cloud_nodes_count > 0

- name: Include kafka-server-nodes group variables
include_vars: group_vars/kafka-server-nodes

- name: Create kafka server nodes
local_action:
module: rax
credentials: "{{ cloud_config.rax_credentials_file }}"
name: "kafka-%02d.{{ cloud_config.domain }}"
image: "{{ cloud_image }}"
flavor: "{{ cloud_flavor }}"
count: "{{ cloud_nodes_count }}"
region: "{{ cloud_config.rax_region }}"
key_name: "{{ cloud_config.ssh.keyname }}"
exact_count: yes
auto_increment: true
group: kafka-server-nodes
state: present
wait: true
wait_timeout: 900
register: rax
when: cloud_nodes_count > 0

- name: Include kafka-zk-nodes group variables
include_vars: group_vars/kafka-zk-nodes

- name: Create kafka zookeeper nodes
local_action:
module: rax
credentials: "{{ cloud_config.rax_credentials_file }}"
name: "kafka-zk-%02d.{{ cloud_config.domain }}"
image: "{{ cloud_image }}"
flavor: "{{ cloud_flavor }}"
count: "{{ cloud_nodes_count }}"
region: "{{ cloud_config.rax_region }}"
key_name: "{{ cloud_config.ssh.keyname }}"
exact_count: yes
auto_increment: true
group: kafka-zk-nodes
state: present
wait: true
wait_timeout: 900
register: rax
when: cloud_nodes_count > 0

0 comments on commit 0df789d

Please sign in to comment.