ansible-woodpecker-role/templates/server.env.j2

73 lines
3.4 KiB
Plaintext
Raw Normal View History

2021-12-19 23:44:51 +01:00
# {{ ansible_managed }}
WOODPECKER_OPEN={{ woodpecker_open_registration }}
WOODPECKER_ORGS={{ woodpecker_allowed_organizations | default(None) }}
WOODPECKER_LETS_ENCRYPT=true
WOODPECKER_ADMIN={{ woodpecker_admins }}
WOODPECKER_REPO_OWNERS={{ woodpecker_repo_owners | default(None) }}
WOODPECKER_HOST={{ woodpecker_host }}
WOODPECKER_AGENT_SECRET={{ woodpecker_agent_secret }}
2021-12-20 16:52:46 +01:00
{% if woodpecker_database_driver is defined %}
2021-12-19 23:44:51 +01:00
WOODPECKER_DATABASE_DRIVER={{ woodpecker_database_driver }}
WOODPECKER_DATABASE_DATASOURCE={{ woodpecker_database_datasource }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
2021-12-20 16:52:46 +01:00
{% if woodpecker_docker_config_path is defined %}
2021-12-19 23:44:51 +01:00
WOODPECKER_DOCKER_CONFIG={{ woodpecker_docker_config_path }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
{% if woodpecker_github %}
WOODPECKER_GITHUB=true
WOODPECKER_GITHUB_URL={{ woodpecker_github_url }}
WOODPECKER_GITHUB_CLIENT={{ woodpecker_github_client }}
WOODPECKER_GITHUB_SECRET={{ woodpecker_github_secret }}
WOODPECKER_GITHUB_SCOPE={{ woodpecker_github_scope | default(None) }}
WOODPECKER_GITHUB_GIT_USERNAME={{ woodpecker_github_git_username | default(None) }}
WOODPECKER_GITHUB_GIT_PASSWORD={{ woodpecker_github_git_password | default(None) }}
WOODPECKER_GITHUB_PRIVATE_MODE={{ woodpecker_github_private_mode | default(None) }}
WOODPECKER_GITHUB_MERGE_REF={{ woodpecker_github_merge_ref | default(None) }}
WOODPECKER_GITHUB_CONTEXT={{ woodpecker_github_context | default(None) }}
WOODPECKER_GITHUB_SKIP_VERIFY={{ woodpecker_github_skip_verify | default(None) }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
{% if woodpecker_gitea %}
WOODPECKER_GITEA=true
WOODPECKER_GITEA_URL={{ woodpecker_gitea_url }}
WOODPECKER_GITEA_CLIENT={{ woodpecker_gitea_client }}
WOODPECKER_GITEA_SECRET={{ woodpecker_gitea_secret }}
WOODPECKER_GITEA_CONTEXT={{ woodpecker_gitea_context | default(None) }}
WOODPECKER_GITEA_GIT_USERNAME={{ woodpecker_gitea_git_username | default(None) }}
WOODPECKER_GITEA_GIT_PASSWORD={{ woodpecker_gitea_git_password | default(None) }}
WOODPECKER_GITEA_PRIVATE_MODE={{ woodpecker_gitea_private_mode | default(None) }}
WOODPECKER_GITEA_SKIP_VERIFY={{ woodpecker_gitea_skip_verify | default(None) }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
{% if woodpecker_gitlab %}
WOODPECKER_GITLAB=true
WOODPECKER_GITLAB_URL={{ woodpecker_gitlab_url }}
WOODPECKER_GITLAB_CLIENT={{ woodpecker_gitlab_client }}
WOODPECKER_GITLAB_SECRET={{ woodpecker_gitlab_secret }}
WOODPECKER_GITLAB_CONTEXT={{ woodpecker_gitlab_context | default(None) }}
WOODPECKER_GITLAB_GIT_USERNAME={{ woodpecker_gitlab_git_username | default(None) }}
WOODPECKER_GITLAB_GIT_PASSWORD={{ woodpecker_gitlab_git_password | default(None) }}
WOODPECKER_GITLAB_PRIVATE_MODE={{ woodpecker_gitlab_private_mode | default(None) }}
WOODPECKER_GITLAB_SKIP_VERIFY={{ woodpecker_gitlab_skip_verify | default(None) }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
{% if woodpecker_bitbucket %}
WOODPECKER_BITBUCKET=true
WOODPECKER_BITBUCKET_CLIENT={{ woodpecker_bitbucket_client }}
WOODPECKER_BITBUCKET_SECRET={{ woodpecker_bitbucket_secret }}
2021-12-20 16:52:46 +01:00
{%- endif -%}
2021-12-19 23:44:51 +01:00
{% if woodpecker_bitbucket_server %}
WOODPECKER_STASH=true
WOODPECKER_STASH_URL={{ woodpecker_bitbucket_server_url }}
WOODPECKER_STASH_CONSUMER_KEY={{ woodpecker_bitbucket_server_consumer_key }}
WOODPECKER_STASH_CONSUMER_RSA={{ woodpecker_bitbucket_server_consumer_rsa }}
WOODPECKER_STASH_CONSUMER_RSA_STRING={{ woodpecker_bitbucket_server_consumer_rsa_string | default(None) }}
WOODPECKER_STASH_GIT_USERNAME={{ woodpecker_bitbucket_server_git_username }}
WOODPECKER_STASH_GIT_PASSWORD={{ woodpecker_bitbucket_server_git_password }}
2021-12-20 16:52:46 +01:00
{%- endif -%}