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

Update zone documentation #174

Merged
merged 2 commits into from
Oct 13, 2020
Merged

Conversation

marcdeop
Copy link
Member

update_policy_rules was removed some time ago but I still found a reference to its usage in the zone.pp puppet-strings documentation.

This PR updates the docs parameter as well as adding all the other missing ones (even though it doesn't define them, it's better than nothing ;-) ).

Thanks to Erasys GmbH for their support

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Sadly the lint check that would catch this is disabled:

--no-parameter_documentation-check

If we would have all parameters documented, it could actually catch this exact problem.

Comment on lines 26 to 50
# @param target_views Array[String]
# @param zonetype String
# @param soa String
# @param reverse Boolean
# @param ttl String
# @param refresh Integer
# @param update_retry Integer
# @param expire Integer
# @param negttl Integer
# @param serial Integer
# @param masters Array
# @param allow_transfer Array
# @param allow_query Array
# @param also_notify Array
# @param zone String
# @param contact Optional[String]
# @param zonefilepath Stdlib::Absolutepath
# @param filename String
# @param forward Enum['first', 'only']
# @param forwarders Array
# @param dns_notify Optional[Enum['yes', 'no', 'explicit']]
# @param key_directory Optional[Stdlib::Absolutepath]
# @param inline_signing Optional[Enum['yes', 'no']]
# @param dnssec_secure_to_insecure Optional[Enum['yes', 'no']]
# @param auto_dnssec Optional[Enum['allow', 'maintain', 'off']]
Copy link
Member

Choose a reason for hiding this comment

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

I think append the type this way doesn't really work. puppet-strings infers the type if there is one. That means you can leave it off. Ideally we would actually have documentation what they do.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, the type doesn't need to be there.

I haven't added what the params do because I don't really know. My intention was only to fix the mistake with update_policy_rules. Adding the params is only an extra here. You can look at it as a "baby step" :-)

@ekohl ekohl merged commit 100b2f1 into theforeman:master Oct 13, 2020
@wbclark wbclark added the Bug label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants