https://github.com/flywirecorp/glare-cookbook
Coookbook to use glare gem for CloudFlare
https://github.com/flywirecorp/glare-cookbook
Last synced: 9 months ago
JSON representation
Coookbook to use glare gem for CloudFlare
- Host: GitHub
- URL: https://github.com/flywirecorp/glare-cookbook
- Owner: flywirecorp
- License: mit
- Created: 2016-06-23T13:00:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T07:44:11.000Z (about 3 years ago)
- Last Synced: 2025-07-20T16:27:53.747Z (12 months ago)
- Language: Ruby
- Size: 58.6 KB
- Stars: 2
- Watchers: 35
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
glare Cookbook
====================
Handles Cloudflare DNS records via API v4
Build Status
============
[](https://travis-ci.org/flywirecorp/glare-cookbook)
[](https://codeclimate.com/github/flywirecorp/glare-cookbook)
[](https://supermarket.chef.io/cookbooks/glare)
Usage
=====
Do `include_recipe 'glare::default'` if using Chef `< 12.8.1`
Resources
=========
**record**
- `create` action:
With scoped API token:
```ruby
glare_record 'domain.com' do
content 'content.com'
type 'CNAME'
email 'test@email.com'
api_token 'example_api_token'
action :create
end
```
With global API key:
```ruby
glare_record 'domain.com' do
content 'content.com'
type 'CNAME'
email 'test@email.com'
auth_key 'example_auth_key'
action :create
end
```
- `delete` action:
```ruby
glare_record 'domain.com' do
type 'CNAME'
email 'test@email.com'
auth_key 'example_auth_key'
action :delete
end
```