<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get the correct address dynamically using morpheus variables in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-the-correct-address-dynamically-using-morpheus-variables/m-p/7247225#M399</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I’m currently trying to get a blueprint to work, hence I want to make a distributed MERN stack, 1st I provision a VM let’s say called (database), then another VM (backend)&lt;/P&gt;
&lt;P&gt;I’m using Ansible playbooks to automate the installations, however when on the second VM (backend) provisioning I need to pick the 1st provisioned VM (database) address&lt;/P&gt;
&lt;P&gt;I tried using something like (below) but had no luck, I’m not sure if possible to get it dynamically or so…&lt;BR /&gt;
**&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;database_host_address : “{{ morpheus[‘instance’][‘containers’] | selectattr(‘hostname’, ‘equalto’, ‘database’) | map(attribute=‘externalIp’) | first }}”&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;**&lt;/P&gt;
&lt;P&gt;appreciate the feedback! thanks&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 16:35:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2025-02-11T16:35:29Z</dc:date>
    <item>
      <title>Get the correct address dynamically using morpheus variables</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-the-correct-address-dynamically-using-morpheus-variables/m-p/7247225#M399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I’m currently trying to get a blueprint to work, hence I want to make a distributed MERN stack, 1st I provision a VM let’s say called (database), then another VM (backend)&lt;/P&gt;
&lt;P&gt;I’m using Ansible playbooks to automate the installations, however when on the second VM (backend) provisioning I need to pick the 1st provisioned VM (database) address&lt;/P&gt;
&lt;P&gt;I tried using something like (below) but had no luck, I’m not sure if possible to get it dynamically or so…&lt;BR /&gt;
**&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;database_host_address : “{{ morpheus[‘instance’][‘containers’] | selectattr(‘hostname’, ‘equalto’, ‘database’) | map(attribute=‘externalIp’) | first }}”&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;**&lt;/P&gt;
&lt;P&gt;appreciate the feedback! thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/get-the-correct-address-dynamically-using-morpheus-variables/m-p/7247225#M399</guid>
      <dc:creator />
      <dc:date>2025-02-11T16:35:29Z</dc:date>
    </item>
  </channel>
</rss>

