Giter VIP home page Giter VIP logo

chef-cookbook-tinc's Introduction

tinc Cookbook

TODO: Enter the cookbook description here.

e.g. This cookbook makes your favorite breakfast sandwich.

Requirements

TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.

e.g.

packages

  • toaster - tinc needs toaster to brown your bagel.

Attributes

TODO: List your cookbook attributes here.

e.g.

tinc::default

Key Type Description Default
['tinc']['bacon'] Boolean whether to include bacon true

Usage

tinc::default

TODO: Write usage instructions for each cookbook.

e.g. Just include tinc in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[tinc]"
  ]
}

Contributing

TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: TODO: List authors

chef-cookbook-tinc's People

Contributors

mpasternacki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chef-cookbook-tinc's Issues

No resource, method, or local variable named 'ha' for recipe "default"

================================================================================
  Recipe Compile Error in /var/chef/cache/cookbooks/tinc/recipes/default.rb
  ================================================================================

  NameError
  ---------
  No resource, method, or local variable named `ha' for `Chef::Recipe "default"'

  Cookbook Trace:
  ---------------
    /var/chef/cache/cookbooks/tinc/recipes/default.rb:17:in `hex_address_unique?'
    /var/chef/cache/cookbooks/tinc/recipes/default.rb:26:in `block in from_file'
    /var/chef/cache/cookbooks/tinc/recipes/default.rb:24:in `loop'
    /var/chef/cache/cookbooks/tinc/recipes/default.rb:24:in `from_file'

  Relevant File Content:
  ----------------------
  /var/chef/cache/cookbooks/tinc/recipes/default.rb:

   10:  def hex_address_unique?(hex_address)
   11:    return false if hex_address == '0000'
   12:    return false if hex_address == 'ffff'
   13:    if Chef::Config[:solo]
   14:      Chef::Log.warn('Running solo, cannot check address uniqueness')
   15:      return true
   16:    else
   17>>     return search(:node, "tinc_hex_address:#{ha}").empty?
   18:    end
   19:  end
   20:
   21:  unless node['tinc']['hex_address']
   22:    require 'digest/md5'
   23:    ha_base = node.name
   24:    loop do
   25:      ha = Digest::MD5.hexdigest(ha_base)[-4..-1]
   26:      if hex_address_unique?(ha)

Just as the title says, I think this was an instance of incorrect copy & paste. I expect it should be hex_address in this instance?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.