11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

digdagのコンフィグについて(~/.config/digdag/config)

Last updated at Posted at 2016-06-20

Digdagではデフォルトのパラメータを~/.config/digdag/configに保存しています。
例えば下記のように設定しておくことで、digdag serverのendpointをデフォルトで指定できます。

client.http.endpoint = https://example.com
client.http.headers.authorization = TD1 APIKEY
params.td.apikey = APIKEY

まず、digdag clientに設定するserverのendpointはclient.http.endpointになります。そこで認証が必要であれば、client.http.headers.authorizationなどを付与します。(TDの場合には認証が必要なのでdigdag serverに若干+αしている)

また、digdagのタスクで利用するデフォルトのパラメータがあれば、params.~と指定する。これで_exportを利用しなくてもパラメータを設定可能。

ちゃんちゃん。

11
9
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?