<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1782798392;
mso-list-type:hybrid;
mso-list-template-ids:-2083647412 -808005676 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Dear fellow stackers,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m currently trying to run a manifest from within a heat template. This manifest test the hostname and depending on the value will do different things. I need to pass some extra variables that are set in an environment file to the manifest,
and It failed so far. I’m driving nuts at this moment and even though all of the things I found on google, there is no way to get it work.
<o:p></o:p></p>
<p class="MsoNormal">RHOSP 10 is driving my overcloud.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below are the files I’m using.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>Heat Template<o:p></o:p></p>
<div style="border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt">
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">heat_template_version: 2016-10-14<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">description: ><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> NFV Feature Hugepages configured by Puppet for computeNfv role.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">parameters:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> servers:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> type: json<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageSize:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> type: string<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageCount:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> type: string<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">resources:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> NovaComputeExtraConfig:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> type: OS::Heat::SoftwareConfig<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> properties:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> group: puppet<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> inputs:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> - name: HugePageSize<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> - name: HugePageCount<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> config:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> get_file: ../manifests/hugepages.pp<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> options:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> enable_hiera: True<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> enable_facter: False<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> ExtraPuppetDeployment:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> type: OS::Heat::SoftwareDeployments<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> properties:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> servers: {get_param: servers}<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> config: {get_resource: NovaComputeExtraConfig}<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> input_values:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageSize: {get_param: HugePageSize}<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageCount: {get_param: HugePageCount}<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> actions: ['CREATE','UPDATE']<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>Puppet manifest<o:p></o:p></p>
<div style="border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt">
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">if $hostname =~ /compute-nfv/ {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> file { '/tmp/test_puppet':<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> ensure => 'file',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> content => "This is an NFV node!!! Setting ${HugePageCount} pages of ${HugePageSize} each",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> owner => 'root',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> group => 'root',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> mode => 0777,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> }<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">} else {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> file { '/tmp/test_puppet':<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> ensure => 'file',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> content => 'This is not an NFV node... Nothing to set',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> owner => 'root',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> group => 'root',<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> mode => 0777,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> }<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">}<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>Environment file<o:p></o:p></p>
<div style="border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt">
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">resource_registry:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> OS::TripleO::NodeExtraConfigPost: puppet/services/hugepages.yaml<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC">parameter_defaults:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> OvercloudComputeNfvFlavor: baremetal<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> ComputeNfvCount: 3<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageSize: 2048<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt;background:#F7CAAC"> HugePageCount: 4<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal">JP<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Jean-Pierre Roquesalane</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt">SW System Sr Principal Engineer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#0090C6">Dell </span></b><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black">| Service Provider Solutions</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black">mobile</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#565656"> <a href="tel:1-613-314-8106"><span style="color:#0090C5">+33 6 21 86 79 04</span></a>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0090C5"><o:p></o:p></span></p>
<p class="MsoNormal"><u><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#0090C5"><a href="mailto:jeanpierre.roquesalane@dell.com"><span style="color:blue">jeanpierre.roquesalane@dell.com</span></a><o:p></o:p></span></u></p>
<p class="MsoNormal"><img border="0" width="226" height="50" id="Picture_x0020_3" src="cid:image001.jpg@01D33154.160B4E90" alt="cid:image002.jpg@01D33153.A5CB7F60"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0090C5"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>