Skip to content

Instantly share code, notes, and snippets.

@josh-wrale
josh-wrale / gist:7590564
Last active December 29, 2015 01:08
stupid human trick
- hosts: all
sudo: True
roles:
- "\
firstdir/\
seconddir/\
dirwithrole1"
- "\
firstdir/\
seconddir/\
The MIT License (MIT)
Copyright (c) [2013] [Fanya Engler]
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@josh-wrale
josh-wrale / LICENSE
Created November 18, 2013 03:57 — forked from mrinaudo/LICENSE
The MIT License (MIT)
Copyright (c) 2013 Matteo Rinaudo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
slug : bundlejs
name : bundlejs.com
homepage : http://bundlejs.com
author : Alex Gorbatchev
description : Hosted files for bundlejs.com
releases:
- version : prod
date : now
location : http://localhost:3100
@josh-wrale
josh-wrale / LICENSE
Created October 26, 2013 20:29 — forked from mrinaudo/LICENSE
The MIT License (MIT)
Copyright (c) 2013 Matteo Rinaudo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
#!/bin/bash
###############################################################################
# CONFIG
# AWS config
export AWS_SECRET_KEY="XXXX"
export AWS_ACCESS_KEY="XXXX"
export PATH=$PATH:/usr/local/aws/ec2/bin
export EC2_HOME=/usr/local/aws/ec2/
#!/bin/bash
APT_SERVER="apt.MYDOMAIN"
zookeepers="zk://localhost:2181"
export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export DEBIAN_FRONTEND=noninteractive
die () { echo "FATAL: $*"; exit 1; }
root@cloudify-agent-2-483:/home/ubuntu/storage# chef-client
[2013-05-23T21:15:51+00:00] INFO: *** Chef 10.24.0 ***
[2013-05-23T21:15:52+00:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-05-23T21:15:52+00:00] INFO: Run List is [recipe[redis::server_source]]
[2013-05-23T21:15:52+00:00] INFO: Run List expands to [redis::server_source]
[2013-05-23T21:15:52+00:00] INFO: HTTP Request Returned 404 Not Found: No routes match the request: /reports/nodes/cloudify-agent-2-483.novalocal/runs
[2013-05-23T21:15:52+00:00] INFO: Starting Chef Run for cloudify-agent-2-483.novalocal
[2013-05-23T21:15:52+00:00] INFO: Running start handlers
[2013-05-23T21:15:52+00:00] INFO: Start handlers complete.
[2013-05-23T21:15:52+00:00] INFO: Loading cookbooks [build-essential, discovery, redis, runit, stunnel, yum]
boss@cloudify-1:~/git-checkouts/hotel-cloudify/clouds/openstack$ cat openstack-cloud.groovy
/***************
* Cloud configuration file for the Amazon ec2 cloud. Uses the default jclouds-based cloud driver.
* See org.cloudifysource.dsl.cloud.Cloud for more details.
* @author barakme
*
*/
cloud {
// Mandatory. The name of the cloud, as it will appear in the Cloudify UI.
faust@myhost:/var/log/nova# cinder --debug create --image-id 57ee2e31-8a4f-42ee-94c9-0cb71385d1b0 --display-name precise-vol-16 16
connect: (5.5.5.107, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 5.5.5.107:5000\r\nContent-Length: 119\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n{"auth": {"tenantName": "faust", "passwordCredentials": {"username": "faust", "password": "SCRUBBED_PASSWORD"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Wed, 15 May 2013 19:56:21 GMT
header: Transfer-Encoding: chunked
connect: (5.5.5.107, 8776)
send: u'POST /v1/t8c6j922766d47908aca7645c2eca39c/volumes HTTP/1.1\r\nHost: 5.5.5.107:8776\r\nContent-Length: 312\r\nx-auth-project-id: faust\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: SCRUBBED_TOKEN\r\nuser-agent: python-cinderclient\r\ncontent-type: application/json\r\n\r\n{"volume": {"status"