vagrant-zanzibar 0.1.4 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +1 -1
- data/README.md +9 -5
- data/bin/zamioculcas +0 -0
- data/bin/zanzibar +0 -0
- data/lib/vagrant-zanzibar.rb +6 -4
- data/lib/vagrant-zanzibar/version.rb +1 -1
- data/{zanzibar.gemspec → vagrant-zanzibar.gemspec} +0 -0
- metadata +6 -24
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OGE5ZjBhZDYxOWY3YmMzNTljZWFlNTM2NTA4N2U0ZjhkNzljODY5YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWM2NDM4Zjg2YzJiMDMyNjk2NzNhMzFlMGI3ODIyMjU5M2M5OTc1Yg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjM4MDViOGMxMDM3MWM3YjE4Y2FkZGM1NzBlNmIyOGIzODA2MGZjYzNmZmFm
|
10
|
+
NjJkZWY4MTU1YzBlMDRjMzc4MDZmMTRkMGFlYWU3NzhkMjJkMGM4MzcwZWNm
|
11
|
+
M2ZjYjIxYTE4MTZlMGFhNDI4MmE0YmEzMGQxZWQ3NGUwYWE3YTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzdhOWEwMTdjMDAzMWQ1ZGU1YzUyYTdjZjMwMmI0ZjYwZGRiY2MwMzBhMDIw
|
14
|
+
ZTgzNDQ2ZDU5MDFkNTlmNGFkMDY4Y2ZkYzM5MmU2OTNlMjYxMDUxMDMzM2Q1
|
15
|
+
M2Q5M2M3NTBiMmMwOWM0Yjc2YjhiMmJkMTYyZTVlOGUwY2FmZDY=
|
data/.travis.yml
CHANGED
@@ -5,7 +5,7 @@ rvm:
|
|
5
5
|
deploy:
|
6
6
|
provider: rubygems
|
7
7
|
api_key:
|
8
|
-
secure: "
|
8
|
+
secure: "U44Q8nOOQ9Nvu2nY/gH3J/0nxSwXNITUE9TP4O1Ke2Xd6jhywHkum29l1+Ef/3qO4LxmPbw+snnqrm6RtBtin1RAzCenXsqyFYAmxs0KutKlU239EC1u/mwDWiM05GXTSFLR1Cb7NdaQcGwhUWpccVuO1NfrfoihpTW7AUAWyjA="
|
9
9
|
gem: vagrant-zanzibar
|
10
10
|
on:
|
11
11
|
tags: true
|
data/README.md
CHANGED
@@ -24,16 +24,20 @@ Or install it yourself as:
|
|
24
24
|
Here is an example Vagrantfile, using vagrant-orchestrate.
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
|
27
|
+
## Make sure that required plugins are installed.
|
28
|
+
required_plugins = %w( vagrant-managed-servers vagrant-triggers vagrant-zanzibar)
|
29
|
+
required_plugins.each do |plugin|
|
30
|
+
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
|
31
|
+
end
|
32
|
+
|
33
|
+
require 'vagrant-zanzibar'
|
28
34
|
|
29
35
|
zanzibar = Zanzibar::Zanzibar.new(:wsdl => "https://mysecretserver.com/webservices/sswebservice.asmx?wsdl", :domain => 'mydomain.net')
|
30
36
|
|
31
37
|
managed_servers = %w( myserver1.net )
|
32
38
|
|
33
|
-
|
34
|
-
|
35
|
-
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
|
36
|
-
end
|
39
|
+
|
40
|
+
|
37
41
|
Vagrant.configure("2") do |config|
|
38
42
|
config.ssh.username = "user"
|
39
43
|
config.ssh.private_key_path = zanzibar.download_secret_file(:scrt_id => 1234, :type => "Private Key")
|
data/bin/zamioculcas
CHANGED
File without changes
|
data/bin/zanzibar
CHANGED
File without changes
|
data/lib/vagrant-zanzibar.rb
CHANGED
@@ -17,6 +17,8 @@ module Zanzibar
|
|
17
17
|
|
18
18
|
if args[:username]
|
19
19
|
@@username = args[:username]
|
20
|
+
elsif ENV['ZANZIBAR_USER']
|
21
|
+
@@username = ENV['ZANZIBAR_USER']
|
20
22
|
else
|
21
23
|
@@username = ENV['USER']
|
22
24
|
end
|
@@ -26,11 +28,15 @@ module Zanzibar
|
|
26
28
|
else
|
27
29
|
@@wsdl = get_wsdl_location
|
28
30
|
end
|
31
|
+
|
29
32
|
if args[:pwd]
|
30
33
|
@@password = args[:pwd]
|
34
|
+
elsif ENV['ZANZIBAR_PASSWORD']
|
35
|
+
@@password = ENV['ZANZIBAR_PASSWORD']
|
31
36
|
else
|
32
37
|
@@password = prompt_for_password
|
33
38
|
end
|
39
|
+
|
34
40
|
if args[:domain]
|
35
41
|
@@domain = args[:domain]
|
36
42
|
else
|
@@ -49,13 +55,9 @@ module Zanzibar
|
|
49
55
|
config.log = false
|
50
56
|
end
|
51
57
|
@@client = Savon::Client.new(@@wsdl) do
|
52
|
-
#wsdl.endpoint = "https://scrt.vistaprint.net/webservices/sswebservice.asmx"
|
53
|
-
#wsdl.namespace = "thesecretserver.com"
|
54
58
|
http.auth.ssl.verify_mode = :none
|
55
59
|
HTTPI.log = false
|
56
60
|
end
|
57
|
-
#@@client.log = false
|
58
|
-
#@@client.http.auth.ssl.verify_mode = :none
|
59
61
|
end
|
60
62
|
|
61
63
|
## Gets the user's password if none is provided in the constructor.
|
File without changes
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-zanzibar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jason Davis-Cooke
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rubyntlm
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rubocop
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: savon
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - '='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - '='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -122,37 +111,30 @@ files:
|
|
122
111
|
- spec/scrt.wsdl
|
123
112
|
- spec/spec/spec_helper.rb
|
124
113
|
- spec/zanzibar_spec.rb
|
125
|
-
- zanzibar.gemspec
|
114
|
+
- vagrant-zanzibar.gemspec
|
126
115
|
homepage: https://github.com/Cimpress-MCP/vagrant-zanzibar
|
127
116
|
licenses:
|
128
117
|
- Apache 2.0
|
118
|
+
metadata: {}
|
129
119
|
post_install_message:
|
130
120
|
rdoc_options: []
|
131
121
|
require_paths:
|
132
122
|
- lib
|
133
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
124
|
requirements:
|
136
125
|
- - ! '>='
|
137
126
|
- !ruby/object:Gem::Version
|
138
127
|
version: '0'
|
139
|
-
segments:
|
140
|
-
- 0
|
141
|
-
hash: -429271053
|
142
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
-
none: false
|
144
129
|
requirements:
|
145
130
|
- - ! '>='
|
146
131
|
- !ruby/object:Gem::Version
|
147
132
|
version: '0'
|
148
|
-
segments:
|
149
|
-
- 0
|
150
|
-
hash: -429271053
|
151
133
|
requirements: []
|
152
134
|
rubyforge_project:
|
153
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.4.5
|
154
136
|
signing_key:
|
155
|
-
specification_version:
|
137
|
+
specification_version: 4
|
156
138
|
summary: Retrieve secrets from Secret Server
|
157
139
|
test_files:
|
158
140
|
- spec/responses/attachment_response.xml
|