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
| #!/bin/bash | |
| # log bash stdout and stderr to several places | |
| exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
| set -x | |
| set -e | |
| export WORKING_DIR=/home/ubuntu | |
| # chef-solo JSON configuration | |
| # put your runlist, variables, etc. in here |
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
| #!/bin/bash | |
| set -x | |
| set -e | |
| echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list | |
| wget -qO - http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add - | |
| # set up debconf preseed so there's no prompt for the chef server URL | |
| export PRESEED_FILE=/tmp/tmp_chef_preseed |
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
| ERROR: Failed to authenticate to https://api.opscode.com/organizations/citizengroove as citizengroove with key /Users/nbarendt/Documents/BitBacker/CitizenGroove/chef-repo/.chef/nbarendt.pem | |
| Response: Failed to authenticate as citizengroove. Ensure that your node_name and client key are correct. |
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
| current_dir = File.dirname(__FILE__) | |
| log_level :info | |
| log_location STDOUT | |
| node_name "citizengroove" | |
| client_key "#{current_dir}/citizengroove.pem" | |
| validation_client_name "citizengroove-validator" | |
| validation_key "#{current_dir}/citizengroove-validator.pem" | |
| chef_server_url "https://api.opscode.com/organizations/citizengroove" | |
| cache_type 'BasicFile' | |
| cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) |