[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Rdo-list] Post-Deploy extra configuration



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/advanced_deployment/extra_config.html: 
>    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?
> 
>    Thank you very much!
>    Regards

Sorry, correction to my previous reply, the default hostname format is e.g
overcloud-novacompute-0, so you can just do something like

! hostname -s | grep -q "novacompute" && return 0

at the start of your script and it will do nothing on non-compute nodes.

Steve


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]