loe-icagent 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/icagent +4 -1
- data/icagent.gemspec +1 -3
- data/recipes/00_facter.rb +1 -1
- data/recipes/02_mongrel_server.rb +2 -2
- metadata +1 -3
- data/recipes/02_apache_server.rb +0 -6
- data/recipes/02_puppet_env.rb +0 -17
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/bin/icagent
CHANGED
@@ -24,7 +24,10 @@ require 'rubygems'
|
|
24
24
|
require File.dirname(__FILE__) + '/../lib/iclassify'
|
25
25
|
require 'optparse'
|
26
26
|
|
27
|
-
config = {
|
27
|
+
config = {
|
28
|
+
:uuidfile => '/etc/icagent/icagent.uuid',
|
29
|
+
:directory => File.dirname(__FILE__) + '/../recipes'
|
30
|
+
}
|
28
31
|
|
29
32
|
opts = OptionParser.new do |opts|
|
30
33
|
opts.banner = "Usage: #{$0} [-d DIR|-r FILE] (options)"
|
data/icagent.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{icagent}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["W. Andrew Loe III"]
|
@@ -26,10 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
"lib/iclassify/node.rb",
|
27
27
|
"recipes/00_facter.rb",
|
28
28
|
"recipes/01_default_class.rb",
|
29
|
-
"recipes/02_apache_server.rb",
|
30
29
|
"recipes/02_ec2.rb",
|
31
30
|
"recipes/02_mongrel_server.rb",
|
32
|
-
"recipes/02_puppet_env.rb",
|
33
31
|
"recipes/03_mysql_server.rb"
|
34
32
|
]
|
35
33
|
s.homepage = %q{http://github.com/loe/icagent}
|
data/recipes/00_facter.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loe-icagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- W. Andrew Loe III
|
@@ -76,10 +76,8 @@ files:
|
|
76
76
|
- lib/iclassify/node.rb
|
77
77
|
- recipes/00_facter.rb
|
78
78
|
- recipes/01_default_class.rb
|
79
|
-
- recipes/02_apache_server.rb
|
80
79
|
- recipes/02_ec2.rb
|
81
80
|
- recipes/02_mongrel_server.rb
|
82
|
-
- recipes/02_puppet_env.rb
|
83
81
|
- recipes/03_mysql_server.rb
|
84
82
|
has_rdoc: false
|
85
83
|
homepage: http://github.com/loe/icagent
|
data/recipes/02_apache_server.rb
DELETED
data/recipes/02_puppet_env.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Set up our puppet environment
|
3
|
-
#
|
4
|
-
|
5
|
-
unless attrib?("puppet_env")
|
6
|
-
hostname = attrib?("hostname")
|
7
|
-
fqdn = attrib?("fqdn")
|
8
|
-
if fqdn =~ /amazonaws.com$/
|
9
|
-
replace_attrib("puppet_env", "production")
|
10
|
-
else
|
11
|
-
if hostname =~ /^.+?\d+(.+)$/
|
12
|
-
replace_attrib("puppet_env", $1)
|
13
|
-
else
|
14
|
-
replace_attrib("puppet_env", "production")
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|