sous-chefs / sous-chefs/bind

manage_serial in bind_primary_zone_template seems not working any longer

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
35
Forks
44
Avg merge
5h 29m
Merged PRs (30d)
1

Description

if i use manage_serial true in bind_primary_zone_template and update record in that zone, the serial is not counting up any longer.

I guess you have revert the line
the correct(old) was:
persisted_values = node.normal['bind']['zone'][new_resource.file_name]
the incorrect (new) is:
persisted_values = node.default['bind']['zone'][new_resource.file_name]

according to https://docs.chef.io/attributes/

A normal attribute is a setting that persists in the node object. A normal attribute has a higher attribute precedence than a default attribute.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with resources/primary_zone_template.rb around line 59 and compare the persisted attribute lookup with the linked historical version. Reproduce an update to a zone record with manage_serial enabled, then confirm that the zone serial increments as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.