<commit_before>.PHONE: \
	ansible-ci \
	ansible-dev \
	ansible-roles \
	setup-dev-keys \
	terraform-ci \
	terraform-dev

ANSIBLE_INVENTORY = $(shell pwd)/ansible/inventory/gce.py
ANSIBLE_ROLES_PATH = \
	$(shell pwd)/ansible/roles/internal:$(shell pwd)/ansible/roles/vendor
ANSIBLE_HOST_KEY_CHECKING = False

export ANSIBLE_INVENTORY \
	ANSIBLE_ROLES_PATH \
	ANSIBLE_HOST_KEY_CHECKING

ansible-ci:
	@ ansible-playbook --diff -s -u dev \
		--private-key=~/.ssh/dev_rsa \
		ansible/playbooks/ci.yml

ansible-dev:
	@ ansible-playbook --diff -s -u dev \
		--private-key=~/.ssh/dev_rsa \
		ansible/playbooks/dev.yml

ansible-roles:
	@ ansible-galaxy install \
		--ignore-errors \
		-r ansible/roles/requirements.txt \
		-p ansible/roles/vendor

setup-dev-keys:
	@ gcloud compute project-info add-metadata \
		--metadata-from-file sshKeys=terraform/dev/keys.pub

terraform-ci:
	@ terraform apply \
		-state terraform/state/ci.tfstate \
		-var-file terraform/ci/terraform.tfvars \
		terraform/ci

terraform-dev:
	@ terraform apply \
		-state terraform/state/dev.tfstate \
		-var-file terraform/dev/terraform.tfvars \<commit_msg>hard code project in setup-dev-keys<commit_after>.PHONE: \
	ansible-ci \
	ansible-dev \
	ansible-roles \
	setup-dev-keys \
	terraform-ci \
	terraform-dev

ANSIBLE_INVENTORY = $(shell pwd)/ansible/inventory/gce.py
ANSIBLE_ROLES_PATH = \
	$(shell pwd)/ansible/roles/internal:$(shell pwd)/ansible/roles/vendor
ANSIBLE_HOST_KEY_CHECKING = False

export ANSIBLE_INVENTORY \
	ANSIBLE_ROLES_PATH \
	ANSIBLE_HOST_KEY_CHECKING

ansible-ci:
	@ ansible-playbook --diff -s -u dev \
		--private-key=~/.ssh/dev_rsa \
		ansible/playbooks/ci.yml

ansible-dev:
	@ ansible-playbook --diff -s -u dev \
		--private-key=~/.ssh/dev_rsa \
		ansible/playbooks/dev.yml

ansible-roles:
	@ ansible-galaxy install \
		--ignore-errors \
		-r ansible/roles/requirements.txt \
		-p ansible/roles/vendor

setup-dev-keys:
	@ gcloud --project pachyderm-dev-us1 compute project-info add-metadata \
		--metadata-from-file sshKeys=terraform/dev/keys.pub

terraform-ci:
	@ terraform apply \
		-state terraform/state/ci.tfstate \
		-var-file terraform/ci/terraform.tfvars \
		terraform/ci

terraform-dev:
	@ terraform apply \
		-state terraform/state/dev.tfstate \
		-var-file terraform/dev/terraform.tfvars \
{'fraction_non_alphanumeric': 0.13275109170305677, 'fraction_numerical': 0.0004366812227074236, 'mean_word_length': 3.2822429906542054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2046611', 'n_tokens_mistral': 977, 'n_tokens_neox': 944, 'n_words': 138}