loe-icagent 1.0.2 → 1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -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)"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{icagent}
5
- s.version = "1.0.2"
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}
@@ -3,7 +3,7 @@
3
3
  # iClassify.
4
4
  #
5
5
 
6
- ENV['FACTERLIB'] = '/var/lib/puppet/lib/facter'
6
+ ENV['FACTERLIB'] = '/var/lib/puppet/lib/facter'
7
7
  require 'rubygems'
8
8
  require 'facter'
9
9
 
@@ -2,8 +2,8 @@
2
2
  # Configure how many mongrels a server should have
3
3
  #
4
4
 
5
- mongrel_size = 60
6
- head_room = 1024
5
+ mongrel_size = 120
6
+ head_room = 512
7
7
 
8
8
  total_memory = attrib?("memorysize")
9
9
  if total_memory
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.2
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
@@ -1,6 +0,0 @@
1
- # #
2
- # # Apache should listen on 80, 443 by default.
3
- # #
4
- #
5
- # add_attrib("apache_listen_ports", [ 80, 443 ]) unless attrib?("apache_listen_ports")
6
- #
@@ -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