Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

aa_consul_template (2) Versions 0.1.0

Installs/Configures consul-template

Policyfile
Berkshelf
Knife
cookbook 'aa_consul_template', '= 0.1.0', :supermarket
cookbook 'aa_consul_template', '= 0.1.0'
knife supermarket install aa_consul_template
knife supermarket download aa_consul_template
README
Dependencies
Quality 17%

CircleCI

aa_consul_template

Installs and configures consul-template

Supported Platforms

  • Ubuntu 18.04
  • Centos 7
  • Windows

Attributes

  • default['consul_template']['source_url'] - Source for the consul-template binary
    • (default: https://releases.hashicorp.com/consul-template)
  • default['consul_template']['version'] - Version of consul-template to install
    • (default: 0.25.1)
  • default['consul_template']['archive_ext'] - File extension of the downloaded binary
    • (default: .zip)
  • default['consul_template']['install_dir'] - Location on the filesystem to install the binary
    • default:
    • Windows: ENV['SystemDrive'] + '\Program Files\consul_template
    • Linux: /usr/local/bin
  • default['consul_template']['binary_name'] - Name of the binary file once extracted
    • default:
    • Windows: consul-template.exe
    • Linux: consul-template
  • default['consul_template']['config']['consul']['address'] - Address to access Consul server
    • (default: 127.0.0.1:8500)
  • default['consul_template']['config']['vault']['address'] - Address to access Hashicorp Vault
    • (default: http://127.0.0.1:8200)
  • default['consul_template']['config_dir'] - Location on the filesystem to place configuration files
    • default:
    • Windows: ENV['SystemDrive'] + '\Program Files\consul_template\consul_template.d
    • Linux: /etc/consul-template.d
  • default['consul_template']['log_dir'] - Logging directory
    • default:
    • Windows: ENV['SystemDrive'] + '\Program Files\consul_template\logs
    • Linux: /var/log/consul-template
  • default['consul_template']['environment_variables'] - Linux Only: Additional environment variables to pass to systemd unit file
  • default['consul_template']['manage_service'] - Bool: Whether or not to create and manage a service for consul-template
    • (default: false)

Resources

consul_template_config - Used to place HCL files for the consul-template service to action. It accepts two properties, name and templates.

  • name - type: string (default: name of resource)
  • templates - type: array (accepts one or more ruby hashes)

Example:

consul_template_config 'test.hcl' do
  templates [
    {
      source: '/path/to/first/source',
      destination: '/path/to/first/dest',
      backup: true,
      perms: '0644',
      wait: {
        min: '2s',
        max: '5s',
      },
    },
    {
      source: '/path/to/second/source',
      destination: '/path/to/second/dest',
      backup: false,
      perms: '0755',
      wait: {
        min: '10s',
        max: '15s',
      },
    },
  ]
end

This will yield a file that looks like:

template {
  source = "/path/to/first/source" 
  destination = "/path/to/first/dest" 
  backup = true 
  perms = 0644 
  wait {
    min = "2s"
    max = "5s"
  } 
}

template {
  source = "/path/to/second/source" 
  destination = "/path/to/second/dest" 
  backup = false 
  perms = 0755 
  wait {
    min = "10s"
    max = "15s"
  } 
}

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC070: Ensure supports metadata defines valid platforms: aa_consul_template/metadata.rb:1
FC108: Resource should not define a property named 'name': aa_consul_template/resources/config.rb:4
FC117: Do not use kind_of in custom resource properties: aa_consul_template/resources/config.rb:1
FC117: Do not use kind_of in custom resource properties: aa_consul_template/resources/config.rb:4
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number