Skip to content

Commit

Permalink
RING-43206 - release workflows cleanup, remove staging role (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBenson authored Sep 22, 2023
1 parent 350577a commit 2cb8fd0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 164 deletions.
36 changes: 15 additions & 21 deletions ansible/inventory.sample
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,21 @@ super ansible_host=10.100.7.27
#worker-01 ansible_host=10.100.3.73
#worker-02 ansible_host=10.100.4.93
#worker-03 ansible_host=10.100.4.39
rhel9-jump ansible_host=192.168.122.179
#staging_host ansible_host={{IP_ADDRESS}}


[all:vars]
staging_path=/var/tmp/staging/
staging_archive=spark-offline-archive.run
offline_mode=True
registry_user="Trevor_Benson"
registry_password=""

[staging]
# Using localhost requires ssh is enabled, and docker or podman is installed.
# Set the {{ docker }} variable to the installed container runtime engine
localhost docker=podman

[sparkcluster:children]
sparkmaster
sparkworkers

# Place 1 into sparkmaster group
[sparkmaster]
#stor-06
stor-01

# Place all workers into sparkworkers. Add your master to run a worker on it.
[sparkworkers]
stor-01
stor-02
#stor-03
#stor-04
stor-03
stor-04
stor-05
stor-06
#conn-01
Expand All @@ -88,7 +73,16 @@ stor-06
# To automatically fill out the config.yml define a supervisor group
# and include an ansible host in the group for the supervisor
[supervisor]
#super
super




##############################################################################################
#### BELOW SECTIONS DO NOT NEED TO BE MODIFIED UNLESS RUNNING A DECOUPLED ENVIRONMENT ####
#### DECOUPLED IS WHEN THE WORKER DOES NOT HAVE "LOCALHOST" S3C AND SREBUILDD CONNECTORS ####
#### (i.e. 127.0.0.1:8000 & 127.0.0.1:81) AND NEEDS TO USE A SIDE CAR TO LOAD BALANCE ####
##############################################################################################

# When running decoupled (standalone) S3C connectors as spark workers define the
# runners_srebuildd group and put all storage nodes with the srebuildd connector
Expand All @@ -97,7 +91,7 @@ stor-06
# can be defined in ``config.yml``. The sidecar will round robin over all
# members of the runners_srebuildd group.
[runners_srebuildd]
stor-01
#stor-01
#stor-02
#stor-03
#stor-04
Expand All @@ -112,7 +106,7 @@ stor-01
# members of the runners_s3 group.
[runners_s3]
#stor-01
stor-02
#stor-02
#stor-03
#stor-04
#stor-05
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/create-sample-config/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
bucket_name: scality-spark-cleanup

mems: "{{ ansible_play_hosts|
map('extract', hostvars, ['ansible_memory_mb','real','free'])|
list }}"
Expand Down
1 change: 0 additions & 1 deletion ansible/roles/run-spark-cluster/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ staging_path: /var/tmp/staging/
global_data_host: "{{ data_host | default(ansible_host) }}"

offline_mode: True
bucket_name: scality-spark-cleanup
101 changes: 0 additions & 101 deletions ansible/roles/stage-spark-cluster/tasks/main.yml

This file was deleted.

20 changes: 0 additions & 20 deletions ansible/roles/stage-spark-cluster/templates/setup.sh.j2

This file was deleted.

14 changes: 0 additions & 14 deletions ansible/roles/stage-spark-cluster/vars/main.yml

This file was deleted.

7 changes: 0 additions & 7 deletions ansible/run.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---
- hosts: staging
roles:
- role: stage-spark-cluster
tags:
- never
- stage

- hosts: sparkmaster:sparkworkers
roles:
- role: run-spark-cluster
Expand Down

0 comments on commit 2cb8fd0

Please sign in to comment.