Scripts /etc/aws/hosts or other scripts that uses /usr/local/aws/lib/lib.sh

LoreLLo's Avatar

LoreLLo

16 Aug, 2016 01:17 PM

Are those scripts maintained and usable on the platform?

Looking at the source code seems that the library /usr/local/aws/lib/lib.sh is not longer available on images, is it right?

Thanks

  1. Support Staff 1 Posted by Marat Komarov on 16 Aug, 2016 01:35 PM

    Marat Komarov's Avatar

    It's a curious question.

    This library was a part of ami-scripts - out first guest agent.
    It was deprecated and removed 5 years ago http://www.scalr.com/blog/deprecating-scalrs-ami-scripts-agent

    Where you've found a reference to this file?

    Regards,
    Marat

  2. 2 Posted by LoreLLo on 16 Aug, 2016 02:00 PM

    LoreLLo's Avatar

    Oh, interesting, I started using scalr many years ago :)

    I found the script id=51 (cannot link directly) that is still available that used it.
    Script 50 has 51 as requirement.
    Anyway, not a problem at all, I was playing with scripting to find a good way to set Timezone.

    Should I use cloud-init to set timezone? Is there a way to set user-data on the scalr hosts?
    Should I use Scalr Events? What's the event I should rely on?

    I've written a script for this (ID=11091) that uses the command timezonectl, but I'd like to execute it automatically, after cloud-init and before services starts.

    Is there a way to use the value of "timezone" that I set in the farm, inside the script?

    Thanks

  3. Support Staff 3 Posted by Marat Komarov on 18 Aug, 2016 03:28 PM

    Marat Komarov's Avatar

    Scalr utilizes user-data for it's own purposes. It cannot be shared with cloud-init.

    The right place to setup timezone is a blocking HostInit script.

    Regards,
    Marat

  4. LoreLLo closed this discussion on 19 Aug, 2016 08:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac