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
| source "https://supermarket.getchef.com" | |
| metadata | |
| #cookbook "apache2" | |
| #cookbook "mysql" | |
| #cookbook "php" | |
| cookbook 'opsworks-initial-setup', git: 'https://github.com/aws/opsworks-cookbooks.git', rel: 'opsworks_initial_setup' | |
| cookbook 'apache2', git: 'https://github.com/aws/opsworks-cookbooks.git', rel: 'apache2' |
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
| Unable to satisfy constraints on package dependencies, which does not exist, due to solution constraint (opsworks_commons = 1.0.0). Solution constraints that may result in a constraint on dependencies: [(opsworks_commons = 1.0.0) -> (dependencies >= 0.0.0)], [(opsworks_initial_setup = 1.0.0) -> (opsworks_commons = 1.0.0) -> (dependencies >= 0.0.0)] | |
| Missing artifacts: dependencies | |
| Demand that cannot be met: (opsworks_commons = 1.0.0) | |
| Unable to find a solution for demands: apache2 (1.0.0), installpkg (0.1.0), opsworks_commons (1.0.0), opsworks_initial_setup (1.0.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
| berks install | |
| Resolving cookbook dependencies... | |
| Fetching 'mysql' from https://github.com/opscode-cookbooks/mysql (at master) | |
| Fetching 'qz-mysql' from source at . | |
| Fetching cookbook index from https://supermarket.getchef.com... | |
| Error retrieving universe from source: https://supermarket.getchef.com | |
| * [Berkshelf::APIClient::TimeoutError] Unable to connect to: https://supermarket.getchef.com | |
| Unable to satisfy constraints on package yum-mysql-community, which does not exist, due to solution constraint (mysql = 5.4.4). Solution constraints that may result in a constraint on yum-mysql-community: [(mysql = 5.4.4) -> (yum-mysql-community >= 0.0.0)] | |
| Missing artifacts: yum-mysql-community | |
| Demand that cannot be met: (mysql = 5.4.4) |
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
| [2014-09-05T10:53:23+00:00] INFO: Forking chef instance to converge... | |
| [2014-09-05T10:53:23+00:00] INFO: *** Chef 11.10.4 *** | |
| [2014-09-05T10:53:23+00:00] INFO: Chef-client pid: 14532 | |
| [2014-09-05T10:53:24+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON | |
| [2014-09-05T10:53:24+00:00] WARN: Run List override has been provided. | |
| [2014-09-05T10:53:24+00:00] WARN: Original Run List: [recipe[opsworks_custom_cookbooks::load], recipe[opsworks_custom_cookbooks::execute]] | |
| [2014-09-05T10:53:24+00:00] WARN: Overridden Run List: [recipe[opsworks_ganglia::configure-client], recipe[ssh_users], recipe[mysql::client], recipe[agent_version], recipe[opsworks_stack_state_sync], recipe[php::configure], recipe[appserver::default], recipe[test_suite], recipe[opsworks_cleanup]] | |
| [2014-09-05T10:53:24+00:00] INFO: Run List is [recipe[opsworks_ganglia::configure-client], recipe[ssh_users], recipe[mysql::client], recipe[agent_version], recipe[opsworks_stack_state_sync], |
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
| Disclaimer: | |
| This piece was inspired by: http://code.activestate.com/recipes/146306/ | |
| def post_multipart(host, port, selector, fields, files, ownerid): | |
| content_type, body = encode_multipart_formdata(fields, files) | |
| h = httplib.HTTPConnection(host, port) | |
| headers = { | |
| 'User-Agent': 'Build Cluster 1.0', | |
| 'Content-Type': content_type, |
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
| //variable data is JSON string | |
| db.collection('objects').update({ | |
| _key: key, | |
| 'secretary.username': options.username | |
| }, { | |
| $addToSet: { | |
| "secretary.$" : data | |
| } | |
| }, { |
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
| MongoError: Cannot apply $addToSet to a non-array field. Field named '0' has a non-array type Object in the document _id |
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
| { "_id" : ObjectId("55be8465a54b293f913633ff"), "_key" : "partner:10034", "partnerName" : "XXXXX", "phoneNumber" : "9999999999", "email" : "gc@gc.com", "category" : "small", "modules" : [ "appointments", "video", "audio", "messaging" ], "secretary" : [ { "secretaryName" : "Interesting, Name, Name, True", "phoneNumber" : "9880009000", "email" : "gc1@gc.com", "username" : "name2", "password" : "somepass", "location" : "", "partnerId" : "10034", "ctime" : 1438549120203, "lastlogin" : "", "status" : "pending", "locked" : false, "deleted" : false } ], "partnerId" : 10034, "type" : "partner", "ctime" : 1438549093138, "lastLogin" : "", "status" : "pending", "locked" : false, "deleted" : false, "secretaryCnt" : 1 } |
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
| function(eventList, next) { | |
| if (_.isEmpty(eventList)) | |
| return next(null, eventList); | |
| var tmp = {}; | |
| var val = _ | |
| .chain(eventList) |
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
| 'use strict'; | |
| var _ = require('lodash'), | |
| async = require('async'), | |
| moment = require('moment'), | |
| messaging = require('../../messaging'), | |
| patients = require('../patients'), | |
| practitioners = require('../practitioners'), | |
| dataProvider = require('../../database'); |
OlderNewer