[stork-users] What does stork-install-agent.sh do?
Slawek Figiel
slawek at isc.org
Mon Sep 11 14:04:37 UTC 2023
Sure. Please check these references:
-
https://stork.readthedocs.io/en/latest/install.html#installation-from-cloudsmith-and-registration-with-a-server-token
- https://stork.readthedocs.io/en/latest/man/stork-agent.8.html
- stork-agent register --help
In short:
1. Running the register command without argument will prompt
interactively for server token
stork-agent register --server-url=...
2. Running the register command with server token argument will
authorize agent on server right away:
stork-agent register --server-url=... --server-token=...
3. The server token may also be provided in the STORK_AGENT_SERVER_TOKEN
environment variable. In this case, the server token will be used during
the register command call or the initial run if the registration has not
been performed yet.
On 11/09/2023 15:47, DDFR | Ronald Blaas wrote:
> is there a syntax available ?
>
> Would love to see that 🙂
>
>
>
> ------------------------------------------------------------------------
> *Van:* Slawek Figiel <slawek at isc.org>
> *Verzonden:* maandag 11 september 2023 15:35
> *Aan:* DDFR | Ronald Blaas <ronald.blaas at ddfr.nl>
> *Onderwerp:* Re: [stork-users] What does stork-install-agent.sh do?
> If you want to register an agent without manually authorizing it, you
> can pass the server token to the register command. The agent will be
> authorized on the server right away.
>
> Regards,
> Slawek
>
> On 11/09/2023 15:28, DDFR | Ronald Blaas wrote:
>> a yes, i see.
>>
>> So the script will not authorized the agent in the server.
>> This is still a manual task i guess.
>>
>> We install the agent via the repository so no need for a script in that
>> part.
>> Config can be handy 🙂
>>
>> Regards,
>>
>> *Van:* Stork-users <stork-users-bounces at lists.isc.org> namens Slawek
>> Figiel <slawek at isc.org>
>> *Verzonden:* maandag 11 september 2023 15:22
>> *Aan:* stork-users at lists.isc.org <stork-users at lists.isc.org>
>> *Onderwerp:* Re: [stork-users] What does stork-install-agent.sh do?
>> Hello Ronald!
>>
>> The script is available if you provide the Stork agent binary packages
>> in the /assets/pkgs directory in your WWW root (by default:
>> /usr/share/stork/www , so the full path is:
>> /usr/share/stork/www/assets/pkgs).
>>
>> The script should be executed on the machine where you want to install
>> the Stork agent.
>>
>> It downloads and installs the binary package appropriate for a given
>> operating system. Next, it uses systemctl to set up Stork agent as a
>> daemon. After that, it registers a new Stork agent in the Stork server.
>>
>> The script is generated from the template available in the
>> backend/server/restservice/middleware.go:151 file:
>> https://gitlab.isc.org/isc-projects/stork/-/blob/master/backend/server/restservice/middleware.go#L151 <https://gitlab.isc.org/isc-projects/stork/-/blob/master/backend/server/restservice/middleware.go#L151> <https://gitlab.isc.org/isc-projects/stork/-/blob/master/backend/server/restservice/middleware.go#L151 <https://gitlab.isc.org/isc-projects/stork/-/blob/master/backend/server/restservice/middleware.go#L151>>
>>
>> Best regards
>> Slawek
>>
>>
>> On 11/09/2023 15:07, DDFR | Ronald Blaas wrote:
>>> So I know there is an issue/bug with this script not being available but
>>> what does this script do?
>>>
>>> I wonder if I can use this script to auto add an agent to stork.
>>>
>>> Would anyone care to share the contents of the script ?
>>>
>>> Regards,
>>>
>>> Ronald
>>>
>> --
>> Stork-users mailing list
>> Stork-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/stork-users
> <https://lists.isc.org/mailman/listinfo/stork-users>
>> <https://lists.isc.org/mailman/listinfo/stork-users
> <https://lists.isc.org/mailman/listinfo/stork-users>>
More information about the Stork-users
mailing list