https://github.com/hardeep/ops
Ops tool for remote servers
https://github.com/hardeep/ops
Last synced: 7 months ago
JSON representation
Ops tool for remote servers
- Host: GitHub
- URL: https://github.com/hardeep/ops
- Owner: hardeep
- Created: 2013-02-27T22:09:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-20T22:29:15.000Z (over 11 years ago)
- Last Synced: 2025-04-12T03:59:44.303Z (7 months ago)
- Language: Ruby
- Size: 273 KB
- Stars: 0
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ops
This repo serves as a container for utilitys and apps related
to Operations tasks.
## Using Ops tools:
### Requirements
ruby 1.8.7
openssh
### Getting Started
Add the following to your .bashrc or .bash_profile_
export $OPS_HOME="/path to your ops repo"
source $OPS_HOME/autocomplete
Add the following symbolic link so you can use this from any directory
# ln -s this somewhere else if you're using a shared computer
# maybe create a local bin folder in ~/ and add it to your path
ln -s $OPS_HOME /usr/local/bin/ops
run the following command
bundle install
create a config.json file with the following contents:
{
"IdentityLocations" : [ "~/.ssh", ... ],
"AWS" : {
"AccessKeyId" : "Your Access Key",
"SecretAccessKey" : "Your Secret Access Key"
}
}
### Connecting to a host:
usage: ops [ host ]:ssh
### Other commands:
ops -T - List all tasks available
ops hosts:list - List all the hosts
ops hosts:sync - Sync hosts.json with EC2 instance list
ops hosts:add host=[ alias name ] hostname=[ ip address or hostname ] \
identity=[ private key name ] user=[ user ]