Created
December 2, 2012 00:16
-
-
Save denisbr/4186059 to your computer and use it in GitHub Desktop.
Foreman installer patches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CentOS6.3 | |
Installed epel-release-6-7 | |
Installed puppetlabs-release-6-6 | |
Puppet 3.0.1 | |
To get the installer to apply I patched as such : | |
$ git submodule foreach --recursive git diff | |
Entering 'apache' | |
Entering 'concat' | |
Entering 'dhcp' | |
Entering 'dns' | |
Entering 'foreman' | |
diff --git a/manifests/install.pp b/manifests/install.pp | |
index 4c5577c..7fdfdba 100644 | |
--- a/manifests/install.pp | |
+++ b/manifests/install.pp | |
@@ -10,6 +10,16 @@ class foreman::install { | |
default => Foreman::Install::Repos['foreman'], | |
} | |
+ $cron = $osfamily ? { | |
+ RedHat => 'cronie', | |
+ Debian => 'cron' | |
+ } | |
+ | |
+ package {'cron': | |
+ name => $cron, | |
+ ensure => present | |
+ } | |
+ | |
package {'foreman': | |
ensure => present, | |
require => $repo, | |
Entering 'foreman_proxy' | |
diff --git a/manifests/params.pp b/manifests/params.pp | |
index 531f55b..2b2003a 100644 | |
--- a/manifests/params.pp | |
+++ b/manifests/params.pp | |
@@ -13,7 +13,7 @@ class foreman_proxy::params { | |
# puppetca settings | |
$puppetca = true | |
$autosign_location = '/etc/puppet/autosign.conf' | |
- $puppetca_cmd = '/usr/sbin/puppetca' | |
+ $puppetca_cmd = '/usr/sbin/puppet ca' | |
$puppet_group = 'puppet' | |
# puppetrun settings | |
Entering 'git' | |
Entering 'passenger' | |
Entering 'puppet' | |
diff --git a/manifests/server/config.pp b/manifests/server/config.pp | |
index 7cef045..a798b65 100644 | |
--- a/manifests/server/config.pp | |
+++ b/manifests/server/config.pp | |
@@ -18,7 +18,7 @@ class puppet::server::config inherits puppet::config { | |
exec {'generate_ca_cert': | |
creates => "${puppet::server::ssl_dir}/certs/${::fqdn}.pem", | |
- command => "puppetca --generate ${::fqdn}", | |
+ command => "puppet ca generate ${::fqdn}", | |
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | |
} | |
Entering 'tftp' | |
Entering 'xinetd' | |
Running the installer manifests now gives : | |
Error: Could not stop Service[foreman]: Execution of '/sbin/service foreman stop' returned 1: | |
Error: /Stage[main]/Foreman::Service/Service[foreman]/ensure: change from running to stopped failed: Could not stop Service[foreman]: Execution of '/sbin/service foreman stop' returned 1: | |
Manual start gives : | |
[root@localhost common]# service foreman start | |
Starting foreman: Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/mixlib-shellout-1.1.0.gemspec]: invalid date format in specification: "2012-08-06 00:00:00.000000000Z" | |
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18 00:00:00.000000000Z" | |
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/mixlib-shellout-1.1.0.gemspec]: invalid date format in specification: "2012-08-06 00:00:00.000000000Z" | |
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18 00:00:00.000000000Z" | |
Libvirt binding are missing - hypervisor management is disabled | |
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE | |
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC | |
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS | |
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8 | |
/usr/share/foreman/app/helpers/application_helper.rb:3:in `const_missing': uninitialized constant ApplicationHelper::HomeHelper (NameError) | |
from /usr/share/foreman/app/helpers/application_helper.rb:3 | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:227:in `load_dependency' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:350:in `require_or_load' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:304:in `depend_on' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:216:in `require_dependency' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:138:in `eager_load!' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:137:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:137:in `eager_load!' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:135:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:135:in `eager_load!' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:108:in `eager_load!' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application/finisher.rb:41 | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in `instance_exec' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:50:in `run_initializers' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in `run_initializers' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:134:in `initialize!' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in `send' | |
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in `method_missing' | |
from /usr/share/foreman/config/environment.rb:5 | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in `load_dependency' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:597:in `new_constants_in' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in `load_dependency' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in `require' | |
from /usr/share/foreman/config.ru:3 | |
from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `instance_eval' | |
from /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in `initialize' | |
from /usr/share/foreman/config.ru:1:in `new' | |
from /usr/share/foreman/config.ru:1 | |
[FAILED] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment