[Rdo-list] Post-Deploy extra configuration
Nuno Loureiro - ITCenter
nuno.loureiro at itcenter.com.pt
Thu Dec 3 11:27:11 UTC 2015
Thanks a lot for the quick reply Steven!
I will try to perform the conditional test on my script and see if it works.
Thank you very much!
On Thu, Dec 3, 2015 at 11:21 AM, Steven Hardy <shardy at redhat.com> wrote:
> On Thu, Dec 03, 2015 at 11:06:47AM +0000, Nuno Loureiro - ITCenter wrote:
> > Hi all,
> > I need to perform some post-deploy extra configurations on my
> > servers but only on the compute nodes.
> > I've benn using OS::TripleO::NodeExtraConfigPost . I can get it to
> > additional configurations on all nodes. The problem is the
> > I need to implement are only for the compute nodes.
> > According to the documentation on
> > The OS::TripleO::NodeExtraConfigPost applies configuration to all
> > there is currently no per-role NodeExtraConfigPost interface.
> > I've trying to tweak with the templates in order it get it to work,
> > without success, either it performs changes on all nodes or it doesn't
> > perform any change at all.
> > Does any of you know a way to get NOdeExtraConfigPost to work only
> > compute servers, or have any hints or suggestions on how I can achieve
> > this?
> The simplest way is just to include a conditional in whatever script etc
> you're applying via NodeExtraConfigPost, you can, for example, look at the
> hostname of the box to derive the role, as compute is always called
> overcloud-compute-N (or whatever you've set via the ComputeHostnameFormat
> parameter, which you can make unique for computes).
> There are probably several other ways you can determine the node type/role
> but that's one of the simplest.
> Hope that helps,
Research & Development
Phone: +351 256 370 980
Email: nuno.loureiro at itcenter.com.pt <http://www.itcenter.com.pt/>
<http://www.itcenter.com.pt/> <http://www.itcenter.com.pt/> www.itcenter.com.pt
[image: ITCENTER Store] <http://store.itcenter.com.pt/> [image: ITCENTER
[image: ITCENTER Facebook] <https://www.facebook.com/itcenterpt> [image:
ITCENTER Linkedin] <https://www.linkedin.com/company/itcenter> [image:
ITCENTER Twitter] <https://twitter.com/ITCenter_PT>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev