makewhatis / gitorious-centos-6 Goto Github PK
View Code? Open in Web Editor NEWGitorious Chef recipe for use on Centos6 x86_64
Gitorious Chef recipe for use on Centos6 x86_64
Hi,
In the file gitorious-centos-6/node.json, you could change the field gitorious.git.url to http://git.gitorious.org/gitorious/mainline.git to enable hosts behind http proxy to download gitorious.
Hi there! It seems that I have problem installing the Gitorious with chef-solo when it comes to ultrasphinx section.
Here's the report: http://pastebin.com/bsjD3sJ9
Hello
I have the folowing error when i run chef-solo, do you know what's going on ?
Can you help me out ?
Thanks
[2012-08-14T09:19:35+02:00] ERROR: package[mysql-client](mysql::client line 22) has had an error
[2012-08-14T09:19:35+02:00] ERROR: package[mysql-client](/root/chef-solo/cookbooks/mysql/recipes/client.rb:22:in from_file') had an error: package[mysql-client](mysql::client line 22) had an error: Chef::Exceptions::Exec: returned 1, expected 0 /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/mixin/command.rb:128:in
handle_command_failures'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package/yum.rb:986:inyum_command' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package/yum.rb:1086:in
install_package'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package.rb:59:inaction_install' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource.rb:454:in
send'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource.rb:454:inrun_action' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:49:in
run_action'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:in
each'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection.rb:94:in
execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in
iterate'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection.rb:92:in
execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:80:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/client.rb:330:in
converge'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/client.rb:163:inrun' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:207:in
run_application'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:195:inloop' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:195:in
run_application'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:70:inrun' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/chef-solo:25 /usr/bin/chef-solo:19:in
load'
/usr/bin/chef-solo:19
[2012-08-14T09:19:35+02:00] ERROR: Running exception handlers
[2012-08-14T09:19:35+02:00] ERROR: Exception handlers complete
[2012-08-14T09:19:35+02:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2012-08-14T09:19:35+02:00] FATAL: Chef::Exceptions::Exec: package[mysql-client](mysql::client line 22) had an error: Chef::Exceptions::Exec: returned 1, expected 0
create
on resource 'template[/etc/httpd/sites-available/gitorious.conf]'undefined method `each' for "host31":String
14: template "#{node[:apache][:dir]}/sites-available/#{application_name}.conf" do
15: source params[:template]
16: owner "root"
17: group "root"
18: mode 0644
19: if params[:cookbook]
20: cookbook params[:cookbook]
21: end
22: variables(
Not possible to automatically mysq-client and mysql-devel install on amazon nodes.
Need to define amazon
package "mysql-client" do
package_name value_for_platform(
[ "centos", "redhat", "suse", "fedora", "amazon"] => { "default" => "mysql" },
"default" => "mysql-client"
)
action :install
end
Is support_email's value missing a close " in line 18 of node.json?
I'm getting the following error after running chef-solo:
[Tue, 13 Dec 2011 00:35:17 +0300] FATAL: Chef::Exceptions::Package: package[mysql-ruby](mysql::client line 45) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for ruby-mysql
i did a fresh install on cento6, installation works great but i am not able to login using the default username and passsword. i think the default is "admin@localhost" and "password123" without the quotes. if there any place i can see some logs and check what the issue is.
Trying the following:
wget -O /etc/chef/solo.rb https://gist.github.com/raw/847256/chef-gitorious-etc-solo.rb
Result 404 not found error:
Resolving gist.github.com... 204.232.175.94 Connecting to gist.github.com|204.232.175.94|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2012-12-13 09:56:15 ERROR 404: Not Found.
Downloaded a test VM to try on before attempting it on a live server
Note that there is no httpd or mysql packages installed by default
Removed iptables and disabled selinux
rebooted
Installed the latest epel repo
http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Ran the chef-solo-prep.sh which installed a bunch of stuff AOK
Then ran the next section using the node.json defaults (don't care at this point) which fails
[root@localhost ~]# cd chef-solo
[root@localhost chef-solo]# chef-solo
Starting Chef Client, version 11.2.0
Compiling Cookbooks...
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[libyaml-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[libyaml-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[libyaml-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in
from_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[gcc-c++] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[gcc-c++]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[gcc-c++]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in
from_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[openssl-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[openssl-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[openssl-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in
from_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[readline-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[readline-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[readline-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in
from_file'
undefined method `[]' for nil:NilClass
/root/chef-solo/cookbooks/apache2/recipes/default.rb:61:in from_file' /root/chef-solo/cookbooks/passenger_apache2/recipes/default.rb:25:in
from_file'
/root/chef-solo/cookbooks/passenger_apache2/recipes/mod_rails.rb:25:in from_file' /root/chef-solo/cookbooks/gitorious/recipes/default.rb:3:in
from_file'
/root/chef-solo/cookbooks/apache2/recipes/default.rb:
54: "arch" => { "default" => [ :restart, :reload, :status ] },
55: "default" => { "default" => [:restart, :reload ] }
56: )
57: action :enable
58: end
59:
60: if platform?("centos", "redhat", "fedora", "suse", "arch")
61>> directory node[:apache][:log_dir] do
62: mode 0755
63: action :create
64: end
65:
66: cookbook_file "/usr/local/bin/apache2_module_conf_generate.pl" do
67: source "apache2_module_conf_generate.pl"
68: mode 0755
69: owner "root"
70: group "root"
[2013-02-07T11:36:35-05:00] ERROR: Running exception handlers
[2013-02-07T11:36:35-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-02-07T11:36:35-05:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2013-02-07T11:36:35-05:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
[root@localhost chef-solo]# cat /etc/redhat-release
CentOS release 6.3 (Final)
Can you spot what I've done wrong here?
[2012-09-26T05:37:10-07:00] INFO: Processing package[curl-devel] action install (passenger_apache2::default line 30)
install
on resource 'package[curl-devel]'Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
29: package "httpd-devel"
30: package "curl-devel"
31: else
package("curl-devel") do
retry_delay 2
package_name "curl-devel"
recipe_name "default"
retries 0
action :install
cookbook_name :passenger_apache2
end
[2012-09-26T05:37:23-07:00] ERROR: Running exception handlers
[2012-09-26T05:37:23-07:00] ERROR: Exception handlers complete
[2012-09-26T05:37:23-07:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2012-09-26T05:37:23-07:00] FATAL: RegexpError: package[curl-devel](passenger_apache2::default line 30) had an error: RegexpError: Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.