Skip to content

Commit

Permalink
Merge pull request #17 from noelmcloughlin/v2
Browse files Browse the repository at this point in the history
feat(airflow2.0): use 2.0.0rc1 release (upgrade)
  • Loading branch information
noelmcloughlin authored Dec 10, 2020
2 parents 4d1422a + 6f381ae commit 3e87338
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
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

0 comments on commit 3e87338

Please sign in to comment.