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
> 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
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,