Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.13 KB

README.md

File metadata and controls

62 lines (44 loc) · 1.13 KB

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