Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.4 KB

00_init.md

File metadata and controls

48 lines (33 loc) · 1.4 KB

Initialization

In this part of the tutorial we're going to login to our StackStorm box, authenticate with StackStorm and finally install this tutorial pack.

Provisioning

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.

Login

SSH into your StackStorm host:

# the hostname should be on the card at your station
ssh [email protected]

Authenticate

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.

Install the tutorial pack

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/