add Final Infrastructure Setup

This commit is contained in:
Patryk Hegenberg 2026-03-29 13:45:10 +02:00
commit 7733dde658
174 changed files with 204949 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
dest=$1
test_dir=$2
tixstream_user=$4
tixstream_group=$5
if [ "${dest}" == "" ]; then
dest="/tmp"
fi
echo "this is a plain text dummy metadata file" >${dest}/metadata.txt
truncate -s 5g ${dest}/${test_dir}/5g.mxf
truncate -s 1g ${dest}/${test_dir}/1g.mxf
for i in {1..100}; do
dd if=/dev/urandom of=/local_testdata/test-source/small_$i.dat bs=1M count=10 status=none
done
chown ${tixstream_user}:${tixstream_group} ${dest}/${test_dir}/*

View file

@ -0,0 +1,50 @@
---
# TODO: this is a duplicate of already existing role: ansible/roles/test-data
- name: create test data directories
file: path={{ local_testdata_dir }}/{{ item }}
state=directory
owner="{{ localuser }}"
group="{{ localgroup }}"
mode=0755
with_items:
- test-source
- test-destination
become: True
- name: create recursive test data directories
file: path={{ local_testdata_dir }}/{{ item }}
state=directory
owner="{{ localuser }}"
group="{{ localgroup }}"
mode=0755
with_items:
- test-source-recursive
become: True
- name: create subdir 1&2
file: path={{ local_testdata_dir }}/test-source-recursive/{{ item }}
state=directory
owner="{{ localuser }}"
group="{{ localgroup }}"
mode=0755
with_items:
- subdir1
- subdir2
become: True
- name: create subdir 1_1 & 1_2
file: path={{ local_testdata_dir }}/test-source-recursive/subdir1/{{ item }}
state=directory
owner="{{ localuser }}"
group="{{ localgroup }}"
mode=0755
with_items:
- subdir1_1
- subdir1_2
become: True
- name: create test files
script: create-test-files.sh {{ local_testdata_dir }} test-source test-source-recursive "{{ localuser }}" "{{ localgroup }}"
become: True