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

Fixes #18384: Create a file from remote template generic method #1249

Conversation

ncharles
Copy link
Member

@ncharles
Copy link
Member Author

this is not tested yet

@ncharles ncharles force-pushed the bug_18384/create_a_file_from_remote_template_generic_method branch from f9de958 to 02fcf7b Compare October 21, 2020 20:33
@ncharles
Copy link
Member Author

Commit modified

@ncharles
Copy link
Member Author

PR updated with a new commit

1 similar comment
@ncharles
Copy link
Member Author

PR updated with a new commit

"full_class_prefix" string => canonify("file_from_template_${report_param}");
"class_prefix" string => string_head("${full_class_prefix}", "1000");

"template_folder" string => "${sys.workdir}/templates/file_from_remote_template";
Copy link
Member

Choose a reason for hiding this comment

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

there is a /var/rudder/tmp that already exists and the training tells user to use it for templates

Copy link
Member Author

Choose a reason for hiding this comment

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

interesting, because File from template with type recommends the templates folder

It is common to use a specific folder to store those templates after copy, for example in ${sys.workdir}/templates/.

Copy link
Member

Choose a reason for hiding this comment

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

/var/rudder/templates is not provided by the package, i think we should avoid multiplying things in /var/rudder

Copy link
Member Author

Choose a reason for hiding this comment

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

so we should change the documentation on the others

Copy link
Member

Choose a reason for hiding this comment

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

yes we should

@ncharles
Copy link
Member Author

PR updated with a new commit

1 similar comment
@ncharles
Copy link
Member Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the bug_18384/create_a_file_from_remote_template_generic_method branch from 355cd71 to e7b1470 Compare November 18, 2020 09:22
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit e7b1470 into Normation:branches/rudder/6.1 Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants