[Kea-users] Stork Agent install via bash script

Justin Krejci JKrejci at usinternet.com
Mon Sep 11 17:41:54 UTC 2023


Yeah, you probably should take this to the Stork list but I believe the Stork server auto generates the contents of the .sh script, filling its own server address and the Stork agent package version details dynamically.

Here is what mine looks like after downloading from my Stork server, replacing the address info with "server.address"


#!/bin/sh
set -e -x

rm -f /tmp/isc-stork-agent.{deb,rpm,apk}


if [ -e /etc/debian_version ]; then
    curl -o /tmp/isc-stork-agent.deb "server.address:8080/assets/pkgs/isc-stork-agent_1.12.0.230802125032_amd64.deb"
    DEBIAN_FRONTEND=noninteractive dpkg -i --force-confold /tmp/isc-stork-agent.deb
fi


if [ -e /etc/alpine-release ]; then
        wget -O /tmp/isc-stork-agent.apk "server.address:8080/assets/pkgs/isc-stork-agent.apk"
        apk add --no-cache --no-network /tmp/isc-stork-agent.apk
fi



systemctl daemon-reload
systemctl enable isc-stork-agent
systemctl restart isc-stork-agent
systemctl status isc-stork-agent

su stork-agent -s /bin/sh -c 'stork-agent register -u http://server.address:8080'




________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of DDFR | Ronald Blaas <ronald.blaas at ddfr.nl>
Sent: Monday, September 11, 2023 7:53 AM
To: Darren Ankney; kea-users at lists.isc.org
Subject: Re: [Kea-users] Stork Agent install via bash script

Yes will do.
Thanks

________________________________
Van: Kea-users <kea-users-bounces at lists.isc.org> namens Darren Ankney <darren.ankney at gmail.com>
Verzonden: maandag 11 september 2023 14:31
Aan: kea-users at lists.isc.org <kea-users at lists.isc.org>
Onderwerp: Re: [Kea-users] Stork Agent install via bash script

Hi Ronald,

I would happily share the contents of the file with you, but I am not
able to find the file here:
https://gitlab.isc.org/isc-projects/stork/-/find_file/master<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=sfr3wvjx&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Fgitlab.isc.org%2Fisc-projects%2Fstork%2F-%2Ffind_file%2Fmaster>

Try asking on stork-users
( https://lists.isc.org/mailman/listinfo/stork-users<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=n4dopaxs&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fstork-users>) perhaps?

Thank you,

Darren Ankney

On Thu, Sep 7, 2023 at 9:42 AM DDFR | Ronald Blaas <ronald.blaas at ddfr.nl> wrote:
>
> Hi all,
>
> Either I have misconfigured something or the scripts is just missing.
> When I try to download the agent script ( wget https://host:8080/stork-install-agent.sh<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=z4oedlbh&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Fhost%3A8080%2Fstork-install-agent.sh> ) I get an error
> Cannot find any agent package in '/usr/share/stork/www/assets/pkgs' directory. You must download the Stork agent packages from CloudSmith and put them in that directory to make stork-install-agent.sh work.
>
> I can manually register the clients but would like to investigate the script method.
>
> Any insights?
> Working with stork 1.12 (on 1.11 same problem)
>
> Regards,
>
> Ronald
> --
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=z6gcesja&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Fwww.isc.org%2Fcontact%2F> for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=n4jewo2u&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users>.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=n4jewo2u&n=brkce4fyv&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users>
--
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=n2cdseff&n=brkce4fyw&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Fwww.isc.org%2Fcontact%2F> for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=dyvqpd2h&n=brkce4fyw&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users>.

Kea-users mailing list
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users<https://url-shield.securence.com/?p=1.0&r=jkrejci@usinternet.com&sid=1694436822314-084-00070256&s=dyvqpd2h&n=brkce4fyw&ms=3.1,3.1,0.0,0.0&u=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230911/3445f6db/attachment-0001.htm>


More information about the Kea-users mailing list