- Supported :
- http://openid.bitbucket.org/openid-connect-session-1_0.html
- Not Supported yet :
- discovery of OP iframe URL and logout URL
| ## mysql::master | |
| ruby_block "store_mysql_master_status" do | |
| block do | |
| node.set[:mysql][:master] = true | |
| m = Mysql.new("localhost", "root", node[:mysql][:server_root_password]) | |
| m.query("show master status") do |row| | |
| row.each_hash do |h| | |
| node.set[:mysql][:master_file] = h['File'] | |
| node.set[:mysql][:master_position] = h['Position'] | |
| end |
| log_level :info | |
| log_location STDOUT | |
| node_name ENV['USER'] | |
| client_key "#{ENV['HOME']}/.chef/#{ENV['USER']}.pem" | |
| validation_client_name 'chef-validator' | |
| validation_key '/etc/chef/validation.pem' | |
| chef_server_url 'http://localhost:4000' | |
| cache_type 'BasicFile' | |
| cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) | |
| cookbook_path [ '/var/chef/cookbooks' ] |
| ### Ensure variables are declared | |
| [[ -z "$RUBY_VERSION" ]] && printf ">>> RUBY_VERSION must be set.\n" && exit 10 | |
| [[ -z "$RUBY_HOME" ]] && printf ">>> RUBY_HOME must be set.\n" && exit 11 | |
| ### Install Packages | |
| set -x |
| - Metrics collection | |
| - PaaS/IaaS evaluation/investigation | |
| - Automation (auto-build, auto-recovery) | |
| - Fault tolerance | |
| - Availability | |
| - Monitoring | |
| - Performance | |
| - Capex and Opex forecasting | |
| - Outage response |
| #!/usr/local/bin/ruby | |
| # Copyright (c) 2012 Solano Labs All Rights Reserved | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, this | |
| # list of conditions and the following disclaimer. | |
| # 2. Redistributions in binary form must reproduce the above copyright notice, |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This will demonstrate how to upload build files from Travis CI to S3.
NOTE: Keys have been changed to protect the innocent.
Create an S3 ACL policy, see s3_policy.json for an example.
Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.
Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.
- Get an OAuth Token from GitHub
First you will need to get an OAuth Token from GitHub using your own username and "note"