This file contains 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
source 'https://supermarket.getchef.com' | |
metadata | |
group :integration do | |
cookbook 'passenger-nginx-lwrp-test', path:'test/fixtures/cookbooks/passenger-nginx-lwrp-test' | |
end | |
This file contains 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
{"root"=>{"gid"=>0, "members"=>[]}, "daemon"=>{"gid"=>1, "members"=>[]}, "bin"=>{"gid"=>2, "members"=>[]}, "sys"=>{"gid"=>3, "members"=>[]}, "adm"=>{"gid"=>4, "members"=>["syslog"]}, "tty"=>{"gid"=>5, "members"=>[]}, "disk"=>{"gid"=>6, "members"=>[]}, "lp"=>{"gid"=>7, "members"=>[]}, "mail"=>{"gid"=>8, "members"=>[]}, "news"=>{"gid"=>9, "members"=>[]}, "uucp"=>{"gid"=>10, "members"=>[]}, "man"=>{"gid"=>12, "members"=>[]}, "proxy"=>{"gid"=>13, "members"=>[]}, "kmem"=>{"gid"=>15, "members"=>[]}, "dialout"=>{"gid"=>20, "members"=>[]}, "fax"=>{"gid"=>21, "members"=>[]}, "voice"=>{"gid"=>22, "members"=>[]}, "cdrom"=>{"gid"=>24, "members"=>[]}, "floppy"=>{"gid"=>25, "members"=>[]}, "tape"=>{"gid"=>26, "members"=>[]}, "sudo"=>{"gid"=>27, "members"=>[]}, "audio"=>{"gid"=>29, "members"=>[]}, "dip"=>{"gid"=>30, "members"=>[]}, "www-data"=>{"gid"=>33, "members"=>[]}, "backup"=>{"gid"=>34, "members"=>[]}, "operator"=>{"gid"=>37, "members"=>[]}, "list"=>{"gid"=>38, "members"=>[]}, "irc"=>{"gid"=>39, "members"=>[]}, "src"= |
This file contains 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
Import-Module WebAdministration | |
if (-not(test-path IIS:\\Sites\\#{site_name})){ | |
$NewWebsiteParams = @{Name= '#{site_name}';Port= #{site_data["port"]};PhysicalPath= '#{site_dir}';ApplicationPool= '#{site_name}'} | |
New-Website @NewWebsiteParams | |
} | |
elseif ((Get-WebBinding -Name #{site_name}).bindingInformation -ne '*:#{site_data["port"]}:') { | |
$CurrentBinding = (Get-WebBinding -Name #{site_name}).bindingInformation | |
$BindingParameters = @{Name= '#{site_name}';Binding= $CurrentBinding;PropertyName= 'Port';Value = #{site_data["port"]} } | |
Set-WebBinding @BindingParameters | |
} |
This file contains 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
directory '/home/deploy/efg/shared/config' do | |
owner 'deploy' | |
mode '0755' | |
recursive true | |
end | |
This file contains 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
httpd_service 'billpay' do | |
action :create | |
listen_ports ['80', '8000] | |
end |
This file contains 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
driver: | |
name: ec2 | |
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY'] %> | |
aws_secret_access_key: <%= ENV['AWS_SECRET_KEY'] %> | |
aws_ssh_key_id: <%= ENV['AWS_SSH_KEY_ID'] %> | |
ssh_key: <%= File.expand_path("~/.ssh/#{ENV['AWS_SSH_KEY_ID']}.pem") %> | |
security_group_ids: ["sg-1dd01074"] | |
region: us-east-1 | |
availability_zone: us-east-1d | |
require_chef_omnibus: true |
This file contains 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
driver_config: | |
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY'] %> | |
aws_secret_access_key: <%= ENV['AWS_SECRET_KEY'] %> | |
aws_ssh_key_id: <%= ENV['AWS_SSH_KEY_ID'] %> | |
ssh_key: <%= File.expand_path('~/.ssh/test123.pem' )%> | |
region: eu-west-1 | |
availability_zone: eu-west-1b | |
require_chef_omnibus: true |
This file contains 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
include_recipe 'mysql::server' | |
include_recipe 'database::mysql' | |
mysql_connection_info = {:host => "localhost", | |
:username => 'root', | |
:password => node['mysql']['server_root_password']} | |
service 'mysql-upstart' do | |
name 'mysql' |
This file contains 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
Generated at 2014-09-20 11:14:38 +0000NoMethodError: No resource or method named `passenger_nginx_vhost' for `Chef::Recipe "default"'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/dsl/recipe.rb:46:in `rescue in method_missing'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/dsl/recipe.rb:43:in `method_missing'/tmp/kitchen/cache/cookbooks/passenger_nginx_vhost_test/recipes/default.rb:9:in `from_file'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/from_file.rb:30:in `instance_eval'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/from_file.rb:30:in `from_file'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/cookbook_version.rb:234:in `load_recipe'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/run_context.rb:166:in `load_recipe'/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/run_context/cookbook_compiler.rb:140:in `block in compile_recipes'/opt/chef/embedded/lib/ruby/gems/1.9.1/ |
This file contains 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_name = "vagrant_#{node['vagrant']['version']}_#{node['kernel']['machine']}.deb" | |
package_source = File.join(node['vagrant']['base_url'], package_name) | |
remote_file "#{Chef::Config[:file_cache_path]}/vagrant.deb" do | |
source package_source | |
notifies :install, "dpkg_package[vagrant]", :immediately | |
end | |
dpkg_package "vagrant" do | |
source "#{Chef::Config[:file_cache_path]}/vagrant.deb" |