buratino 0.0.2 → 0.0.3
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.
- data/lib/buratino/configure.rb +5 -1
- data/lib/buratino/hg.rb +1 -1
- data/lib/buratino/version.rb +1 -1
- metadata +24 -9
data/lib/buratino/configure.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require "optparse"
|
|
2
2
|
require "yaml"
|
|
3
|
+
require "facter"
|
|
3
4
|
|
|
4
5
|
module Buratino
|
|
5
6
|
|
|
@@ -14,7 +15,9 @@ module Buratino
|
|
|
14
15
|
@options['puppet'] = @config['puppet_url']
|
|
15
16
|
@options['destination'] = @config['destination']
|
|
16
17
|
@options['reports_dir'] = @config['reports_dir']
|
|
18
|
+
@options['reports'] = @config['reports_url']
|
|
17
19
|
@options['interval'] = @config['interval']
|
|
20
|
+
@options['fqdn'] = Facter.fqdn
|
|
18
21
|
@options['angel'] = false
|
|
19
22
|
|
|
20
23
|
# Different Modes: clone, update
|
|
@@ -26,10 +29,11 @@ module Buratino
|
|
|
26
29
|
puts "DEBUG BURATINO::CONFIGURE::PARSE"
|
|
27
30
|
OptionParser.new do |opt|
|
|
28
31
|
opt.separator ""
|
|
29
|
-
opt.separator "Usage: buratino [--angel] -p <puppet repostory> -r <reports repository> -m <mode> -i <interval>"
|
|
32
|
+
opt.separator "Usage: buratino [--angel] --fqdn <hostname> -p <puppet repostory> -r <reports repository> -m <mode> -i <interval>"
|
|
30
33
|
opt.separator ""
|
|
31
34
|
opt.separator "Options:"
|
|
32
35
|
opt.separator "-------------"
|
|
36
|
+
opt.on('', '--fqdn FQDN', 'FQDN hostname') { |val| @options['fqdn'] = val }
|
|
33
37
|
opt.on('-p', '--puppet PUPPET-REPOS', 'Puppet repository') { |val| @options['puppet'] = val }
|
|
34
38
|
opt.on('-a', '--angel', 'Angel mode - no-daemonize') { @options['angel'] = true }
|
|
35
39
|
opt.on('-r', '--reports REPORTS-REPOS', 'Reports repository') { |val| @options['reports'] = val }
|
data/lib/buratino/hg.rb
CHANGED
|
@@ -26,7 +26,7 @@ module Buratino
|
|
|
26
26
|
|
|
27
27
|
# Ugly(((
|
|
28
28
|
puts "DEBUG BURATINO::HG::PUPPET_APPLY"
|
|
29
|
-
puppet =
|
|
29
|
+
puppet = `FACTER_fqdn=#{config['fqdn']} #{Gem.bindir}/puppet apply --modulepath=#{config['destination']}/modules #{config['destination']}/manifests/site.pp`
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def self.reports_dir(config)
|
data/lib/buratino/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: buratino
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-04-
|
|
12
|
+
date: 2012-04-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mercurial-ruby
|
|
16
|
-
requirement:
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,10 +21,15 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
25
30
|
- !ruby/object:Gem::Dependency
|
|
26
31
|
name: puppet
|
|
27
|
-
requirement:
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
28
33
|
none: false
|
|
29
34
|
requirements:
|
|
30
35
|
- - ! '>='
|
|
@@ -32,10 +37,15 @@ dependencies:
|
|
|
32
37
|
version: '0'
|
|
33
38
|
type: :runtime
|
|
34
39
|
prerelease: false
|
|
35
|
-
version_requirements:
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
36
46
|
- !ruby/object:Gem::Dependency
|
|
37
47
|
name: facter
|
|
38
|
-
requirement:
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
39
49
|
none: false
|
|
40
50
|
requirements:
|
|
41
51
|
- - ! '>='
|
|
@@ -43,7 +53,12 @@ dependencies:
|
|
|
43
53
|
version: '0'
|
|
44
54
|
type: :runtime
|
|
45
55
|
prerelease: false
|
|
46
|
-
version_requirements:
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
47
62
|
description: Write a gem description
|
|
48
63
|
email:
|
|
49
64
|
- morion.estariol@gmail.com
|
|
@@ -82,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
97
|
version: '0'
|
|
83
98
|
requirements: []
|
|
84
99
|
rubyforge_project:
|
|
85
|
-
rubygems_version: 1.8.
|
|
100
|
+
rubygems_version: 1.8.23
|
|
86
101
|
signing_key:
|
|
87
102
|
specification_version: 3
|
|
88
103
|
summary: Write a gem summary
|