diff --git a/README.md b/README.md index ecbb04b..4bb9dcd 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,26 @@ # DevOps Trainee Tasks -епозиторий с заданиями для стажей DevOps-инженеров. :) +Репозиторий с заданиями для стажей DevOps-инженеров. :) ## Linux -[Task 1.1](Task_1.1/description_Task_1_1.md) [Task 1.2](Task_1.2/description_Task_1_2.md) [Task 1.3](Task_1.3/description_Task_1_3.md) [Task 1.4](Task_1.4/description_Task_1_4.md) [Task 1.5](Task_1.5/description_Task_1_5.md) [Task 1.6](Task_1.6/description_Task_1_6.md) +[Task 1.1](Tasks/Task_1.1/description_Task_1_1.md) [Task 1.2](Tasks/Task_1.2/description_Task_1_2.md) [Task 1.3](Tasks/Task_1.3/description_Task_1_3.md) [Task 1.4](Tasks/Task_1.4/description_Task_1_4.md) [Task 1.5](Tasks/Task_1.5/description_Task_1_5.md) [Task 1.6](Tasks/Task_1.6/description_Task_1_6.md) ## Git -[Task 2.1](Task_2.1/description_Task_2_1.md) [Task 2.2](Task_2.2/description_Task_2_2.md) [Task 2.3](Task_2.3/description_Task_2_3.md) [Task 2.4](Task_2.4/description_Task_2_4.md) [Task 2.5](Task_2.5/description_Task_2_5.md) [Task 2.6](Task_2.6/description_Task_2_6.md) [Task 2.7](Task_2.7/description_Task_2_7.md) +[Task 2.1](Tasks/Task_2.1/description_Task_2_1.md) [Task 2.2](Tasks/Task_2.2/description_Task_2_2.md) [Task 2.3](Tasks/Task_2.3/description_Task_2_3.md) [Task 2.4](Tasks/Task_2.4/description_Task_2_4.md) [Task 2.5](Tasks/Task_2.5/description_Task_2_5.md) [Task 2.6](Tasks/Task_2.6/description_Task_2_6.md) [Task 2.7](Tasks/Task_2.7/description_Task_2_7.md) ## Docker -[Task 3.11](Task_3.11/description_Task_3_11.md) [Task 3.12](Task_3.12/description_Task_3_12.md) [Task 3.13](Task_3.13/description_Task_3_13.md) [Task 3.14](Task_3.14/description_Task_3_14.md) [Task 3.15](Task_3.15/description_Task_3_15.md) [Task 3.16](Task_3.16/description_Task_3_16.md) [Task 3.17](Task_3.17/description_Task_3_17.md) [Task 3.18](Task_3.18/description_Task_3_18.md) [Task 3.19](Task_3.19/description_Task_3_19.md) [Task 3.20](Task_3.20/description_Task_3_20.md) [Task 3.21](Task_3.21/description_Task_3_21.md) [Task 3.22](Task_3.22/description_Task_3_22.md) [Task 3.23](Task_3.23/description_Task_3_23.md) [Task 3.24](Task_3.24/description_Task_3_24.md) [Task 3.25](Task_3.25/description_Task_3_25.md) [Task 3.26](Task_3.26/description_Task_3_26.md) [Task 3.27](Task_3.27/description_Task_3_27.md) [Task 3.28](Task_3.28/description_Task_3_28.md) [Task 3.29](Task_3.29/description_Task_3_29.md) [Task 3.30](Task_3.30/description_Task_3_30.md) [Task 3.31](Task_3.31/description_Task_3_31.md) [Task 3.32](Task_3.32/description_Task_3_32.md) [Task 3.33](Task_3.33/description_Task_3_33.md) [Task 3.34](Task_3.34/description_Task_3_34.md) [Task 3.35](Task_3.35/description_Task_3_35.md) [Task 3.36](Task_3.36/description_Task_3_36.md) [Task 3.37](Task_3.37/description_Task_3_37.md) [Task 3.38](Task_3.38/description_Task_3_38.md) [Task 3.39](Task_3.39/description_Task_3_39.md) [Task 3.40](Task_3.40/description_Task_3_40.md) [Task 3.41](Task_3.41/description_Task_3_41.md) +[Task 3.11](Tasks/Task_3.11/description_Task_3_11.md) [Task 3.12](Tasks/Task_3.12/description_Task_3_12.md) [Task 3.13](Tasks/Task_3.13/description_Task_3_13.md) [Task 3.14](Tasks/Task_3.14/description_Task_3_14.md) [Task 3.15](Tasks/Task_3.15/description_Task_3_15.md) [Task 3.16](Tasks/Task_3.16/description_Task_3_16.md) [Task 3.17](Tasks/Task_3.17/description_Task_3_17.md) [Task 3.18](Tasks/Task_3.18/description_Task_3_18.md) [Task 3.19](Tasks/Task_3.19/description_Task_3_19.md) [Task 3.20](Tasks/Task_3.20/description_Task_3_20.md) [Task 3.21](Tasks/Task_3.21/description_Task_3_21.md) [Task 3.22](Tasks/Task_3.22/description_Task_3_22.md) [Task 3.23](Tasks/Task_3.23/description_Task_3_23.md) [Task 3.24](Tasks/Task_3.24/description_Task_3_24.md) [Task 3.25](Tasks/Task_3.25/description_Task_3_25.md) [Task 3.26](Tasks/Task_3.26/description_Task_3_26.md) [Task 3.27](Tasks/Task_3.27/description_Task_3_27.md) [Task 3.28](Tasks/Task_3.28/description_Task_3_28.md) [Task 3.29](Tasks/Task_3.29/description_Task_3_29.md) [Task 3.30](Tasks/Task_3.30/description_Task_3_30.md) [Task 3.31](Tasks/Task_3.31/description_Task_3_31.md) [Task 3.32](Tasks/Task_3.32/description_Task_3_32.md) [Task 3.33](Tasks/Task_3.33/description_Task_3_33.md) [Task 3.34](Tasks/Task_3.34/description_Task_3_34.md) [Task 3.35](Tasks/Task_3.35/description_Task_3_35.md) [Task 3.36](Tasks/Task_3.36/description_Task_3_36.md) [Task 3.37](Tasks/Task_3.37/description_Task_3_37.md) [Task 3.38](Tasks/Task_3.38/description_Task_3_38.md) [Task 3.39](Tasks/Task_3.39/description_Task_3_39.md) [Task 3.40](Tasks/Task_3.40/description_Task_3_40.md) [Task 3.41](Tasks/Task_3.41/description_Task_3_41.md) ## CI/CD -[Task 4.11](Task_4.11/description_Task_4_11.md) [Task 4.12](Task_4.12/description_Task_4_12.md) [Task 4.13](Task_4.13/description_Task_4_13.md) +[Task 4.11](Tasks/Task_4.11/description_Task_4_11.md) [Task 4.12](Tasks/Task_4.12/description_Task_4_12.md) [Task 4.13](Tasks/Task_4.13/description_Task_4_13.md) ## Ansible -[Task 5.1](Task_5.1/description_Task_5_1.md) [Task 5.2](Task_5.2/description_Task_5_2.md) [Task 5.3](Task_5.3/description_Task_5_3.md) [Task 5.4](Task_5.4/description_Task_5_4.md) +[Task 5.1](Tasks/Task_5.1/description_Task_5_1.md) [Task 5.2](Tasks/Task_5.2/description_Task_5_2.md) [Task 5.3](Tasks/Task_5.3/description_Task_5_3.md) [Task 5.4](Tasks/Task_5.4/description_Task_5_4.md) ## Terraform -[Task 6.11](Task_6.11/description_Task_6_11.md) [Task 6.12](Task_6.12/description_Task_6_12.md) [Task 6.13](Task_6.13/description_Task_6_13.md) [Task 6.14](Task_6.14/description_Task_6_14.md) [Task 6.15](Task_6.15/description_Task_6_15.md) [Task 6.16](Task_6.16/description_Task_6_16.md) [Task 6.17](Task_6.17/description_Task_6_17.md) [Task 6.18](Task_6.18/description_Task_6_18.md) [Task 6.19](Task_6.19/description_Task_6_19.md) [Task 6.20](Task_6.20/description_Task_6_20.md) [Task 6.21](Task_6.21/description_Task_6_21.md) [Task 6.22](Task_6.22/description_Task_6_22.md) +[Task 6.11](Tasks/Task_6.11/description_Task_6_11.md) [Task 6.12](Tasks/Task_6.12/description_Task_6_12.md) [Task 6.13](Tasks/Task_6.13/description_Task_6_13.md) [Task 6.14](Tasks/Task_6.14/description_Task_6_14.md) [Task 6.15](Tasks/Task_6.15/description_Task_6_15.md) [Task 6.16](Tasks/Task_6.16/description_Task_6_16.md) [Task 6.17](Tasks/Task_6.17/description_Task_6_17.md) [Task 6.18](Tasks/Task_6.18/description_Task_6_18.md) [Task 6.19](Tasks/Task_6.19/description_Task_6_19.md) [Task 6.20](Tasks/Task_6.20/description_Task_6_20.md) [Task 6.21](Tasks/Task_6.21/description_Task_6_21.md) [Task 6.22](Tasks/Task_6.22/description_Task_6_22.md) diff --git a/Task_1.1/description_Task_1_1.md b/Tasks/Task_1.1/description_Task_1_1.md similarity index 100% rename from Task_1.1/description_Task_1_1.md rename to Tasks/Task_1.1/description_Task_1_1.md diff --git a/Task_1.1/initial_set.sh b/Tasks/Task_1.1/initial_set.sh similarity index 100% rename from Task_1.1/initial_set.sh rename to Tasks/Task_1.1/initial_set.sh diff --git a/Task_1.2/description_Task_1_2.md b/Tasks/Task_1.2/description_Task_1_2.md similarity index 100% rename from Task_1.2/description_Task_1_2.md rename to Tasks/Task_1.2/description_Task_1_2.md diff --git a/Task_1.3/description_Task_1_3.md b/Tasks/Task_1.3/description_Task_1_3.md similarity index 100% rename from Task_1.3/description_Task_1_3.md rename to Tasks/Task_1.3/description_Task_1_3.md diff --git a/Task_1.3/uptime-logger.service b/Tasks/Task_1.3/uptime-logger.service similarity index 100% rename from Task_1.3/uptime-logger.service rename to Tasks/Task_1.3/uptime-logger.service diff --git a/Task_1.3/uptime-logger.sh b/Tasks/Task_1.3/uptime-logger.sh similarity index 100% rename from Task_1.3/uptime-logger.sh rename to Tasks/Task_1.3/uptime-logger.sh diff --git a/Task_1.4/description_Task_1_4.md b/Tasks/Task_1.4/description_Task_1_4.md similarity index 100% rename from Task_1.4/description_Task_1_4.md rename to Tasks/Task_1.4/description_Task_1_4.md diff --git a/Task_1.5/alb_nginx.conf b/Tasks/Task_1.5/alb_nginx.conf similarity index 100% rename from Task_1.5/alb_nginx.conf rename to Tasks/Task_1.5/alb_nginx.conf diff --git a/Task_1.5/description_Task_1_5.md b/Tasks/Task_1.5/description_Task_1_5.md similarity index 100% rename from Task_1.5/description_Task_1_5.md rename to Tasks/Task_1.5/description_Task_1_5.md diff --git a/Task_1.5/server_nginx.conf b/Tasks/Task_1.5/server_nginx.conf similarity index 100% rename from Task_1.5/server_nginx.conf rename to Tasks/Task_1.5/server_nginx.conf diff --git a/Task_1.6/description_Task_1_6.md b/Tasks/Task_1.6/description_Task_1_6.md similarity index 100% rename from Task_1.6/description_Task_1_6.md rename to Tasks/Task_1.6/description_Task_1_6.md diff --git a/Task_1.6/nginx.conf b/Tasks/Task_1.6/nginx.conf similarity index 100% rename from Task_1.6/nginx.conf rename to Tasks/Task_1.6/nginx.conf diff --git a/Task_1.6/user_data.sh b/Tasks/Task_1.6/user_data.sh similarity index 100% rename from Task_1.6/user_data.sh rename to Tasks/Task_1.6/user_data.sh diff --git a/Task_2.1/description_Task_2_1.md b/Tasks/Task_2.1/description_Task_2_1.md similarity index 100% rename from Task_2.1/description_Task_2_1.md rename to Tasks/Task_2.1/description_Task_2_1.md diff --git a/Task_2.2/description_Task_2_2.md b/Tasks/Task_2.2/description_Task_2_2.md similarity index 100% rename from Task_2.2/description_Task_2_2.md rename to Tasks/Task_2.2/description_Task_2_2.md diff --git a/Task_2.3/description_Task_2_3.md b/Tasks/Task_2.3/description_Task_2_3.md similarity index 100% rename from Task_2.3/description_Task_2_3.md rename to Tasks/Task_2.3/description_Task_2_3.md diff --git a/Task_2.4/description_Task_2_4.md b/Tasks/Task_2.4/description_Task_2_4.md similarity index 100% rename from Task_2.4/description_Task_2_4.md rename to Tasks/Task_2.4/description_Task_2_4.md diff --git a/Task_2.5/description_Task_2_5.md b/Tasks/Task_2.5/description_Task_2_5.md similarity index 100% rename from Task_2.5/description_Task_2_5.md rename to Tasks/Task_2.5/description_Task_2_5.md diff --git a/Task_2.6/description_Task_2_6.md b/Tasks/Task_2.6/description_Task_2_6.md similarity index 100% rename from Task_2.6/description_Task_2_6.md rename to Tasks/Task_2.6/description_Task_2_6.md diff --git a/Task_2.7/description_Task_2_7.md b/Tasks/Task_2.7/description_Task_2_7.md similarity index 100% rename from Task_2.7/description_Task_2_7.md rename to Tasks/Task_2.7/description_Task_2_7.md diff --git a/Task_3.11/description_Task_3_11.md b/Tasks/Task_3.11/description_Task_3_11.md similarity index 100% rename from Task_3.11/description_Task_3_11.md rename to Tasks/Task_3.11/description_Task_3_11.md diff --git a/Task_3.11/log_MobaXterm_LocalWSL-Ubuntu-24.04_20250104_152802.txt b/Tasks/Task_3.11/log_MobaXterm_LocalWSL-Ubuntu-24.04_20250104_152802.txt similarity index 100% rename from Task_3.11/log_MobaXterm_LocalWSL-Ubuntu-24.04_20250104_152802.txt rename to Tasks/Task_3.11/log_MobaXterm_LocalWSL-Ubuntu-24.04_20250104_152802.txt diff --git a/Task_3.12/description_Task_3_12.md b/Tasks/Task_3.12/description_Task_3_12.md similarity index 100% rename from Task_3.12/description_Task_3_12.md rename to Tasks/Task_3.12/description_Task_3_12.md diff --git a/Task_3.13/description_Task_3_13.md b/Tasks/Task_3.13/description_Task_3_13.md similarity index 100% rename from Task_3.13/description_Task_3_13.md rename to Tasks/Task_3.13/description_Task_3_13.md diff --git a/Task_3.14/description_Task_3_14.md b/Tasks/Task_3.14/description_Task_3_14.md similarity index 100% rename from Task_3.14/description_Task_3_14.md rename to Tasks/Task_3.14/description_Task_3_14.md diff --git a/Task_3.15/description_Task_3_15.md b/Tasks/Task_3.15/description_Task_3_15.md similarity index 100% rename from Task_3.15/description_Task_3_15.md rename to Tasks/Task_3.15/description_Task_3_15.md diff --git a/Task_3.16/description_Task_3_16.md b/Tasks/Task_3.16/description_Task_3_16.md similarity index 100% rename from Task_3.16/description_Task_3_16.md rename to Tasks/Task_3.16/description_Task_3_16.md diff --git a/Task_3.17/description_Task_3_17.md b/Tasks/Task_3.17/description_Task_3_17.md similarity index 100% rename from Task_3.17/description_Task_3_17.md rename to Tasks/Task_3.17/description_Task_3_17.md diff --git a/Task_3.18/description_Task_3_18.md b/Tasks/Task_3.18/description_Task_3_18.md similarity index 100% rename from Task_3.18/description_Task_3_18.md rename to Tasks/Task_3.18/description_Task_3_18.md diff --git a/Task_3.19/description_Task_3_19.md b/Tasks/Task_3.19/description_Task_3_19.md similarity index 100% rename from Task_3.19/description_Task_3_19.md rename to Tasks/Task_3.19/description_Task_3_19.md diff --git a/Task_3.20/description_Task_3_20.md b/Tasks/Task_3.20/description_Task_3_20.md similarity index 100% rename from Task_3.20/description_Task_3_20.md rename to Tasks/Task_3.20/description_Task_3_20.md diff --git a/Task_3.21/description_Task_3_21.md b/Tasks/Task_3.21/description_Task_3_21.md similarity index 100% rename from Task_3.21/description_Task_3_21.md rename to Tasks/Task_3.21/description_Task_3_21.md diff --git a/Task_3.22/description_Task_3_22.md b/Tasks/Task_3.22/description_Task_3_22.md similarity index 100% rename from Task_3.22/description_Task_3_22.md rename to Tasks/Task_3.22/description_Task_3_22.md diff --git a/Task_3.23/description_Task_3_23.md b/Tasks/Task_3.23/description_Task_3_23.md similarity index 100% rename from Task_3.23/description_Task_3_23.md rename to Tasks/Task_3.23/description_Task_3_23.md diff --git a/Task_3.24/description_Task_3_24.md b/Tasks/Task_3.24/description_Task_3_24.md similarity index 100% rename from Task_3.24/description_Task_3_24.md rename to Tasks/Task_3.24/description_Task_3_24.md diff --git a/Task_3.25/description_Task_3_25.md b/Tasks/Task_3.25/description_Task_3_25.md similarity index 100% rename from Task_3.25/description_Task_3_25.md rename to Tasks/Task_3.25/description_Task_3_25.md diff --git a/Task_3.26/description_Task_3_26.md b/Tasks/Task_3.26/description_Task_3_26.md similarity index 100% rename from Task_3.26/description_Task_3_26.md rename to Tasks/Task_3.26/description_Task_3_26.md diff --git a/Task_3.27/description_Task_3_27.md b/Tasks/Task_3.27/description_Task_3_27.md similarity index 100% rename from Task_3.27/description_Task_3_27.md rename to Tasks/Task_3.27/description_Task_3_27.md diff --git a/Task_3.28/description_Task_3_28.md b/Tasks/Task_3.28/description_Task_3_28.md similarity index 100% rename from Task_3.28/description_Task_3_28.md rename to Tasks/Task_3.28/description_Task_3_28.md diff --git a/Task_3.29/description_Task_3_29.md b/Tasks/Task_3.29/description_Task_3_29.md similarity index 100% rename from Task_3.29/description_Task_3_29.md rename to Tasks/Task_3.29/description_Task_3_29.md diff --git a/Task_3.30/description_Task_3_30.md b/Tasks/Task_3.30/description_Task_3_30.md similarity index 100% rename from Task_3.30/description_Task_3_30.md rename to Tasks/Task_3.30/description_Task_3_30.md diff --git a/Task_3.31/description_Task_3_31.md b/Tasks/Task_3.31/description_Task_3_31.md similarity index 100% rename from Task_3.31/description_Task_3_31.md rename to Tasks/Task_3.31/description_Task_3_31.md diff --git a/Task_3.32/description_Task_3_32.md b/Tasks/Task_3.32/description_Task_3_32.md similarity index 100% rename from Task_3.32/description_Task_3_32.md rename to Tasks/Task_3.32/description_Task_3_32.md diff --git a/Task_3.33/description_Task_3_33.md b/Tasks/Task_3.33/description_Task_3_33.md similarity index 100% rename from Task_3.33/description_Task_3_33.md rename to Tasks/Task_3.33/description_Task_3_33.md diff --git a/Task_3.34/description_Task_3_34.md b/Tasks/Task_3.34/description_Task_3_34.md similarity index 100% rename from Task_3.34/description_Task_3_34.md rename to Tasks/Task_3.34/description_Task_3_34.md diff --git a/Task_3.35/description_Task_3_35.md b/Tasks/Task_3.35/description_Task_3_35.md similarity index 100% rename from Task_3.35/description_Task_3_35.md rename to Tasks/Task_3.35/description_Task_3_35.md diff --git a/Task_3.36/description_Task_3_36.md b/Tasks/Task_3.36/description_Task_3_36.md similarity index 100% rename from Task_3.36/description_Task_3_36.md rename to Tasks/Task_3.36/description_Task_3_36.md diff --git a/Task_3.37/description_Task_3_37.md b/Tasks/Task_3.37/description_Task_3_37.md similarity index 100% rename from Task_3.37/description_Task_3_37.md rename to Tasks/Task_3.37/description_Task_3_37.md diff --git a/Task_3.38/description_Task_3_38.md b/Tasks/Task_3.38/description_Task_3_38.md similarity index 100% rename from Task_3.38/description_Task_3_38.md rename to Tasks/Task_3.38/description_Task_3_38.md diff --git a/Task_3.39/description_Task_3_39.md b/Tasks/Task_3.39/description_Task_3_39.md similarity index 100% rename from Task_3.39/description_Task_3_39.md rename to Tasks/Task_3.39/description_Task_3_39.md diff --git a/Task_3.40/description_Task_3_40.md b/Tasks/Task_3.40/description_Task_3_40.md similarity index 100% rename from Task_3.40/description_Task_3_40.md rename to Tasks/Task_3.40/description_Task_3_40.md diff --git a/Task_3.41/description_Task_3_41.md b/Tasks/Task_3.41/description_Task_3_41.md similarity index 100% rename from Task_3.41/description_Task_3_41.md rename to Tasks/Task_3.41/description_Task_3_41.md diff --git a/Tasks/Task_4.11/description_Task_4_11.md b/Tasks/Task_4.11/description_Task_4_11.md new file mode 100644 index 0000000..e69de29 diff --git a/Tasks/Task_4.12/description_Task_4_12.md b/Tasks/Task_4.12/description_Task_4_12.md new file mode 100644 index 0000000..e69de29 diff --git a/Tasks/Task_4.13/description_Task_4_13.md b/Tasks/Task_4.13/description_Task_4_13.md new file mode 100644 index 0000000..e69de29 diff --git a/create_dirs_and_files.sh b/create_dirs_and_files.sh index 62bd1ac..016ccc0 100644 --- a/create_dirs_and_files.sh +++ b/create_dirs_and_files.sh @@ -2,44 +2,46 @@ # Функция помощи function show_help() { - echo -e "\nИспользование: $0 " + echo -e "\nИспользование: $0 " echo echo "Создает директории с именами, основанными на префиксе, и файлы внутри этих директорий." echo "Директории будут иметь формат .<номер>, а файлы будут называться description__<номер>.md." echo echo "Параметры:" - echo " Префикс для названия директории (например, Task_1)" + echo " Префикс для названия директории (например, Tasks)" + echo " Префикс для названия директории (например, Task_1)" echo " Начальный номер диапазона (например, 1)" echo " Конечный номер диапазона (например, 10)" echo echo "Пример:" - echo " $0 Task_1 1 10" + echo " $0 Tasks Task_1 1 10" echo " Этот пример создаст директории Task_1.1, Task_1.2, ..., Task_1.10 и файлы внутри них." echo exit 1 } # Проверка на количество аргументов -if [ $# -ne 3 ]; then +if [ $# -ne 4 ]; then show_help fi -prefix=$1 # Префикс для директорий (например, Task_1) -start=$2 # Начало диапазона -end=$3 # Конец диапазона +parent_prefix=$1 # Префикс для родительской директории(например, Tasks) +child_prefix=$2 # Префикс для директорий (например, Task_1) +start=$3 # Начало диапазона +end=$4 # Конец диапазона # Процесс создания директорий и файлов for i in $(seq $start $end); do - task_dir="${prefix}.${i}" - file_name="description_${prefix}_${i}.md" + child_dir="${parent_prefix}/${child_prefix}.${i}" + file_name="description_${child_prefix}_${i}.md" # Создаем директорию - mkdir -p "$task_dir" + mkdir -p "$child_dir" # Создаем файл в этой директории - touch "$task_dir/$file_name" + touch "$child_dir/$file_name" - echo "Создано: $task_dir/$file_name" + echo "Создано: $child_dir/$file_name" done echo "Все директории и файлы успешно созданы!"