Skip to content

Commit

Permalink
add verbosity and eth0 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Nov 18, 2024
1 parent 56b6689 commit e13e0fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions bin/offline-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ ls $ANSIBLE_DIR/inventory/offline

if [ -f "$ANSIBLE_DIR/inventory/offline/hosts.ini" ]; then
INVENTORY_FILE="$ANSIBLE_DIR/inventory/offline/hosts.ini"
cat "$INVENTORY_FILE"
elif [ -f "$ANSIBLE_DIR/inventory/offline/inventory.yml" ]; then
INVENTORY_FILE="$ANSIBLE_DIR/inventory/offline/inventory.yml"
cat "$INVENTORY_FILE"
else
echo "No inventory file in ansible/inventory/offline/. Please supply an $ANSIBLE_DIR/inventory/offline/inventory.yml or $ANSIBLE_DIR/inventory/offline/hosts.ini"
exit -1
Expand Down Expand Up @@ -50,10 +52,10 @@ ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/sync_time.yml -v
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/kubernetes.yml --skip-tags bootstrap-os,preinstall,container-engine,multus

# Deploy all other services which don't run in kubernetes.
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/cassandra.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/elasticsearch.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/minio.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/restund.yml
ansible-playbook -i $INVENTORY_FILE -vvv $ANSIBLE_DIR/cassandra.yml
ansible-playbook -i $INVENTORY_FILE -vvv $ANSIBLE_DIR/elasticsearch.yml
ansible-playbook -i $INVENTORY_FILE -vvv $ANSIBLE_DIR/minio.yml
ansible-playbook -i $INVENTORY_FILE -vvv $ANSIBLE_DIR/restund.yml

# create helm values that tell our helm charts what the IP addresses of cassandra, elasticsearch and minio are:
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/helm_external.yml --skip-tags=rabbitmq-external
ansible-playbook -i $INVENTORY_FILE -vvv $ANSIBLE_DIR/helm_external.yml --skip-tags=rabbitmq-external
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ output "static-inventory" {
}
}
vars = {
cassandra_network_interface = "ens10"
cassandra_network_interface = "eth0"
}
}
cassandra_seed = {
Expand All @@ -79,7 +79,7 @@ output "static-inventory" {
}
}
vars = {
elasticsearch_network_interface = "ens10"
elasticsearch_network_interface = "eth0"
}
}
elasticsearch_master = {
Expand All @@ -93,7 +93,7 @@ output "static-inventory" {
}
}
vars = {
minio_network_interface = "ens10"
minio_network_interface = "eth0"
}
}
restund = {
Expand All @@ -104,7 +104,7 @@ output "static-inventory" {
}
}
vars = {
restund_network_interface = "ens10"
restund_network_interface = "eth0"
}
}

Expand Down

0 comments on commit e13e0fc

Please sign in to comment.