2018-06-20 23:06:00 +03:00
|
|
|
:: DNS: configure zone authority
|
|
|
|
::
|
|
|
|
:::: /hoon/authority/dns/gen
|
|
|
|
::
|
2019-06-26 04:41:08 +03:00
|
|
|
/- *dns-bind, *sole
|
2018-10-30 22:05:42 +03:00
|
|
|
/+ *generators
|
2018-06-20 23:06:00 +03:00
|
|
|
:- %ask
|
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
2018-10-30 22:05:42 +03:00
|
|
|
[arg=$@(~ [dom=turf ~])]
|
2018-06-20 23:06:00 +03:00
|
|
|
~
|
|
|
|
==
|
2019-06-26 04:41:08 +03:00
|
|
|
^- (sole-result [%dns-authority authority])
|
2019-06-27 21:42:04 +03:00
|
|
|
=* our p.bec
|
|
|
|
:: XX must be evaluated outside tapp core due to +mule
|
|
|
|
::
|
2019-07-04 02:01:45 +03:00
|
|
|
=/ =hart:eyre .^(hart:eyre %e /(scot %p our)/host/real)
|
2019-06-27 21:42:04 +03:00
|
|
|
:: XX terrible
|
|
|
|
=/ domain /com/googleapis
|
|
|
|
=/ code
|
|
|
|
%- crip
|
|
|
|
+:(scow %p .^(@p %j /(scot %p our)/code/(scot %da now)/(scot %p our)))
|
|
|
|
=/ secrets
|
|
|
|
.^(@t %cx :(weld /(scot %p our)/home/(scot %da now)/sec domain /atom))
|
|
|
|
::
|
2018-06-20 23:06:00 +03:00
|
|
|
=- ?~ arg -
|
|
|
|
(fun.q.q [%& dom.arg])
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ prompt
|
2018-06-20 23:06:00 +03:00
|
|
|
[%& %dns-domain "dns domain: "]
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ parse thos:de-purl:html
|
2018-06-20 23:06:00 +03:00
|
|
|
|= hot=host:eyre
|
2018-08-28 20:08:04 +03:00
|
|
|
?: ?=(%| -.hot)
|
2018-06-20 23:06:00 +03:00
|
|
|
~|(%ips-unsupported !!)
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ prompt
|
2018-06-20 23:06:00 +03:00
|
|
|
[%& %project "gcloud project: "]
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ parse urs:ab
|
2018-06-20 23:06:00 +03:00
|
|
|
|= project=@ta
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ prompt
|
2018-06-20 23:06:00 +03:00
|
|
|
[%& %zone "dns zone: "]
|
2018-10-02 22:26:16 +03:00
|
|
|
%+ parse urs:ab
|
2018-06-20 23:06:00 +03:00
|
|
|
|= zone=@ta
|
2018-10-30 22:05:42 +03:00
|
|
|
%- produce
|
2019-06-27 21:42:04 +03:00
|
|
|
[%dns-authority [p.hot %gcloud project zone [code hart secrets] ~]]
|