Skip to content

Instantly share code, notes, and snippets.

#!/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"
@josh-wrale
josh-wrale / openstack-cloud.groovy
Created May 14, 2013 03:26
openstack-cloud.groovy with volume attachments
/***************
* 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.
name = "openstack"
Script started on Tue 19 Mar 2013 04:45:25 PM EDT
root@trisquel-2:~# apt-get update
Get:1 http://us.archive.trisquel.info toutatis Release.gpg [198 B]
Get:2 http://us.archive.trisquel.info toutatis-updates Release.gpg [198 B]
Get:3 http://us.archive.trisquel.info toutatis-security Release.gpg [198 B]
Get:4 http://us.archive.trisquel.info toutatis Release [5,795 B]
Get:5 http://us.archive.trisquel.info toutatis-updates Release [5,152 B]
Get:6 http://us.archive.trisquel.info toutatis-security Release [3,965 B]
Get:7 http://us.archive.trisquel.info toutatis/main Sources [5,929 kB]
Get:8 http://us.archive.trisquel.info toutatis/main amd64 Packages [6,083 kB]
boss@cfg-1:~$ cat output.txt
Script started on Mon 18 Mar 2013 10:51:39 PM EDT
root@trisquel-2:~# apt-get update
Hit http://us.archive.trisquel.info toutatis Release.gpg
Hit http://us.archive.trisquel.info toutatis-updates Release.gpg
Hit http://us.archive.trisquel.info toutatis-security Release.gpg
Hit http://us.archive.trisquel.info toutatis Release
Hit http://us.archive.trisquel.info toutatis-updates Release
Hit http://us.archive.trisquel.info toutatis-security Release
Hit http://us.archive.trisquel.info toutatis/main Sources