Hello,
We have to install an agent on newly deployed VMs, via vRA. Ideally we'd like to have the agent stored in the vRO resources.
We were thinking using Extensibility to trigger a flow that will "copy the file from vCO to guest", then use "Run program in guest" to achieve the agent installation. But that means storing the agent inside the vRO container.
Note: At the moment we doing this with cloud-init. But we really would like to do everything with VMware only.
Tks
We are using vSphere 7 and vRA 8.3
We install this agent on Windows and Linux (SLES/RHEL)
I think you should be able to store the file as a vRO ResourceElement depending on the size of it. You'd have some wrangling to do to extract the content to a file on the appliance so the Copy file from vCO to guest workflow can operate (it requires a local file IIRC). The content of a ResourceElement is accessible as a MimeAttachment which can be written to a File on the local filesystem. Look at the File object in the API explorer which operates a lot like a java.io.File object. In terms of exactly *where* on the filesystem it will be created I'm not sure about as all the containers may have different roots & mounts.
Realistically, you'd have to try this out to see how it would work.
I have stored content of the order of 1-2MB as vRO ResourceElements in the past without any problems but can't say if there are challenges with larger items. In the end, whatever you store there is being written to a BLOB in a database somewhere in one of the containers I suspect.
In relation to the use of the GSM workflows for stuff like this, I like the package a lot & I've found it works quite well in general but I (at least) found it difficult to debug when it goes sideways due to the spread of the logging (workflows calling workflows calling workflows means lots of hopping about in the client - I suspect this is even more the case in the HTML client now which I find quite 'click-heavy' anyway).
Did you ever find a path forward on this? Trying to use the same workflow, Copy file from vCO to guest. Now that it's all containerized, not sure where that file gets stored for use.
Thanks!
Hi,
We have solved by using the management software (Micro Focus SA) itself to install the agent on the target VM. That works well for us.
According to eoinbyrne (see above) the file get stored in the DB
Rgds
Where the file is written to depends on how it is created. If you use this method on the System Object
It creates a file in the System temp storage area with the given suffix and returns the File object which refers to it which has the following members
Either of File.directory or File.path should have the full path to the file location on the current FS. Once you have that info you should be able to feed the value to the GSM Copy File workflow
-HTH