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!
Nuno
On Thu, Dec 3, 2015 at 11:21 AM, Steven Hardy <shardy(a)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
overcloud
> servers but only on the compute nodes.
>
> I've benn using OS::TripleO::NodeExtraConfigPost . I can get it to
perform
> additional configurations on all nodes. The problem is the
configurations
> I need to implement are only for the compute nodes.
> According to the documentation on
>
https://repos.fedorapeople.org/repos/openstack-m/rdo-manager-docs/liberty...
:
> The OS::TripleO::NodeExtraConfigPost applies configuration to all
nodes,
> there is currently no per-role NodeExtraConfigPost interface.
>
> I've trying to tweak with the templates in order it get it to work,
but
> 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
with
> 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,
Steve
--
Nuno Loureiro
Research & Development
Phone: +351 256 370 980
Email: nuno.loureiro(a)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
Helpdesk] <
http://www.itcenter.com.pt/email/assinatura-email-itcenter.html#>
[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>