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

clarify 'Host/Name in Template' by adding ascii diagram #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kerolasa
Copy link
Collaborator

This update tries to make it really clear 'host' is a key word that exists in two namespaces 1) as a apply parameter, and 2) template value. It would have been nice if these string had been different, but we have what we do and the best in this situation is to try to be as clear and explicit as possible the two 'hosts' are separate but related.

Co-authored-with: Jack Holdsworth [email protected]

This update tries to make it really clear 'host' is a key word that exists
in two namespaces 1) as a apply parameter, and 2) template value.  It would
have been nice if these string had been different, but we have what we do
and the best in this situation is to try to be as clear and explicit as
possible the two 'hosts' are separate but related.

Co-authored-with: Jack Holdsworth <[email protected]>
Signed-off-by: Sami Kerola <[email protected]>
|
v
+----------------------------------------+
| get domain from template: example.com. |
Copy link
Member

Choose a reason for hiding this comment

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

What is the meaning of "get domain from template"? Or is it the domain of apply call (L1964) ?

|
v
+------------------------------+
| does template include: host? |
Copy link
Member

Choose a reason for hiding this comment

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

This part should be somehow in loop over all the records, shouldn't it?

+-------------------------+ |
^ v
| +----------------+
yes--| is the host: @ |
Copy link
Member

Choose a reason for hiding this comment

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

Somewhere in between should be also variable resolution, which can also be in the host field.

| no
v
+-----------------------------+
  | get host from template: bar |
Copy link
Member

Choose a reason for hiding this comment

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

Somehow would be good to be more indicative which part is an algorithm and which one is an example

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