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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae428a0690c14047e05845e7f3a24da592882c9d
4
- data.tar.gz: 6f3269c537f110f8c9b66c03e3b8cd2cf689d462
3
+ metadata.gz: f4f003fe2e9ff1f79c05fdb94187ca3f9957950a
4
+ data.tar.gz: dd89457152b3cb5240932e40f5163fc182e22887
5
5
  SHA512:
6
- metadata.gz: bd77d6176cf9fc391905c6f913a84719b0a6fecc1ead0a75e25d6d8ff390b97a45422db484b8a0a831de7090b9e4cfd36d7ecb1de044c855673584de51be3fdd
7
- data.tar.gz: 5502b1cef7a68f9c8f5438d1958f9ec51ffb9ed5f50967029cc989a42b2fb75d386a89e1b05b691ac94dd35cf299af61ec9282e53818baef49d7c752192ce26e
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 "managed-#{instance}" do |box|
62
- box.vm.box = "tknerr/managed-server-dummy"
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)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Orchestrate
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-orchestrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Baldauf