vagrant-orchestrate 0.1.0 → 0.1.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/README.md +17 -2
- data/lib/vagrant-orchestrate/command/push.rb +2 -2
- data/lib/vagrant-orchestrate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4f003fe2e9ff1f79c05fdb94187ca3f9957950a
|
4
|
+
data.tar.gz: dd89457152b3cb5240932e40f5163fc182e22887
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee9ce03f28e452395afbe716422ccfb87994655a38c333f62ae277a5edf08f6a1b54466c6daac37a0ebc00d2194cc29b04fe68d723d0927796b01c1617ff7d0
|
7
|
+
data.tar.gz: 4f669963f2a2b23a58fd4a2cc9bdd3df5094c0ba3d843d20fbb387ab82609316e0b525c110cc652e5324c9613b80959f1d6b47791c22744940050b24022f962f
|
data/README.md
CHANGED
@@ -53,13 +53,21 @@ required_plugins.each do |plugin|
|
|
53
53
|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
|
54
54
|
end
|
55
55
|
Vagrant.configure("2") do |config|
|
56
|
+
# This disables up, provision, reload, and destroy for managed servers. Use
|
57
|
+
# `vagrant orchestrate push` to communicate with managed servers.
|
58
|
+
config.orchestrate.filter_managed_commands = true
|
59
|
+
|
56
60
|
config.vm.provision "shell", path: "{{YOUR_SCRIPT_PATH}}"
|
57
61
|
config.ssh.username = "{{YOUR_SSH_USERNAME}}"
|
58
62
|
config.ssh.private_key_path = "{{YOUR_SSH_PRIVATE_KEY_PATH}}"
|
59
63
|
|
64
|
+
config.vm.define "local", primary: true do |local|
|
65
|
+
local.vm.box = "ubuntu/trusty64"
|
66
|
+
end
|
67
|
+
|
60
68
|
managed_servers.each do |instance|
|
61
|
-
config.vm.define
|
62
|
-
box.vm.box = "
|
69
|
+
config.vm.define instance, autostart: false do |box|
|
70
|
+
box.vm.box = "managed-server-dummy"
|
63
71
|
box.vm.box_url = "./dummy.box"
|
64
72
|
box.vm.provider :managed do |provider|
|
65
73
|
provider.server = instance
|
@@ -141,6 +149,13 @@ You can run vagrant with increased verbosity if you run into problems
|
|
141
149
|
|
142
150
|
$ vagrant orchestrate push --debug
|
143
151
|
|
152
|
+
## Filtering managed commands
|
153
|
+
It can be easy to make mistakes such as rebooting production if you have managed long-lived servers as well as local VMs defined in your Vagrantfile. We add some protection with the `orchestrate.filter_managed_commands` configuration setting, which will cause up, provision, reload, and destroy commands to be ignored for servers with the managed provider.
|
154
|
+
|
155
|
+
```ruby
|
156
|
+
config.orchestrate.filter_managed_commands = true
|
157
|
+
```
|
158
|
+
|
144
159
|
## Branching strategy
|
145
160
|
|
146
161
|
If you have several environments (e.g. dev, test, prod), it is recommended to create
|
@@ -27,11 +27,11 @@ module VagrantPlugins
|
|
27
27
|
@env.ui.info("Skipping machine #{machine.name}")
|
28
28
|
next
|
29
29
|
end
|
30
|
-
push(options)
|
30
|
+
push(machine, options)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
def push(options)
|
34
|
+
def push(machine, options)
|
35
35
|
ENV["VAGRANT_ORCHESTRATE_COMMAND"] = "PUSH"
|
36
36
|
begin
|
37
37
|
machine.action(:up, options)
|