So I've been attempting to experiment with some customisation of
deployments by utilising the tripleo heat templates and modifying the
post deployment to include some extra setup I want done to my nodes (in
this case, deploying some monitoring and logging agents onto the machines)
I was very silly and niavely assuming that I could take a copy of
openstack-tripleo-heat-templates into my local dir, and run overcloud
openstack overcloud deploy --use-tripleo-heat-templates --tripleo-root
And it would utilise the copy I had taken with all my modifications.
So when this didn't work (it deployed without my changes) I was very confused and had a look in the code. It seems that tripleo-root defaults to
Which contains 5 files which I for the life of my can not make heads or
tails of what they actually do. Likewise, looking at the code to see how
I can make the unified cli use my local copy of
openstack-triple-o-heat-templates I see
TRIPLEO_HEAT_TEMPLATES = "/usr/share/openstack-tripleo-heat-templates/"
OVERCLOUD_YAML_PATH = os.path.join(TRIPLEO_HEAT_TEMPLATES,
They are hardcoded. Can we please have these not hard coded, and configured with a command line switch (e.g. --tripleo-heat-templates-root)
J, would you mind updating this with doc'd steps?
*** Bug 1240123 has been marked as a duplicate of this bug. ***
I'm not sure why this went to jdob rather than akrivoka.
This would be a very simple change in the CLI, it has always been planned but nobody had quite gotten around to it.
Would it make sense for us to change --use-tripleo-heat-templates to --templates and require users pass in the directory? i.e. --templates=/usr/share/openstack-tripleo-heat-templates/
A bit annoying if you don't want to change anything, but it is for advanced users... and then it shows them where to grab a copy
We could easily do the suggestion in https://bugzilla.redhat.com/show_bug.cgi?id=1240101#c7 by adding a new --templates and leaving --use-tripleo-heat-templates as it is.
(In reply to Dougal Matthews from comment #8)
> We could easily do the suggestion in
> https://bugzilla.redhat.com/show_bug.cgi?id=1240101#c7 by adding a new
> --templates and leaving --use-tripleo-heat-templates as it is.
Sounds good to me
Patch midstream: https://review.gerrithub.io/#/c/239444/
After some discussion we went for a --template-root argument.
After some discussions and an issue with the first patch, a second one has been added. https://review.gerrithub.io/239646
*** Bug 1235622 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.