File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Ops
2
+
3
+ This repo serves as a container for utilitys and apps related
4
+ to Operations tasks.
5
+
6
+ ## Using Ops tools:
7
+
8
+ ### Requirements
9
+
10
+ ruby 1.8.7
11
+ openssh
12
+
13
+ ### Getting Started
14
+
15
+ Add the following to your .bashrc or .bash_profile_
16
+
17
+ export $OPS_HOME="/path to your ops repo"
18
+ source $OPS_HOME/autocomplete
19
+
20
+ Add the following symbolic link so you can use this from any directory
21
+
22
+ # ln -s this somewhere else if you're using a shared computer
23
+ # maybe create a local bin folder in ~/ and add it to your path
24
+
25
+ ln -s $OPS_HOME /usr/local/bin/ops
26
+
27
+ run the following command
28
+
29
+ bundle install
30
+
31
+ create a config.json file with the following contents:
32
+
33
+ {
34
+ "IdentityLocations" : [ "~/.ssh", ... ],
35
+ "AWS" : {
36
+ "AccessKeyId" : "Your Access Key",
37
+ "SecretAccessKey" : "Your Secret Access Key"
38
+ }
39
+ }
40
+
41
+ ### Connecting to a host:
42
+
43
+ usage: ops [ host ]:ssh
44
+
45
+ ### Other commands:
46
+
47
+ ops -T - List all tasks available
48
+
49
+ ops hosts:list - List all the hosts
50
+
51
+ ops hosts:sync - Sync hosts.json with EC2 instance list
52
+
53
+ ops hosts:add host=[ alias name ] hostname=[ ip address or hostname ] \
54
+ identity=[ private key name ] user=[ user ]
You can’t perform that action at this time.
0 commit comments