1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

NEW PROVIDER: Oracle Cloud (#1021)

* feat: add Oracle provider

* fix ALIAS and NS tests

* return... else if -> return... if

* fix assignment

* remove extraneous blank lines

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Nick Gregory
2021-01-24 15:35:12 -05:00
committed by GitHub
parent 4a337ec8d8
commit 945ffb7e80
10 changed files with 423 additions and 1 deletions

43
docs/_providers/oracle.md Normal file
View File

@@ -0,0 +1,43 @@
---
name: Oracle Cloud
title: Oracle Cloud Provider
layout: default
jsId: ORACLE
---
# Oracle Cloud Provider
## Configuration
Create an API key through the Oracle Cloud portal, and provide the user OCID, tenancy OCID, key fingerprint, region, and the contents of the private key.
The OCID of the compartment DNS resources should be put in can also optionally be provided.
{% highlight json %}
{
"oracle": {
"user_ocid": "$ORACLE_USER_OCID",
"tenancy_ocid": "$ORACLE_TENANCY_OCID",
"fingerprint": "$ORACLE_FINGERPRINT",
"region": "$ORACLE_REGION",
"private_key": "$ORACLE_PRIVATE_KEY",
"compartment": "$ORACLE_COMPARTMENT"
},
}
{% endhighlight %}
## Metadata
This provider does not recognize any special metadata fields unique to Oracle Cloud.
## Usage
Example Javascript:
{% highlight js %}
var REG_NONE = NewRegistrar('none', 'NONE')
var ORACLE = NewDnsProvider("oracle", "ORACLE");
D("example.tld", REG_NONE, DnsProvider(ORACLE),
NAMESERVER_TTL(86400),
A("test","1.2.3.4")
);
{% endhighlight %}

View File

@@ -91,6 +91,7 @@ Maintainers of contributed providers:
* `NS1` @captncraig
* `OCTODNS` @TomOnTime
* `OPENSRS` @pierre-emmanuelJ
* `ORACLE` @kallsyms
* `OVH` @masterzen
* `POWERDNS` @jpbede
* `SOFTLAYER`@jamielennox