Skip to content

Commit

Permalink
Add pre-commit configuration and fixes the typo and EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihsan Mokhlisse committed Feb 11, 2025
1 parent 35b13b9 commit 3ac4e1f
Show file tree
Hide file tree
Showing 2,966 changed files with 6,887 additions and 7,077 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
stages:
- static-analysis

.static-analysis:
stage: static-analysis
interruptible: true
needs: []

sonarqube-check:
extends: .static-analysis
image: images.paas.redhat.com/alm/sonar-scanner-alpine:latest
Expand Down
2 changes: 1 addition & 1 deletion .quarkus/cli/plugins/quarkus-cli-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"version" : "v1",
"lastUpdate" : "26/06/2023 16:15:00",
"plugins" : { }
}
}
23 changes: 11 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ USER_EXTRA_ARGS=
# Adjust to taste

: ## TIP! make supports tab completion with *modern* shells e.g. zsh etc
: ## e.g. make depl<TAB> == make deploy
: ##
: ## e.g. make depl<TAB> == make deploy
: ##

.SILENT: setup my-env ssh-target

help: ## Show this help - technically unnecessary as `make` alone will do
@egrep -h '\s##\s' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", ($$2=="" ? "" : $$1 ), $$2}'
@egrep -h '\s##\s' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", ($$2=="" ? "" : $$1 ), $$2}'

# Thanks to victoria.dev for the above syntax
# https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/
Expand All @@ -65,24 +65,24 @@ ansible-execute: ## Execute ansible-playbook with PLAYBOOK of choice
$(USER_EXTRA_ARGS) $(EXTRA_ARGS)

deploy: ## Deploy normally with package updates etc (can be slow)
$(MAKE) ansible-execute PLAYBOOK=main.yml
$(MAKE) ansible-execute PLAYBOOK=main.yml

deploy-fast: ## Deploy fast without package updates etc
$(MAKE) ansible-execute PLAYBOOK=main.yml EXTRA_ARGS="-e update_packages=false"
$(MAKE) ansible-execute PLAYBOOK=main.yml EXTRA_ARGS="-e update_packages=false"

role-runner: ## Deploy fast without package updates etc
$(MAKE) ansible-execute PLAYBOOK=role_runner.yml EXTRA_ARGS="-e role=$(ROLE)"
$(MAKE) ansible-execute PLAYBOOK=role_runner.yml EXTRA_ARGS="-e role=$(ROLE)"

destroy: ## Destroy the config
$(MAKE) ansible-execute PLAYBOOK=destroy.yml

# user-data: ## Assumes an existing output_dir, outputs contenst of user-data.yaml
# ansible-playbook rhdp.agnostic_utilities.agd_user_info.yml -e output_dir=$(OUTPUT_DIR)
ssh-target: ## ssh to your bastion by default or use `make ssh-target target=hostname`
# ansible-playbook rhdp.agnostic_utilities.agd_user_info.yml -e output_dir=$(OUTPUT_DIR)

ssh-target: ## ssh to your bastion by default or use `make ssh-target target=hostname`
ssh -F $(OUTPUT_DIR)/$(ENV_TYPE)_$(GUID)_ssh_conf $(TARGET)

ssh: ## ssh to your bastion by default or use `make ssh target=hostname`
ssh: ## ssh to your bastion by default or use `make ssh target=hostname`
ssh -F $(OUTPUT_DIR)/$(ENV_TYPE)_$(GUID)_ssh_conf $(TARGET)

user-data: ## Output user-data
Expand Down Expand Up @@ -119,7 +119,7 @@ showroom-install: ## Install showroom
-i $(OUTPUT_DIR)/inventory_post_software.yaml \
-e @$(OUTPUT_DIR)/user-data.yaml \
-e role=showroom

backup-output: ## Backup the output dir
cp -r $(OUTPUT_HOME) $(BACKUP_HOME)

Expand All @@ -128,4 +128,3 @@ restore-output: ## Backup the output dir

relog: ## Zero out the ANSIBLE_LOG_PATH log file
rm $(OUTPUT_DIR)/$(ENV_TYPE)_$(GUID).log

Loading

0 comments on commit 3ac4e1f

Please sign in to comment.