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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8f5eec6137ab3301556a3e05f76341156af686
|
4
|
+
data.tar.gz: ce00ebf94bb385f025ce8f573f10e5f07be470cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c87505c05d968f7fb3bb19cf1f3fc6a970c043b7465715292b891fa0e35b2fb81ab175ff4a5827c8d8ed57c2d0efbeb38dc9bcf4d6d2f1f1ffefaf0280d9b6
|
7
|
+
data.tar.gz: 98b0b0bd0181c997273b62b7ab52e14083f27b127361d30af4a349cffeb4f21a80000be97ce4b51074a51b1dc603bbfd28b299a61817717473172c8863b68945
|
data/Vagrantfile
CHANGED
@@ -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 =
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|