ssp 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +55 -0
- data/lib/ssp/application/office_node.rb +1 -1
- data/lib/ssp/version.rb +1 -1
- metadata +20 -3
data/README.md
CHANGED
@@ -1 +1,56 @@
|
|
1
1
|
The SSP gem provides various command line tools that we use internally. It might be useful to others as well, but we're not trying to make them general.
|
2
|
+
|
3
|
+
## Available commands
|
4
|
+
|
5
|
+
This is an organized list of the same thing `ssp list` shows you. For more information on each command run `ssp help commandname`.
|
6
|
+
|
7
|
+
### Chef related commands
|
8
|
+
|
9
|
+
Run chef-client on a remote node or multiple nodes:
|
10
|
+
|
11
|
+
ssp chef:client [NODES...]
|
12
|
+
|
13
|
+
Download data bags from the chef server and upload local json files as data bags to the server. Looks for data bags in the `./databags` directory by default.
|
14
|
+
|
15
|
+
*Note*: It is recommended to only do the download command once and then use your repo to store data bags and upload updates from it. This should be used with care though. We should find a better sync solution for this.
|
16
|
+
|
17
|
+
ssp bags:download
|
18
|
+
ssp bags:upload [BAG [ITEM]]
|
19
|
+
|
20
|
+
### Server management commands
|
21
|
+
|
22
|
+
Create a new chef client on Rackspace. This will use your rackspace api key and username stored in your `~/.ssp` file by default. The image used for the new node is a custom image on our CloudFiles account called `chef-node`.
|
23
|
+
|
24
|
+
ssp node:create FQDN [ROLES...]
|
25
|
+
|
26
|
+
List available servers on Rackspace:
|
27
|
+
|
28
|
+
ssp node:list
|
29
|
+
|
30
|
+
Create a new chef client on Vanilla (our Xen host machine):
|
31
|
+
|
32
|
+
ssp officenode:create FQDN [ROLES...] -i, --iplastpart=N
|
33
|
+
|
34
|
+
Remove a chef client while also destroying the Xen guest on Vanilla:
|
35
|
+
|
36
|
+
ssp officenode:destroy FQDN
|
37
|
+
|
38
|
+
List available servers on Vanilla:
|
39
|
+
|
40
|
+
ssp officenode:list
|
41
|
+
|
42
|
+
### Utility commands
|
43
|
+
|
44
|
+
#### Pairing
|
45
|
+
|
46
|
+
Set the commit author for the repository to a pair or just to yourself:
|
47
|
+
|
48
|
+
ssp pair [PAIR]
|
49
|
+
|
50
|
+
Install a git pre-commit hook which checks commit author and email (only for interactive use):
|
51
|
+
|
52
|
+
ssp pair:install_hook
|
53
|
+
|
54
|
+
Displays current commit author and email and asks for confirmation (used by the installed hook):
|
55
|
+
|
56
|
+
ssp pair:status
|
@@ -120,7 +120,7 @@ EOH
|
|
120
120
|
end
|
121
121
|
|
122
122
|
|
123
|
-
desc "destroy FQDN", "Removes a chef client and also
|
123
|
+
desc "destroy FQDN", "Removes a chef client and also destroys the Xen guest on Vanilla"
|
124
124
|
def destroy(fqdn)
|
125
125
|
hostname = fqdn.split(".").first
|
126
126
|
|
data/lib/ssp/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- !binary |
|
@@ -16,7 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2010-07-
|
20
|
+
date: 2010-07-14 00:00:00 +02:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
@@ -49,6 +50,22 @@ dependencies:
|
|
49
50
|
version: "0.9"
|
50
51
|
type: :runtime
|
51
52
|
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: fog
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 11
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 2
|
65
|
+
- 14
|
66
|
+
version: 0.2.14
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
52
69
|
description: " The SSP gem provides various command line tools that\n Secret Sauce Partners, Inc. uses internally.\n"
|
53
70
|
email: dev@secretsaucepartners.com
|
54
71
|
executables:
|