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
| # | |
| # Author:: Adam Jacob (<[email protected]>) | |
| # Copyright:: Copyright (c) 2008 Opscode, Inc. | |
| # License:: Apache License, Version 2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
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
| package :memcache do | |
| description 'A High-performance, distributed memory object caching system.' | |
| arch = @options[:arch] || 'x86_64' | |
| version = @options[:versions][:memcache] || '1.2.8' | |
| libevent_version = @options[:versions][:libevent] || '1.4.9' | |
| mirror_path = @options[:mirror] || "http://www.danga.com/memcached/dist" | |
| install_path = "#{@defaults[:prefix]}/memcache/#{version}" | |
| libevent_path = "#{@defaults[:prefix]}/libevent/#{libevent_version}" | |
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
| define :source_package do | |
| source_root = "/export/source" | |
| build_root = "/export/builds" | |
| build_directory = "#{build_root}/#{$1}" if params[:filename] =~ /(.*)\.(tar\.gz|tgz|tar\.bz2|tb2)/ | |
| [source_root, build_root].each do |r| | |
| directory r do | |
| mode 0755 | |
| action :create | |
| not_if { File.directory?( r ) } |
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
| configure_options = {:with => %W(modules="mod_readme:mod_tls:mod_vroot" shared="mod_ldap"), | |
| :enable => %w(ctrls dso facl openssl), | |
| :disable => %w(ident), | |
| :other => %w(localstatedir=/var/run)} | |
| mod_vroot_tag = "#{node[:proftpd][:modules][:vroot][:name]}-#{node[:proftpd][:modules][:vroot][:version]}" | |
| source_package "proftpd" do | |
| version node[:proftpd][:version] | |
| location node[:proftpd][:mirror] |
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
| service_link 'apache' do | |
| version [node[:apache][:version], node[:apache][:worker]].join('-') | |
| end | |
| directory "/etc/httpd" do | |
| owner "root" | |
| group "root" | |
| mode 0755 | |
| action :create | |
| not_if { File.exists?('/etc/httpd') } |
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
| 127.0.0.1 localhost localhost.localdomain | |
| 10.93.54.53 someserver.example.com someserver | |
| 10.93.55.250 filer5-dd | |
| 10.93.55.250 filer5-dd |
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
| default[:apache] = Mash.new | |
| default[:apache][:worker] = "prefork" | |
| default[:apache][:version] = "2.2.14" |
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
| dunwich:~ rcreasey$ knife node run_list add linuxops-hv-04.las1 "role[hypervisor]" -l debug | |
| DEBUG: Signing the request as rcreasey | |
| DEBUG: Sending HTTP Request via GET to api.opscode.com:443/organizations/ign/nodes/linuxops-hv-04.las1 | |
| DEBUG: Signing the request as rcreasey | |
| DEBUG: Sending HTTP Request via PUT to api.opscode.com:443/organizations/ign/nodes/linuxops-hv-04.las1 | |
| /usr/local/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError) | |
| from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/rest.rb:216:in `api_request' | |
| from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/rest.rb:267:in `retriable_rest_request' | |
| from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/rest.rb:197:in `api_request' | |
| from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/rest.rb:116:in `put_rest' |
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
| [20100526 08:09:21.951|debug|linuxops-hv-01.las1.colo.ignops.com|594|Locking VM OpaqueRef:9eb29f7d-73c7-bd38-4dd8-28f1f122bd7b to process a queued event D:3a2ef7a3e2aa|event] VM OpaqueRef:9eb29f7d-73c7-bd38-4dd8-28f1f122bd7b (linuxops-admin-01.las1) resident_on other host OpaqueRef:NULL (linuxops-hv-01.las1.colo.ignops.com): taking no action | |
| [20100526 08:09:21.952|debug|linuxops-hv-01.las1.colo.ignops.com|594|Locking VM OpaqueRef:9eb29f7d-73c7-bd38-4dd8-28f1f122bd7b to process a queued event D:8648ab12b78a|event] VM OpaqueRef:9eb29f7d-73c7-bd38-4dd8-28f1f122bd7b (linuxops-admin-01.las1) resident_on other host OpaqueRef:NULL (linuxops-hv-01.las1.colo.ignops.com): taking no action |
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
| { | |
| "scaffold": { | |
| "hostname": "gstmatch-prodstor-01", | |
| "fqdn": "las1.colo.ignops.com", | |
| "ip_address": "10.93.56.49", | |
| "net_device": "eth0", | |
| "netmask": "255.255.254.0", | |
| "gateway": "10.93.56.1", | |
| "datacenter": "las1", | |
| "farm": { |