rs_vagrant_shim 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Ryan J. Geyer
1
+ Copyright (c) 2013 Ryan J. Geyer
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -8,7 +8,7 @@ Install it
8
8
 
9
9
  Create a new project
10
10
 
11
- rs_vagrant_shim a_new_project
11
+ rs_vagrant_shim init a_new_project
12
12
 
13
13
  Add some stuff to the default runlist found at a_new_project/runlists/default/default.json
14
14
 
@@ -27,6 +27,27 @@ Or specifying a "runlist" environment variable
27
27
 
28
28
  runlist=new_runlist bundle exec vagrant provision default
29
29
 
30
+ === Multi VMs
31
+
32
+ Create a new project with multiple VMs
33
+
34
+ rs_vagrant_shim init multi_vms --vmnames foo bar
35
+
30
36
  == Bundle Exec?
31
37
 
32
- So, you'll notice that your project directory contains a gemfile, and all the examples use bundle exec. This is because vagrant has a fairly poor plugin mechanism in version ~> 1.0, so we just skip it all by making sure all the necessary gems are loaded by bundler.
38
+ So, you'll notice that your project directory contains a gemfile, and all the examples use bundle exec. This is because vagrant has a fairly poor plugin mechanism in version ~> 1.0, so we just skip it all by making sure all the necessary gems are loaded by bundler.
39
+
40
+ == Features
41
+
42
+ Uses JSON files which are essentially Chef-Solo node.json files as "runlists". As shown above you can specify a runlist to execute, or if there is a runlist file in the "dipatch" directory of a particular VM, the next `vagrant provision` execution will run it and delete the file in the dispatch directory.
43
+
44
+ Tag data is stored in rs_vagrant_shim/#{vnname}/persist.json and used to simulate the functionality of the right_link_tag resource.
45
+
46
+ The following RightScale/RightLink specific resoures are stubbed/simulated by this gem and cookbook
47
+
48
+ * right_link_tag
49
+ * remote_recipe
50
+ * server_collection
51
+
52
+ == TODO
53
+ * Document the dispatch directories and how those goodies work
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2012 Ryan J. Geyer
1
+ # Copyright (c) 2013 Ryan J. Geyer
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -39,6 +39,7 @@ require 'berkshelf/vagrant'
39
39
  require 'rs_vagrant_shim'
40
40
 
41
41
  Vagrant::Config.run do |config|
42
+ <% idx = 0 %>
42
43
  <% boxes.each do |vmname| %>
43
44
  config.vm.define :<%= vmname %> do |<%= vmname %>_config|
44
45
  <%= vmname %>_config.berkshelf.berksfile_path = "Berksfile"
@@ -48,8 +49,7 @@ Vagrant::Config.run do |config|
48
49
  <%= vmname %>_config.vm.box = "ri_centos6.3_v5.8.8"
49
50
  <%= vmname %>_config.vm.box_url = "https://s3.amazonaws.com/rgeyer/pub/ri_centos6.3_v5.8.8_vagrant.box"
50
51
 
51
- # TODO: Increment this for each VM in a multi VM Vagrant file
52
- <%= vmname %>_config.vm.network :hostonly, "33.33.33.10"
52
+ <%= vmname %>_config.vm.network :hostonly, "33.33.33.<%= 10 + idx %>"
53
53
 
54
54
  <%= vmname %>_config.ssh.max_tries = 40
55
55
  <%= vmname %>_config.ssh.timeout = 120
@@ -58,6 +58,7 @@ Vagrant::Config.run do |config|
58
58
  chef.run_list_dir = "runlists/<%= vmname %>"
59
59
  chef.shim_dir = "rs_vagrant_shim/<%= vmname %>"
60
60
  end
61
+ <% idx += 1 %>
61
62
  end
62
63
  <% end %>
63
64
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2012 Ryan J. Geyer
1
+ # Copyright (c) 2013 Ryan J. Geyer
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2012 Ryan J. Geyer
1
+ # Copyright (c) 2013 Ryan J. Geyer
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining
4
4
  # a copy of this software and associated documentation files (the
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rs_vagrant_shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-12 00:00:00.000000000 Z
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: berkshelf
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 2104702453997691042
93
+ hash: -4153397398819252318
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 2104702453997691042
102
+ hash: -4153397398819252318
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.24