<div dir="ltr"><div><div><div>Thanks a lot for the quick reply Steven!<br><br></div>I will try to perform the conditional test on my script and see if it works.<br><br></div>Thank you very much!<br></div>Nuno<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 3, 2015 at 11:21 AM, Steven Hardy <span dir="ltr"><<a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Dec 03, 2015 at 11:06:47AM +0000, Nuno Loureiro - ITCenter wrote:<br>
>    Hi all,<br>
><br>
>    I need to perform some post-deploy extra configurations on my overcloud<br>
>    servers but only on the compute nodes.<br>
><br>
>    I've benn using OS::TripleO::NodeExtraConfigPost . I can get it to perform<br>
>    additional configurations on all nodes. The problem is the configurations<br>
>    I need to implement are only for the compute nodes.<br>
>    According to the documentation on<br>
>    <a href="https://repos.fedorapeople.org/repos/openstack-m/rdo-manager-docs/liberty/advanced_deployment/extra_config.html" rel="noreferrer" target="_blank">https://repos.fedorapeople.org/repos/openstack-m/rdo-manager-docs/liberty/advanced_deployment/extra_config.html</a>: <br>
>    The OS::TripleO::NodeExtraConfigPost applies configuration to all nodes,<br>
>    there is currently no per-role NodeExtraConfigPost interface.<br>
><br>
>    I've trying to tweak with the templates in order it get it to work, but<br>
>    without success, either it performs changes on all nodes or it doesn't<br>
>    perform any change at all.<br>
><br>
>    Does any of you know a way to get NOdeExtraConfigPost to work only with<br>
>    compute servers, or have any hints or suggestions on how I can achieve<br>
>    this?<br>
<br>
</span>The simplest way is just to include a conditional in whatever script etc<br>
you're applying via NodeExtraConfigPost, you can, for example, look at the<br>
hostname of the box to derive the role, as compute is always called<br>
overcloud-compute-N (or whatever you've set via the ComputeHostnameFormat<br>
parameter, which you can make unique for computes).<br>
<br>
There are probably several other ways you can determine the node type/role<br>
but that's one of the simplest.<br>
<br>
Hope that helps,<br>
<br>
Steve<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><table><tbody><tr><td style="font-size:13px;color:black"><font size="4">Nuno Loureiro</font><br></td>
    </tr>
    <tr style="display:block;margin-bottom:10px">
        <td style="font-size:11px;color:rgb(102,102,102)">Research & Development<br></td>
    </tr>
    <tr>
        <td style="font-size:11px;color:rgb(102,102,102);line-height:15px">Phone: <a href="tel:%2B351%20256%20370%20980" value="+351256370980" target="_blank">+351 256 370 980</a><br></td>
    </tr>
    <tr>
        <td style="font-size:11px;color:rgb(102,102,102);line-height:15px">Email: <a href="mailto:nuno.loureiro@itcenter.com.pt" target="_blank">nuno.loureiro@itcenter.com.pt</a></td>
    </tr>



    <tr style="display:block;width:100%;margin-top:10px">
        <td style="width:600px;padding:0px">
            <table style="border-collapse:collapse;width:100%">
                <tbody><tr>

                    <td>
                        <a href="http://www.itcenter.com.pt/" style="width:124px;min-height:74px;display:block;float:left" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_logo-itcenter_124x74.jpg">
                        </a>
                    </td>
                    <td>
                        <a href="http://www.itcenter.com.pt/" style="width:50px;min-height:74px;margin-left:20px;display:block;float:left" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_premios-destincoes_50x74.jpg">
                        </a>
                    </td>
                    <td style="display:block;width:100%;padding:0px">
                        <a href="http://www.itcenter.com.pt/" style="width:317px;min-height:87px;display:block;float:right" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_noticia-destaque.jpg">
                        </a>
                    </td> 

                </tr>
            </tbody></table>
        </td>
    </tr>




    <tr style="border-top:1px solid rgb(0,194,169);padding-top:3px;display:block">
        <td style="width:600px;padding:0px">

            <table style="border-collapse:collapse">
                <tbody><tr>
                    <td>

                        <table style="border-collapse:collapse">
                            <tbody><tr>

                                <td style="float:left;line-height:18px"><a style="text-decoration:none;color:rgb(102,102,102)" href="http://www.itcenter.com.pt/" target="_blank">www.itcenter.com.pt </a></td>
                                <td>
                                    <a href="http://store.itcenter.com.pt/" style="margin-left:10px;width:23px;min-height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_store.jpg" alt="ITCENTER Store" title="ITCENTER Store">
                                    </a>
                                </td>
                                <td>
                                    <a href="http://www.itcenter.com.pt/email/assinatura-email-itcenter.html#" style="margin-left:10px;width:23px;min-height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_helpdesk.jpg" alt="ITCENTER Helpdesk" title="ITCENTER Helpdesk">
                                    </a>
                                </td>

                            </tr>
                        </tbody></table>

                    </td>



                    <td style="width:100%;padding:0px"><br></td>



                    <td style="border-collapse:collapse">

                        <table style="border-collapse:collapse">
                            <tbody><tr style="width:100px;float:right">

                                <td style="float:right;margin-left:5px;padding:0px">
                                    <a href="https://www.facebook.com/itcenterpt" style="margin-left:5px;width:23px;min-height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_facebook.jpg" alt="ITCENTER Facebook"> 
                                    </a>
                                </td>
                                <td style="float:right;margin-left:5px;padding:0px">
                                    <a href="https://www.linkedin.com/company/itcenter" style="margin-left:5px;width:23px;min-height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_linkedin.jpg" alt="ITCENTER Linkedin"> 
                                    </a>
                                </td>
                                <td style="float:right;padding:0px">
                                    <a href="https://twitter.com/ITCenter_PT" style="margin-left:5px;width:23px;min-height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_twitter.jpg" alt="ITCENTER Twitter"> 
                                    </a>
                                </td>
                            </tr>
                        </tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>
</div>