falkorlib 0.5.7 → 0.5.8

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: 594670018ab8236776433f498a44b26de9cd3ffe
4
- data.tar.gz: 3e53ef37e6dceb5f8dd2b52768476196467cbf35
3
+ metadata.gz: 18249c7e732e003058d30a79275689eea32a3167
4
+ data.tar.gz: 5f4897d5efd296f97b5bb56eb201765b2784a87f
5
5
  SHA512:
6
- metadata.gz: 4aab889e8da480ddb8f24f3a4831d7f38b3ece97f55107dc6ea09f70231d1ee92621a78693b15aa0186ca65a09d3bf033e2185a881b0ef2a4cb24cf195b90a31
7
- data.tar.gz: 2043cf466d756a1cddeffb81307fdad18f4e9b5c945326fb9f849dcc49b27b88747ec065d1e73f09269f839026c562e0d3da05b0e52f9e0b6a9120bbc3fb3eff
6
+ metadata.gz: 6091b09eb7645df8bbe35d43e1be1a8399fb1ad6f487cfb3f6c70fd81512df84a2d8ba1001222ab56c9cc8b2339665e01d20d8f4666f19a0e1c9a176a47644b4
7
+ data.tar.gz: dec1707b7dd64c4260dbf1b483a04f3ded41e58629975b89916b0e82a60af11fb9b6a70c21a46e7c897a0169b3446909fbf5de615c87b74ce8447ed6b48f779b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- falkorlib (0.5.7)
4
+ falkorlib (0.5.8)
5
5
  artii (>= 2.1)
6
6
  awesome_print (~> 1.2)
7
7
  configatron (~> 3.2)
@@ -19,7 +19,7 @@ module FalkorLib #:nodoc:
19
19
  # MAJOR: Defines the major version
20
20
  # MINOR: Defines the minor version
21
21
  # PATCH: Defines the patch version
22
- MAJOR, MINOR, PATCH = 0, 5, 7
22
+ MAJOR, MINOR, PATCH = 0, 5, 8
23
23
 
24
24
  module_function
25
25
 
@@ -2,7 +2,7 @@
2
2
  ##########################################################################
3
3
  # vagrant_init.rb
4
4
  # @author Sebastien Varrette <Sebastien.Varrette@uni.lu>
5
- # Time-stamp: <Tue 2015-06-02 10:36 svarrette>
5
+ # Time-stamp: <Tue 2015-06-02 21:37 svarrette>
6
6
  #
7
7
  # @description
8
8
  #
@@ -27,12 +27,18 @@ name = metadata["name"].gsub(/^[^\/-]+[\/-]/,'')
27
27
  modulepath=`puppet config print modulepath`.chomp
28
28
  moduledir=modulepath.split(':').first
29
29
 
30
- metadata["dependencies"].each do |dep|
31
- lib = dep["name"]
32
- shortname = lib.gsub(/^.*[\/-]/,'')
33
- action = File.directory?("#{moduledir}/#{shortname}") ? 'upgrade --force' : 'install'
34
- run %{ puppet module #{action} #{lib} }
35
- end
30
+
31
+ run %{ cd /etc/puppet && librarian-puppet clean && rm Puppetfile* }
32
+ run %{ ln -s /vagrant/metadata.json /etc/puppet/ }
33
+ run %{ cd /etc/puppet && librarian-puppet install --verbose }
34
+
35
+
36
+ # metadata["dependencies"].each do |dep|
37
+ # lib = dep["name"]
38
+ # shortname = lib.gsub(/^.*[\/-]/,'')
39
+ # action = File.directory?("#{moduledir}/#{shortname}") ? 'upgrade --force' : 'install'
40
+ # run %{ puppet module #{action} #{lib} }
41
+ # end
36
42
 
37
43
  puts "Module path: #{modulepath}"
38
44
  puts "Moduledir: #{moduledir}"
@@ -44,9 +50,16 @@ run %{ ln -s #{basedir} #{moduledir}/#{name} } unless File.exists?("#{moduledir
44
50
  unless File.exists?('/etc/puppet/hiera.yaml')
45
51
  run %{ ln -s /etc/hiera.yaml /etc/puppet/hiera.yaml } if File.exists?("/etc/hiera.yaml")
46
52
  end
47
- hieracfg = YAML::load_file('/etc/hiera.yaml')
48
- [ '/vagrant/hiera', '/vagrant/tests/hiera' ].each do |d|
49
- hieracfg[:datadir] << d if File.directory?('#{d}')
50
- end
51
- hieracfg[:hierarchy] << common unless hieracfg[:hierarchy].include?('common')
52
- FalkorLib::Common.store_config('/etc/hiera.yaml', hieracfg)
53
+ # # hieracfg = YAML::load_file('/etc/hiera.yaml')
54
+ # # [ '/vagrant/tests/hiera' ].each do |d|
55
+ # # hieracfg[:datadir] = [] if hieracfg[:datadir].nil?
56
+ # # hieracfg[:datadir] << d #if File.directory?('#{d}')
57
+ # # end
58
+ # # hieracfg[:hierarchy] = [] if hieracfg[:hierarchy].nil?
59
+ # # hieracfg[:hierarchy] << 'common' unless hieracfg[:hierarchy].include?('common')
60
+ hieracfg = {
61
+ :backend => 'yaml',
62
+ :hierarchy => [ 'defaults', 'common' ],
63
+ :datadir => '/vagrant/tests/hiera',
64
+ }
65
+ FalkorLib::Common.store_config('/etc/hiera.yaml', hieracfg, {:no_interaction => true})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falkorlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Varrette