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

feat(airflow2.0): use 2.0.0rc1 release (upgrade) #17

Merged
merged 1 commit into from
Dec 10, 2020
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
26 changes: 4 additions & 22 deletions airflow/defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
postgres:
users:
airflow:
ensure: present
password: airflow
createdb: true
inherit: true
createroles: true
replication: true
databases:
airflow:
owner: airflow
acls:
- ['local', 'airflow', 'airflow', 'md5']
- ['local', 'all', 'all', 'peer']
- ['host', 'all', 'all', '127.0.0.1/32', 'md5']
- ['host', 'all', 'all', '::1/128', 'md5']
- ['local', 'replication', 'all', 'peer']
- ['host', 'replication', 'all', '127.0.0.1/32', 'md5']
- ['host', 'replication', 'all', '::1/128', 'md5']

airflow:
security:
airflow:
Expand All @@ -44,6 +23,7 @@ airflow:
load_examples: False
webserver:
authenticate: true
secret_key: {{ range(1,200000) | random }}
auth_backend: airflow.contrib.auth.backends.password_auth # airflow.api.auth.backend.deny_all
celery:
# https://docs.celeryproject.org/en/v5.0.2/getting-started/brokers
Expand All @@ -70,7 +50,7 @@ airflow:
- airflow-worker
pkg:
airflow:
version: 1.10.13
version: 2.0.0rc1 # 1.10.14
use_upstream: pip
name: apache-airflow
commands:
Expand Down Expand Up @@ -104,6 +84,8 @@ airflow:
- attrs
- cached_property
- cattrs==1.0.0
- pwinrm
- apache-airflow-backport-providers-microsoft-winrm

# https://github.com/mher/flower/issues/1029
# https://docs.celeryproject.org/en/v5.0.2/getting-started/brokers
Expand Down
2 changes: 1 addition & 1 deletion airflow/files/default/airflow.cfg.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ reload_on_plugin_change = False

# Secret key used to run your flask app
# It should be as random as possible
secret_key = temporary_key
secret_key = {{ config.webserver.secret_key or 'temporary_key' }}

# Number of workers to run the Gunicorn web server
workers = 4
Expand Down
2 changes: 1 addition & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ airflow:
- airflow-worker
pkg:
airflow:
version: 1.10.13
version: 2.0.0rc1 # 1.10.14
use_upstream: pip
extras:
# https://airflow.apache.org/docs/apache-airflow/stable/installation.html#extra-packages
Expand Down