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
/** | |
* Calculates the hash/checksum of a string. Default algorithm is MD5. | |
* | |
* @param {String} str | |
* @param {String} algorithm | |
* @return {String} checksum | |
* @api public | |
*/ | |
exports.hash = function (str, algorithm) { | |
if (algorithm === 'crc32') { |
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 "aws" | |
include_recipe "lvm" | |
include_recipe "xfs" | |
esvg = node.elasticsearch.ebs.lvm.volume_group | |
eslv = node.elasticsearch.ebs.lvm.logical_volume | |
Chef::Log.info "ElasticSearch: setting up 8 100G EBS volumes" | |
aws = data_bag_item("aws", node.app_environment) | |
8.times do |d| | |
disk = (d == 0 ? "/dev/sdi" : "/dev/sdi#{d}") |
NewerOlder