Skip to content

flywirecorp/glare-cookbook

Repository files navigation

glare Cookbook

Handles Cloudflare DNS records via API v4

Build Status

Build Status Code Climate Cookbook Version

Usage

Do include_recipe 'glare::default' if using Chef < 12.8.1

Resources

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