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

Fix headscale error #434

Merged
merged 3 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ env:
# https://www.jeffgeerling.com/blog/2020/getting-colorized-output-molecule-and-ansible-on-github-actions-ci
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
# Temporary - https://github.com/artis3n/ansible-role-tailscale/issues/432#issuecomment-1948954799
HEADSCALE_IMAGE: headscale/headscale:0.22

jobs:
run-scenario:
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,57 +33,57 @@ test-all:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --all
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --all
endif

.PHONY: test-default
test-default:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --scenario-name default
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name default
endif

.PHONY: test-idempotent-up
test-idempotent-up:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --scenario-name idempotent-up
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name idempotent-up
endif

.PHONY: test-args
test-args:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --scenario-name args
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name args
endif

.PHONY: test-absent
test-absent:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --scenario-name state-absent
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name state-absent
endif

.PHONY: test-oauth
test-oauth:
ifndef TAILSCALE_OAUTH_CLIENT_SECRET
$(error TAILSCALE_OAUTH_CLIENT_SECRET is not set)
else
poetry run molecule test --scenario-name oauth
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name oauth
endif

.PHONY: test-strategy-free
test-strategy-free:
ifndef TAILSCALE_CI_KEY
$(error TAILSCALE_CI_KEY is not set)
else
poetry run molecule test --scenario-name strategy-free
HEADSCALE_IMAGE=headscale/headscale:0.22 poetry run molecule test --scenario-name strategy-free
endif

.PHONY: test-headscale
test-headscale:
USE_HEADSCALE=true poetry run molecule test --scenario-name default
HEADSCALE_IMAGE=headscale/headscale:0.22 USE_HEADSCALE=true poetry run molecule test --scenario-name default
Loading