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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/falkorlib/version.rb +1 -1
- data/templates/puppet/modules/.vagrant_init.rb +26 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18249c7e732e003058d30a79275689eea32a3167
|
4
|
+
data.tar.gz: 5f4897d5efd296f97b5bb56eb201765b2784a87f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6091b09eb7645df8bbe35d43e1be1a8399fb1ad6f487cfb3f6c70fd81512df84a2d8ba1001222ab56c9cc8b2339665e01d20d8f4666f19a0e1c9a176a47644b4
|
7
|
+
data.tar.gz: dec1707b7dd64c4260dbf1b483a04f3ded41e58629975b89916b0e82a60af11fb9b6a70c21a46e7c897a0169b3446909fbf5de615c87b74ce8447ed6b48f779b
|
data/Gemfile.lock
CHANGED
data/lib/falkorlib/version.rb
CHANGED
@@ -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
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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/
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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})
|