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

Implement playbook/roles that manages GoDaddy DNS records #315

Open
2 of 4 tasks
jacobdotcosta opened this issue May 31, 2023 · 1 comment
Open
2 of 4 tasks

Implement playbook/roles that manages GoDaddy DNS records #315

jacobdotcosta opened this issue May 31, 2023 · 1 comment

Comments

@jacobdotcosta
Copy link
Member

jacobdotcosta commented May 31, 2023

TODO

  • Evaluate if we could use this project to create/delete a DNS entry for a RHOS ocp4 cluster
  • Integrate the playbook/role part of the process to create an ocp4 cluster (or when we delete it)

Subsequent additional tasks

  • Issue a certificate and/or issuer CR to allow Let's encrypt to generate a chained TLS certificate and key needed to let the oc, docker or browser clients to access the servers using HTTPs requests
  • Patch the ocp4 cluster to import the certificate & key as described hereafter
@cmoulliard
Copy link
Member

cmoulliard commented Jun 6, 2023

As the API of Godaddy is not too complex - see doc, we could also using curl or similar tool to create/delete/get a DNS record

YOUR_IP_ADDRESS=10.0.215.34
YOUR_DOMAIN_NAME="snowdrop.dev"
YOUR_NAME="console2-openshift-console.apps.ocp"
TYPE="A"

payload="
[{
 \"data\": \"$YOUR_IP_ADDRESS\",
 \"ttl\": 600
}]"

curl -X DELETE -H "Authorization: sso-key ${YOUR_API_KEY}:${YOUR_API_SECRET}" \
     -H "Content-Type: application/json" \
     "https://api.godaddy.com/v1/domains/${YOUR_DOMAIN_NAME}/records/${TYPE}/${YOUR_NAME}"

curl -X PUT -H "Authorization: sso-key ${YOUR_API_KEY}:${YOUR_API_SECRET}" \
     -H "Content-Type: application/json" \
     -d "$payload" \
     "https://api.godaddy.com/v1/domains/${YOUR_DOMAIN_NAME}/records/${TYPE}/${YOUR_NAME}"

curl -X GET -H "Authorization: sso-key ${YOUR_API_KEY}:${YOUR_API_SECRET}" \
     -H "Content-Type: application/json" \
     "https://api.godaddy.com/v1/domains/${YOUR_DOMAIN_NAME}/records/${TYPE}/${YOUR_NAME}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants