Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions driver-redpanda/deploy/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ host_key_checking=false
private_key_file=~/.ssh/redpanda_aws
interpreter_python=auto
inventory = hosts.ini
pipelining=true
forks=30

[privilege_escalation]
become=true
Expand Down
71 changes: 53 additions & 18 deletions driver-redpanda/deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,23 @@
# under the License.
#

- name: Setup common packages on Redhat based systems
- name: Setup common packages
hosts: all
connection: ssh
gather_subset:
- "!all"
- "!min"
- "os_family"
become: true
tasks:
- name: Remove sysstat
package:
name:
- sysstat
state: absent
- name: Install packages
package:
name:
- mdadm
- xfsprogs
- iotop
- wget
- sysstat
- vim
- chrony
- git
- gcc
- tuned
state: present
update_cache: true
Expand All @@ -52,7 +47,7 @@
when: ansible_os_family == 'Debian'
package:
name:
- openjdk-17-jdk
- openjdk-17-jre-headless
state: present

- name: set facts about drives
Expand All @@ -70,6 +65,7 @@
hosts:
- redpanda
- client
gather_facts: false
tags: server
tasks:
- block:
Expand All @@ -89,6 +85,7 @@
hosts:
- redpanda
- client
gather_facts: false
tasks:
- block:
- name: update syslog file size limits
Expand All @@ -111,6 +108,7 @@

- name: Format raid drives if more then 2 drives
hosts: redpanda
gather_facts: false
tasks:
- block:
- name: define mdadm_arrays variable
Expand All @@ -128,9 +126,9 @@
name: mrlesmithjr.mdadm
when: nvme_devices_for_raid|length > 1


- name: created a non raid disk
hosts: redpanda
gather_facts: false
tasks:
- block:
- name: create xfs file system
Expand All @@ -147,6 +145,7 @@

- name: configure the data path
hosts: redpanda
gather_facts: false
tasks:
- name: data path
file:
Expand All @@ -166,7 +165,7 @@

- name: Store server lists
hosts: all
connection: ssh
gather_facts: false
tags: client
tasks:
- set_fact:
Expand All @@ -175,6 +174,10 @@

- name: install redpanda
hosts: redpanda
gather_subset:
- "!all"
- "!min"
- "os_family"
tasks:
- set_fact:
setup_repo: https://packages.vectorized.io/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.deb.sh
Expand Down Expand Up @@ -286,7 +289,10 @@

- name: Chrony setup
hosts: client
connection: ssh
gather_subset:
- "!all"
- "!min"
- "os_family"
become: true
tasks:
- name: Set chrony path
Expand All @@ -312,6 +318,7 @@
- sasl
- client
hosts: all
gather_facts: false
tasks:
- set_fact:
sasl_username: "{{ sasl_username | default('admin') }}"
Expand All @@ -320,7 +327,10 @@

- name: Setup Benchmark client
hosts: client
connection: ssh
gather_subset:
- "!all"
- "!min"
- "hardware"
become: true
tags: client
tasks:
Expand All @@ -329,12 +339,27 @@
name: vm.max_map_count
value: 92160
state: present
- file: path=/opt/benchmark state=absent

# Copy tarfile first because unarchive isn't idempotent
- name: Copy benchmark code
unarchive:
copy:
src: ../../package/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz
dest: /opt
- shell: mv /opt/openmessaging-benchmark-0.0.1-SNAPSHOT /opt/benchmark
register: benchmark_archive
- stat:
path: /opt/benchmark
register: benchmark_directory
- when: benchmark_archive.changed or not benchmark_directory.stat.exists
block:
- file:
path: /opt/benchmark
state: absent
- name: Unarchive benchmark code
unarchive:
src: ../../package/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz
dest: /opt
- shell: mv /opt/openmessaging-benchmark-0.0.1-SNAPSHOT /opt/benchmark

#- shell: tuned-adm profile latency-performance

- name: Get list of driver config files
Expand Down Expand Up @@ -426,6 +451,7 @@
# Install the monitoring stack
- name: Install Node Exporter
hosts: redpanda, client
gather_facts: false
roles:
- geerlingguy.node_exporter
vars:
Expand All @@ -438,7 +464,14 @@
tags:
- node_exporter

- name: Get facts for Prometheus config
hosts: redpanda, client
gather_facts: true
tags:
- prometheus

- hosts: prometheus
gather_facts: false
roles:
- prometheus.prometheus.prometheus
vars:
Expand All @@ -458,6 +491,7 @@
- prometheus

- hosts: prometheus
gather_facts: false
roles:
- grafana.grafana.grafana
vars:
Expand Down Expand Up @@ -495,6 +529,7 @@

- name: TLS facts
hosts: all,localhost
gather_facts: false
tags: tls
tasks:
- set_fact:
Expand Down