Handles Cloudflare DNS records via API v4
Do include_recipe 'glare::default'
if using Chef < 12.8.1
record
create
action:
With scoped API token:
glare_record 'domain.com' do
content 'content.com'
type 'CNAME'
email '[email protected]'
api_token 'example_api_token'
action :create
end
With global API key:
glare_record 'domain.com' do
content 'content.com'
type 'CNAME'
email '[email protected]'
auth_key 'example_auth_key'
action :create
end
delete
action:
glare_record 'domain.com' do
type 'CNAME'
email '[email protected]'
auth_key 'example_auth_key'
action :delete
end