Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal for improvement to have a better split between data and code #12

Merged
merged 6 commits into from
Dec 28, 2024

Conversation

cr9427
Copy link

@cr9427 cr9427 commented Dec 9, 2024

with this patch, you have only to call the class bind, alls subclasses will be called and the data is sourced via hiera keys all appeded with 's' (see below)

few examples:

bind::configs:
'named.conf.servers':
content: |
server 192.168.1.1 {
keys { dns-axfr; };
};

bind::acls:
primaries:
address_match_list:
- 192.168.1.1 comment: powerdns

bind::keys:
dns-axfr:
algorithm: hmac-sha512 base64_secret: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=='

bind::zone::secondarys:
example.net:
masters:
- 192.168.1.1

I'm hope this will make this module a bit more convinent and handy

Best greetings from Berlin
/holm

with this patch, you have only to call the class bind,
alls subclasses will be called and the data is sourced
via hiera keys all appeded with 's' (see below)

few examples:

bind::configs:
  'named.conf.servers':
    content: |
      server 192.168.1.1 {
        keys { dns-axfr; };
      };

bind::acls:
  primaries:
    address_match_list:
      - 192.168.1.1
    comment: powerdns

bind::keys:
  dns-axfr:
    algorithm: hmac-sha512
    base64_secret: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=='

bind::zone::secondarys:
  example.net:
    masters:
      - 192.168.1.1

I'm hope this will make this module a bit more convinent and handy

Best greetings from Berlin
/holm
@cr9427 cr9427 changed the title improvement to have a better split between data and code proposal for improvement to have a better split between data and code Dec 9, 2024
@smoeding
Copy link
Owner

Thanks for your PR. The spelling of some the new parameters looks odd. If you don't mind, I will update those.

The PR seems to be in a draft state. Do you like to add something or can I merge the current state?

@cr9427
Copy link
Author

cr9427 commented Dec 18, 2024 via email

@cr9427 cr9427 marked this pull request as ready for review December 18, 2024 06:48
bind::zone::primaries:
example.com:
update_policy: grant nsupdate zonesub any
content: 'epp("profile/dynamic-zone-template.epp", $params)'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work. The content of the zone file will be the given string and not the content of the template.

@smoeding smoeding merged commit 4ec2031 into smoeding:master Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants