- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Morpheus agent on Golden image / Template
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 07:10 PM
08-07-2024 07:10 PM
Hello,
Is it the best practice to create Golden image/ template with Morpheus agent installed?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 01:27 AM
08-08-2024 01:27 AM
Re: Morpheus agent on Golden image / Template
In practice this may not save much effort.
Each VMs agent connects with the appliance with a unique API key so that Morpheus can manage the various connections and data it receives. You’d need to find this for the provisioned VM and update it in the morpheus-node.rb file
cat /etc/morpheus/morpheus-node.rb
Shows this (and more):
package['appliance_url'] = 'https://<url>/'
package['iface'] = 'eth0'
package['api_token'] = '39f0ab2c-405f-4e70-23435235235' ## API key for this VM
...
You’d also want Morpheus to be able to manage the agent in order to upgrade it, which requires the same connectivity as installing it.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 02:20 PM
08-09-2024 02:20 PM
SolutionHi,
We typically use the following code in the cloud-init ‘user_data’ section of our Terraform code when building VMs:
<%=instance.cloudConfig.agentInstall%>
<%=instance.cloudConfig.finalizeServer%>
This gets translated by Morpheus (before the Terraform code runs on the Morpheus Appliance) to two curl commands with the unique API key embedded that Ollie mentioned in his response. Then once the VM starts and cloud-init runs, these two curl commands do their job to download the Morpheus Agent from the Morpheus Appliance and registers the VM’s agent within Morpheus.
Pre-installing the Morpheus agent code onto the image and then trying to figure out the unique API and modifying the various Morpheus agent config files is a lot more difficult than using the cloud-init and the two pieces of Groovy variable substitutions in the Terraform (or Cloud Formation / ARM) code.
Some instance types have a checkmark that allows you to state if the agent needs to be installed or not. Morpheus will then inject these two lines of code automatically in the cloud-init user_data phase.
-Yaron.