The pluginId in that cluster profile fragment refers to a completely
different ec2 elastic agent plugin so not sure what you're trying to show
us there 😅

Personally, I don't think it's a good idea to be directly configuring
cruise-config.xml especially for plugin-oriented config, since it
necessarily cannot be schema validated. Elastic agent config is typically
complex with validation rules implemented in the plugin. If automation is
the goal, using the APIs for automation is likely a better experience than
cruise-config.xml hacking.

If you really want to control cruise config directly, start with a working
UI-driven configuration and work backwards to the required cruise-config
XML fragment.

Otherwise you'll need to look at the logs and there's no guarantee as to
how friendly the error messages will be, as you are shortcutting all of the
UI-based validation assistance with that approach.

-Chad

On Wed, 15 Nov 2023, 04:16 Satya Elipe, <satya.el...@gmail.com> wrote:

> Thank you Chad, as suggested I have used v3.2.3 in the container and it
> appears in the console.
>
> Im now into configuring cluster and agents profiles and trying to build
> them in cruise-config.xml (attached the code snippet), but doesn't seem to
> be working as those profiles doesn't appear on the Admin->Elastic Agents
> Configurations tab, but its asking for a fresh configuration, wonder what
> am I missing? Also, is it still a valid way of configuration ?
>
> Regards
> Satya
>
>
> On Mon, Nov 13, 2023 at 11:08 PM Chad Wilson <ch...@thoughtworks.com>
> wrote:
>
>> There's no such release. You should use a non-experimental release from
>> https://github.com/gocd-contrib/docker-elastic-agents-plugin/releases
>> and find the link to the main jar file within that release.
>>
>> There should be no reason you cannot use the most recent release
>> <https://github.com/gocd-contrib/docker-elastic-agents-plugin/releases/tag/v3.2.3-399>:
>>
>> https://github.com/gocd-contrib/docker-elastic-agents-plugin/releases/download/v3.2.3-399/docker-elastic-agents-3.2.3-399.jar
>>
>> -Chad
>>
>> On Tue, Nov 14, 2023 at 10:50 AM Satya Elipe <satya.el...@gmail.com>
>> wrote:
>>
>>> Hi All
>>>
>>> Im containerizing my standalone GoCD server v22.3.0 with elastic agents,
>>> and looking for the elastic agents plugin jar file location for the version
>>> that works with server version v22.3.0 and use it in the container
>>> something like:
>>>
>>> docker run -d -p 8153:8153 -p 8154:8154 \
>>>   -v /etc/go:/etc/go \
>>>   -v /var/lib/go-server:/var/lib/go-server \
>>>   -e GOCD_PLUGIN_INSTALL_docker-elastic-agents=
>>> https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v2.2.0-218/docker-elastic-agents-2.2.0-218.jar
>>> \
>>>   --name gocd-server \
>>>   gocd/gocd-server:v22.3.0
>>>
>>> The above command fails with the below error:
>>> ```$ mkdir -p /godata/plugins/external
>>> $ curl --silent --location --fail --retry 3
>>> https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v2.2.0-218/docker-elastic-agents-2.2.0-218.jar
>>> --output /godata/plugins/external/docker-elastic-agents.jar
>>> /usr/local/sbin/install-gocd-plugins: cannot curl --silent --location
>>> --fail --retry 3
>>> https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v2.2.0-218/docker-elastic-agents-2.2.0-218.jar
>>> --output /godata/plugins/external/docker-elastic-agents.jar```
>>>
>>>
>>> I see the documentation available for the same, my bad that I couldn't
>>> locate the jar file:
>>> https://github.com/gocd-contrib/docker-elastic-agents-plugin
>>>
>>> https://github.com/gocd-contrib/docker-elastic-agents-plugin/blob/master/INSTALL.md
>>>
>>> Any inputs will be of great help.
>>>
>>> Many thanks
>>> Satya
>>>
>>> [P.S: Right now the server runs as a standalone ec2 on AWS, plan is to
>>> run it as part of ECS.]
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to go-cd+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/CADKEDRpTctJDBtWXSJWoEW81ryUwL7cAzeePbuZd4wi7LDmQFg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/go-cd/CADKEDRpTctJDBtWXSJWoEW81ryUwL7cAzeePbuZd4wi7LDmQFg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to go-cd+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/CAA1RwH_-2KLLOTYUOuHHVuSNBLO1Ax24n6zyRHTpm6KftaUKkQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/go-cd/CAA1RwH_-2KLLOTYUOuHHVuSNBLO1Ax24n6zyRHTpm6KftaUKkQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to go-cd+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CADKEDRoCvOm3GhcaR_XwZCNhucWdckjo9BQ0M6x6Ap7MJZfRkw%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CADKEDRoCvOm3GhcaR_XwZCNhucWdckjo9BQ0M6x6Ap7MJZfRkw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH-5D41mYouXe3WmQtUp%3D6Tr9nCsCHHk3bwPwoSE3JJzSg%40mail.gmail.com.

Reply via email to