How to define custom templates with foreman --template parameter?

When using foremangem, I have some problems when it does not allow me to define a custom template.

For one of my applications, I can define ~ / .foreman / templates / upstart / master.conf.erb and it reads fine. However, for another project, no matter what I try, I can not get the template to cause the forman export to output correctly.

I tried in different ways to define the -t and --template flag with a file with absolute and relative paths to the ~ / .foreman approach. Nothing seems to work.

Could you offer some demos / scenarios of how the -t flag should be defined with a template in a version-controlled directory (for example, in config / upstart-master.conf.erb)?

+5
source share
1 answer

The argument specified -t(or --template) must be a directory containing 0, 1, 2, or all 3 of:

master.conf.erb
process_master.conf.erb
process.conf.erb

And not the file itself.

Initial request to distract an object . Retrieve the document improvement request , as the current documents only indicate: "Specify an alternative template for creating export files."

+4
source

All Articles