opskeleton 0.8.0 → 0.8.2

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: ab1eee67ae87cd2cb4c1c0f7cee0c78fb62a89de
4
- data.tar.gz: 5a01ca76ebd36a04f962ab72f07cd281a1a62240
3
+ metadata.gz: 67a2e7fa7fe5d23f114954650a13424ee72c6b21
4
+ data.tar.gz: f7ab522ae8a128a50ab48a422c370b8aa7192cba
5
5
  SHA512:
6
- metadata.gz: bff1fb18e8e28eb8e47fb117de5226a665d8de7a298e5a685e1901db7fdfffd22328c3249f29fdd4c93c9ed32483a30b5c135b9294eaa6d7522d94fa1dfc0c0e
7
- data.tar.gz: ddd589e8df1c1dccbf233eb3edbf2029c18e3fbcc4ddfa4ecc9f055d37d228441a952fa01f5d64def5a5eb06a45b66bb7734841acfa222a3a1a427a01f0e0508
6
+ metadata.gz: ea6eb2d818fdc6f5a7b11ade5a4c128ebe3866cfda8374fa1e09da3766fd41f1b67bb250a82fe9f0ef11059656ee1b62a3006fbc41f040563aa526c7fd99f374
7
+ data.tar.gz: d36231bf00e280cca10312f8ce4d6b865d28fd88868cae6d161f4915ec3127e70f7253b5cd4371bc87b317e226e3c519a69f7f81f1bbcf3afbaa17d3b11d55e7
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # Changes to opskeleton in version 0.8.1
2
+
3
+ * supporting rbenv conventions
4
+ * using bundle exec in boot
5
+
1
6
  # Changes to opskeleton in version 0.8.0
2
7
 
3
8
  * Adding plot/benchmark support.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opskeleton (0.8.0)
4
+ opskeleton (0.8.2)
5
5
  bintray_deploy
6
6
  thor
7
7
 
@@ -6,6 +6,7 @@ module Opsk
6
6
  argument :box, :type => :string, :desc => 'Vagrant box type'
7
7
  class_option :box_url, :type=> :string, :desc => 'vagrant box url'
8
8
  class_option :os_type, :type=> :string, :desc => 'Operating system type (bsd/linux)'
9
+ class_option :provider, :type=> :string, :desc => 'Vagrant provider be it virtualbox, openstack etc..', :default => 'virtualbox'
9
10
  class_option :bench_enable, :type=> :boolean, :desc => 'Control if to enable benchmarking support'
10
11
 
11
12
  desc 'Generate a Vagrant, Puppet librarian and fpm project'
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.2'
3
3
  end
data/puppet.md CHANGED
@@ -38,7 +38,7 @@ Creating new (static) modules is easy as:
38
38
  $ opsk module foo
39
39
  ```
40
40
 
41
- Each generated module will contain puppet-rspec with matching Rakefile (see [testing](https://github.com/opskeleton/opskeleton#testing)).
41
+ Each generated module will contain puppet-rspec with matching Rakefile.
42
42
 
43
43
  ## Testing
44
44
 
@@ -70,6 +70,6 @@ RSpec.configure do |c|
70
70
  f.write("#{json}\n")
71
71
  }
72
72
  <% end %>
73
- run("vagrant destroy #{c.host} -f")
73
+ run("vagrant destroy #{c.host} -f") unless ENV['SKIP_DESTROY']
74
74
  end
75
75
  end
@@ -1,4 +1,4 @@
1
1
  gem install bundle
2
2
  bundle install
3
- librarian-puppet install
3
+ bundle exec librarian-puppet install
4
4
  vagrant up
@@ -1,5 +1,11 @@
1
1
  # -*- mode: ruby -*-
2
2
  # vi: set ft=ruby :
3
+ <%if(options['provider'].eql?('openstack')) -%>
4
+ require 'vagrant-openstack-provider'
5
+ require 'yaml'
6
+ AUTH = YAML.load_file("#{ENV['HOME']}/.opsk.yaml")
7
+ <%end -%>
8
+
3
9
  Vagrant.configure("2") do |config|
4
10
 
5
11
  config.vm.define :<%=name%> do |node|
@@ -8,15 +14,32 @@ Vagrant.configure("2") do |config|
8
14
  env = ENV['PUPPET_ENV']
9
15
  env ||= 'dev'
10
16
 
11
- node.vm.box = '<%=box%>' <%if(options['box_url']) %>
12
- <%="node.vm.box_url = '#{options['box_url']}'"%> <%end%>
17
+ node.vm.box = '<%=box%>'
18
+ <%if(options['box_url']) -%>
19
+ <%="node.vm.box_url = '#{options['box_url']}'" -%>
20
+ <%end -%>
21
+ <%if(options['provider'].eql?('virtualbox')) -%>
13
22
  node.vm.network :public_network, :bridge => bridge
14
23
  node.vm.hostname = '<%=name%>.local'
15
24
 
16
25
  node.vm.provider :virtualbox do |vb|
17
26
  vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2]
18
27
  end
19
-
28
+ <%elsif(options['provider'].eql?('openstack')) -%>
29
+ node.vm.box = 'openstack'
30
+ node.ssh.username = 'ubuntu'
31
+
32
+ node.vm.provider :openstack do |os|
33
+ os.openstack_auth_url = 'http://hostname/tokens'
34
+ os.username = AUTH['user']
35
+ os.password = AUTH['pass']
36
+ os.tenant_name = ''
37
+ os.flavor = 'm1.small'
38
+ os.image = ''
39
+ os.floating_ip_pool = ''
40
+ end
41
+ <%end -%>
42
+
20
43
  node.vm.provision :puppet do |puppet|
21
44
  puppet.manifests_path = 'manifests'
22
45
  puppet.manifest_file = 'default.pp'
@@ -1 +1 @@
1
- ruby-1.9.3
1
+ 1.9.3-p551
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - narkisr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2015-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor