In this part of the tutorial we're going to login to our StackStorm box, authenticate with StackStorm and finally install this tutorial pack.
If you're doing this at home, you'll need to provision a StackStorm node. This can be done in a number of different ways detailed in the StackStorm install docs. You can also use terraform-st2 that was used for the PyOhio 2018 tutorial.
SSH into your StackStorm host:
# the hostname should be on the card at your station
ssh [email protected]
In order to perform actions on the command line and/or API, you need a valid authentication token. Authenticating on the CLI can be performed like so:
# use the password on the card at your station
st2 login -w st2admin
NOTE This will write your password to a local file ~/.st2/config
. This is
NOT recommended for production.
Next, we want to install this tutorial on the system so we can use the content in further sections. Packs are simply git repos and can be installed like so:
st2 pack install https://github.com/encoretechnologies/stackstorm-tutorial.git
Our code should now be present in: /opt/stackstorm/packs/tutorial/
ls -l /opt/stackstorm/packs/tutorial/