Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ansible playbook for demo1 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulczar
Copy link

No description provided.

Signed-off-by: Paul Czarkowski <[email protected]>
@andyrepton
Copy link
Owner

Testing this and making some slight adjustments before merging. Thanks for doing this!

Copy link
Owner

@andyrepton andyrepton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the Makefile to now be:

.DEFAULT_GOAL := help

VIRTUALENV ?= "./virtualenv/"
ANSIBLE = $(VIRTUALENV)/bin/ansible-playbook

.PHONY: help
help:
	@echo IMPORTANT: Export CLUSTER and AWS_REGION environment variables

.PHONY: virtualenv
virtualenv:
	LC_ALL=en_US.UTF-8 python3 -m venv $(VIRTUALENV)
	. $(VIRTUALENV)/bin/activate
	pip3 install pip --upgrade
	LC_ALL=en_US.UTF-8 ./virtualenv/bin/pip3 install -r requirements.txt
	# ./virtualenv/bin/ansible-galaxy collection install azure.azcollection --force
	# ./virtualenv/bin/pip3 install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
	# ./virtualenv/bin/ansible-galaxy collection install community.okd

.PHONY: create.%
create.%:
	$(VIRTUALENV)/bin/ansible-playbook ./$*/playbook-create.yaml --extra-vars "cluster=$$CLUSTER aws_region=$$AWS_REGION"

.PHONY: delete.%
delete.%:
	$(VIRTUALENV)/bin/ansible-playbook ./$*/playbook-delete.yaml

So that this works for additional regions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants