droplet-1-clicks
droplet-1-clicks copied to clipboard
Add StackStorm 1-Click Droplet app
StackStorm is event-driven automation platform written in Python. With over 50+ integrations like GitHub, Docker, Nagios, NewRelic, AWS, Ansible it allows you to wire together your existing infrastructure into complex Workflows with auto-remediation and many more. Aka IFTTT orchestration for Ops.
Tail end of the image build:
==> Builds finished. The artifacts of successful builds are:
--> digitalocean: A snapshot was created: 'stackstorm-20-04-snapshot-1670503836' (ID: 122476645) in regions 'nyc3'
Provision a Droplet from this image:
❯ doctl compute droplet create --image 122476645 --size g-2vcpu-8gb --region nyc3 --ssh-keys 33162582 stackstorm-demo
ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image VPC UUID Status Tags Features Volumes
330228897 stackstorm-demo 8192 2 25 nyc3 Ubuntu stackstorm-20-04-snapshot-1670503836 new droplet_agent
Show the Droplet:
❯ doctl compute droplet list stackstorm-demo
ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image VPC UUID Status Tags Features Volumes
330228897 stackstorm-demo 157.245.13.56 10.108.0.3 8192 2 25 nyc3 Ubuntu stackstorm-20-04-snapshot-1670503836 30f86d25-414e-434f-852d-993ed8d6815e active droplet_agent,private_networking
Log in to the Droplet:
❯ ssh -o StrictHostKeyChecking=no [email protected]
Warning: Permanently added '157.245.13.56' (ED25519) to the list of known hosts.
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-122-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information disabled due to load higher than 2.0
12 updates can be applied immediately.
8 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
********************************************************************************
Welcome to DigitalOcean's 1-Click StackStorm Droplet.
StackStorm is composed of, and running as mulitple systemd services.
To keep this Droplet secure, the UFW firewall is enabled.
All ports are BLOCKED except 22 (ssh), 80 (http), and 443 (https).
To get started on this server:
1. Log in to the web UI: https://157.245.13.56
You will likely have to accept the certificate error
Credentials are located at /root/.digitalocean_passwords
2. Log in using the CLI
source /root/.digitalocean_passwords
st2 login "$ST2_AUTH_USERNAME" -p "$ST2_AUTH_PASSWORD"
st2 whoami
st2 action list
st2 run core.echo message="Hello, StackStorm"
3. Read about, and enable, RBAC: https://docs.stackstorm.com/rbac.html
4. Explore and install more packs: https://exchange.stackstorm.org/
5. Learn more about StackStorm by reading the rest of official documentation:
https://docs.stackstorm.com/
********************************************************************************
To delete this message of the day: rm -rf /etc/update-motd.d/99-one-click
Follow the CLI instructions of the motd:
root@stackstorm-demo:~# source /root/.digitalocean_passwords
root@stackstorm-demo:~# st2 login "$ST2_AUTH_USERNAME" -p "$ST2_AUTH_PASSWORD"
Logged in as st2admin
root@stackstorm-demo:~# st2 whoami
Currently logged in as "st2admin".
Authentication method: authentication token
Authentication token expire time: 2022-12-09T13:06:47Z
RBAC:
- Enabled: False
- Roles:
root@stackstorm-demo:~# st2 run core.echo message="Hello, StackStorm"
id: 6391e1729edcaf8fbe43973a
action.ref: core.echo
context.user: st2admin
parameters:
message: Hello, StackStorm
status: succeeded
start_timestamp: Thu, 08 Dec 2022 13:06:58 UTC
end_timestamp: Thu, 08 Dec 2022 13:06:59 UTC
result:
failed: false
return_code: 0
stderr: ''
stdout: Hello, StackStorm
succeeded: true
Screenshot of the web UI:
