vagrant-orchestrate 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -0
- data/docs/config.md +11 -0
- data/lib/vagrant-orchestrate/command/push.rb +3 -1
- data/lib/vagrant-orchestrate/config.rb +3 -0
- data/lib/vagrant-orchestrate/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e66388ead479e9494dd499cd131f4c8b751d53b3
|
|
4
|
+
data.tar.gz: 7c01bb4afcaac03bded62480d7db70af52ec2347
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80cd0c04c6a694b7eca4285a9b50f8f543bbb0a791ac62739ac2b9f5bcce06a3b2b828256eb09e0a0b8f8b0d55b69a4f82d9c0660988f80edaa9c0f2d63724b9
|
|
7
|
+
data.tar.gz: 2b34f8ff6fe6c18dbce32c92f745be583005cfebf8a0b4fd76098f8430b504a9754973167f214b9248a1692ecb11832f9b6486ec013909168a89a4cc765bb0f3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
0.7.1 (August 13th, 2015)
|
|
2
|
+
|
|
3
|
+
- Add configuration option for disable_commit_guard, which when set to true will silence
|
|
4
|
+
the message about uncommitted files. Use at your own risk.
|
|
5
|
+
|
|
1
6
|
0.7.0 (July 15th, 2015)
|
|
2
7
|
|
|
3
8
|
- Add support for tracking deployments with [deployment-tracker](https://github.com/Cimpress-MCP/deployment-tracker).
|
data/README.md
CHANGED
|
@@ -165,6 +165,10 @@ will be checked.
|
|
|
165
165
|
|
|
166
166
|
Experimental [puppet templating](docs/puppet.md) support is available as well with the `--puppet` flag and associated options
|
|
167
167
|
|
|
168
|
+
### Configuraiton
|
|
169
|
+
|
|
170
|
+
See details on the various configuration options [here](docs/config.md).
|
|
171
|
+
|
|
168
172
|
### Pushing changes
|
|
169
173
|
Go ahead and push changes to your managed servers, in serial by default.
|
|
170
174
|
|
|
@@ -223,6 +227,7 @@ See more info on [deployment tracker integration](docs/deployment_tracker.md).
|
|
|
223
227
|
* Need rsync? Install [OpenSSH](http://www.mls-software.com/opensshd.html) and then run this [script](https://github.com/joefitzgerald/packer-windows/blob/master/scripts/rsync.bat) to install rsync. Vagrant managed servers currently only works with cygwin based rsync implementations.
|
|
224
228
|
* You MUST have at least PowerShell 3 installed in order to use the SMB folder synch. If you have PowerShell
|
|
225
229
|
2 installed and try to execute a folder sync, it will hang with no good error message.
|
|
230
|
+
* Libcurl.dll must be installed and on your path. You can find it [here](https://github.com/danielcavanagh/typhoeus/blob/b8c089f1576cc5094eb84380c98a9146ab9dbba4/README.textile#windows-support)
|
|
226
231
|
|
|
227
232
|
### Managed Guest
|
|
228
233
|
You'll need to bootstrap the target machine. The following script should get you there.
|
data/docs/config.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Configuration Options
|
|
2
|
+
|
|
3
|
+
All configuration options start with `config.orchestrate`
|
|
4
|
+
|
|
5
|
+
## `disable_commit_guard`
|
|
6
|
+
|
|
7
|
+
By default, Vagrant Orchestrate has protection to disallow a push action to managed
|
|
8
|
+
servers if there are any uncommitted or untracked files in your git repository. Setting
|
|
9
|
+
the `disable_commit_guard` configuration option will disable this protection.
|
|
10
|
+
|
|
11
|
+
config.orchestrate.disable_commit_guard = true
|
|
@@ -56,7 +56,7 @@ module VagrantPlugins
|
|
|
56
56
|
argv = parse_options(opts)
|
|
57
57
|
return unless argv
|
|
58
58
|
|
|
59
|
-
guard_clean
|
|
59
|
+
guard_clean
|
|
60
60
|
|
|
61
61
|
machines = filter_unmanaged(argv)
|
|
62
62
|
return 0 if machines.empty?
|
|
@@ -195,6 +195,8 @@ module VagrantPlugins
|
|
|
195
195
|
end
|
|
196
196
|
|
|
197
197
|
def guard_clean
|
|
198
|
+
return if ENV["VAGRANT_ORCHESTRATE_NO_GUARD_CLEAN"] || \
|
|
199
|
+
@env.vagrantfile.config.orchestrate.disable_commit_guard
|
|
198
200
|
message = "ERROR!\nThere are files that need to be committed first."
|
|
199
201
|
RepoStatus.clean? && RepoStatus.committed? && !RepoStatus.untracked? || abort(message)
|
|
200
202
|
end
|
|
@@ -10,6 +10,7 @@ module VagrantPlugins
|
|
|
10
10
|
attr_accessor :tracker_host
|
|
11
11
|
attr_accessor :tracker_logging_enabled
|
|
12
12
|
attr_accessor :credentials
|
|
13
|
+
attr_accessor :disable_commit_guard
|
|
13
14
|
|
|
14
15
|
def initialize
|
|
15
16
|
@filter_managed_commands = UNSET_VALUE
|
|
@@ -17,6 +18,7 @@ module VagrantPlugins
|
|
|
17
18
|
@force_push = UNSET_VALUE
|
|
18
19
|
@tracker_host = UNSET_VALUE
|
|
19
20
|
@tracker_logging_enabled = UNSET_VALUE
|
|
21
|
+
@disable_commit_guard = UNSET_VALUE
|
|
20
22
|
@credentials = Credentials.new
|
|
21
23
|
end
|
|
22
24
|
|
|
@@ -47,6 +49,7 @@ module VagrantPlugins
|
|
|
47
49
|
@force_push = false if @force_push == UNSET_VALUE
|
|
48
50
|
@tracker_host = nil if @tracker_host == UNSET_VALUE
|
|
49
51
|
@tracker_logging_enabled = true if @tracker_logging_enabled == UNSET_VALUE
|
|
52
|
+
@disable_commit_guard = false if @disable_commit_guard == UNSET_VALUE
|
|
50
53
|
@credentials = nil if @credentials.unset?
|
|
51
54
|
@credentials.finalize! if @credentials
|
|
52
55
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-orchestrate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christopher Baldauf
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: deployment-tracker-client
|
|
@@ -108,6 +108,7 @@ files:
|
|
|
108
108
|
- acceptance/support-skeletons/prompt/dummy.box
|
|
109
109
|
- acceptance/support-skeletons/provision/Vagrantfile
|
|
110
110
|
- acceptance/support-skeletons/provision/dummy.box
|
|
111
|
+
- docs/config.md
|
|
111
112
|
- docs/deployment_tracker.md
|
|
112
113
|
- docs/environments.md
|
|
113
114
|
- docs/puppet.md
|