Deploying Servers
The fastest way to deploy Userify is to choose "Instant Deployment", which
provides a simple bash
one-line script to paste into your console -- and it
really is instant, too.
If you want to automate installation, just choose from one of the following deployment methods:
- Ansible
- Chef
- Puppet
- Cloudformation
- UserData (use bash recipe)
- Salt (use bash recipe with
-b
added to the sudo command) - Terraform (use bash recipe with
-b
added to the sudo command) - Shell Scripting (bash)
- Bake directly into your "golden" image (Launch Configuration)
All servers in the same server group will share API ID's and API Keys, so you can re-use the same installation across all instance in an Auto-Scaling Group.
We recommend that you modify these scripts, especially the Ansible, Chef, and Puppet recipes, to fit your requirements.
The fastest way to get it installed in an existing server is just to paste it.
To install the shim to a particular set of servers, try a simple script like this. (This will not work on RHEL 8 or earlier due to a bug in the RHEL sudo
configuration.)
First create a file called servers.txt with a separate IP address on each line, and then execute this:
for server in $(cat servers.txt)
do
cat << EOF | ssh $server
#! /bin/bash
curl -1 -sS "https://static.userify.com/installer.sh" | \
api_key="TGVu2ifbGeedeg2Z" \
api_id="xyz_user" \
static_host="static.userify.com" \
shim_host="configure.userify.com" \
self_signed=0 \
sudo -s -E
EOF
done
This will log into each server using your existing access and install the Userify shim automatically.
UserData in Seconds
UserData input screen at EC2
Any platform that supports UserData can accept the bash
command,
including AWS EC2, Digital Ocean, etc.
Congratulations!
So, that's it -- you've mastered Userify. If you haven't already, go sign up and give it a try!
Contact support@userify.com with any questions.