StackStorm

StackStorm is an event-driven software solution for automating routine tasks. It supports the principle of Infrastructure as Code (IaC) in the context of DevOps. StackStorm can be compared to alternatives like Ansible or SaltStack. The end-user counterpart to StackStorm are services like IFTTT, Make, or Zapier. StackStorm is written in Python and offers a wide range of modules for almost any conceivable use case in IT.

Installation

Installing our package for StackStorm is quite straightforward. A working instance of StackStorm is required. Once available, simply execute the command st2 pack install https://github.com/seven-io/stackstorm in a terminal.

Configuration

The sample configuration seven.yaml.dist must be copied to /opt/stackstorm/configs/seven.yaml, and the key api_key must be supplemented with an API key from seven, which can be created or viewed in the Developer Dashboard. The configuration file also supports dynamic values - see documentation.

Important: After completing the configuration, StackStorm must be informed of new values by executing st2ctl reload --register-configs in the terminal.

Actions

The following explains the implemented actions. Each action addresses a different endpoint of the interface.

Send SMS

This action sends SMS messages. Multiple recipients can be specified, separated by commas.

Example: st2 run seven.send_sms to="01716992343,49179876543210" text="HI2U" from="SenderIdentifier" flash=true performance_tracking=true sandbox=false no_reload=true label="MyLabel" foreign_id="MyForeignID" delay="2022-11-29 14:15:30"

Send voice message

This action converts a text into speech, calls the specified telephone number and plays the message.

GitHub

Seven for StackStorm is an open source product. The source code can be accessed at any time via the links at the top of the page.

  1. 1

    Receive API key

    To be able to use the service, you need an API key. This is referred to as api_key in the documentation.

  2. 2

    Execute example command

    Use the following command to send a voice message:

    st2 run seven.send_voice to=+491716992343 text='System outage!' from=+49179876543210 xml=false
    
  3. 3

    Further configurations

    Adjust the parameters according to your needs to make the best use of the service.

Last updated: 5 days ago