vagrant-puppet-fact-generator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45b13dd43fe7fda2c3a5b765b5e99df53dac4d69
4
- data.tar.gz: 17f2f002ab517f5cd20c8c3799a1000889a81f01
3
+ metadata.gz: cd8f5eec6137ab3301556a3e05f76341156af686
4
+ data.tar.gz: ce00ebf94bb385f025ce8f573f10e5f07be470cb
5
5
  SHA512:
6
- metadata.gz: 26aab65da97055c0720d08ff5b7366a134b64b7a4533659ea0e3f59bde4a717f2c051c41e770eb9864b3d9f709aa0f705140fbc6ee0f56b446a02244694f343f
7
- data.tar.gz: 2d7d38ecc43a03f9b6018670a53e7958ee7a9cd864070bf18c43ab7b3dcbe288fb05f06ebdea18f0654e70e6a5f39058778002c9e4174c278104af0ab416fd3d
6
+ metadata.gz: 28c87505c05d968f7fb3bb19cf1f3fc6a970c043b7465715292b891fa0e35b2fb81ab175ff4a5827c8d8ed57c2d0efbeb38dc9bcf4d6d2f1f1ffefaf0280d9b6
7
+ data.tar.gz: 98b0b0bd0181c997273b62b7ab52e14083f27b127361d30af4a349cffeb4f21a80000be97ce4b51074a51b1dc603bbfd28b299a61817717473172c8863b68945
@@ -8,6 +8,10 @@ Vagrant.configure('2') do |config|
8
8
 
9
9
  config.puppet_fact_generator.add_fact('some_fact', 'some_value')
10
10
 
11
+ config.vm.provision 'shell' do |s|
12
+ s.inline = 'sudo /opt/vagrant_ruby/bin/gem install puppet --no-ri --no-rdoc --version=3.5.1'
13
+ end
14
+
11
15
  config.vm.provision 'puppet' do |puppet|
12
16
  puppet.manifests_path = 'manifests'
13
17
  puppet.manifest_file = 'init.pp'
@@ -8,7 +8,13 @@ module VagrantPlugins
8
8
  @env = env
9
9
  @puppet_fact_generator = @env[:machine].config.puppet_fact_generator
10
10
 
11
- provisioner = @env[:machine].config.vm.provisioners[0]
11
+ provisioner = nil
12
+ @env[:machine].config.vm.provisioners.each do |p|
13
+ if p.name == :puppet
14
+ provisioner = p
15
+ break
16
+ end
17
+ end
12
18
  @puppet_config = provisioner ? provisioner.config: nil
13
19
  end
14
20
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PuppetFactGenerator
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-puppet-fact-generator
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
  - Michael Hahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler