Accounts is a nested json array:
{
"id": "accounts",
"dev": {
"postgres": {
"write": [
{
"user": "pgwrite",
# | |
# Author:: Adam Jacob (<adam@opscode.com>) | |
# Copyright:: Copyright (c) 2010 Opscode, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
[Unit] | |
Description=Web App | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill web_app-%i | |
ExecStartPre=-/usr/bin/docker rm web_app-%i | |
ExecStartPre=/usr/bin/docker pull tutum/hello-world |
Accounts is a nested json array:
{
"id": "accounts",
"dev": {
"postgres": {
"write": [
{
"user": "pgwrite",
[Unit] | |
Description=Crick API | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
User=core | |
EnvironmentFile=/etc/environment | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill dev-crick-api-A-%i |
# init a cluster, if needed | |
if File.exists?('user-data') | |
require 'open-uri' | |
require 'yaml' | |
data = YAML.load(IO.readlines('user-data')[1..-1].join) | |
if data['coreos']['etcd']['discovery'].nil? and ARGV[0].eql?('up') | |
token = open('https://discovery.etcd.io/new?size=3').read | |
data['coreos']['etcd']['discovery'] = token | |
yaml = YAML.dump(data) |
[Unit] | |
Description=Pull Latest Crick Image | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
User=core | |
EnvironmentFile=/etc/environment | |
TimeoutStartSec=0 | |
Type=oneshot |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: INFO client.go:291: Failed getting response from http://172.21.10.241:2079/: dial tcp 172.21.10.241:2079: connection refused | |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: INFO client.go:291: Failed getting response from http://172.21.10.242:2079/: dial tcp 172.21.10.242:2079: connection refused | |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: INFO client.go:291: Failed getting response from http://172.21.10.243:2079/: dial tcp 172.21.10.243:2079: connection refused | |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: INFO client.go:291: Failed getting response from http://172.21.10.244:2079/: dial tcp 172.21.10.244:2079: connection refused | |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: INFO client.go:291: Failed getting response from http://172.21.10.245:2079/: dial tcp 172.21.10.245:2079: connection refused | |
Mar 04 21:50:43 wp-cos-001 fleetd[1512]: ERROR client.go:213: Unable to get result for {Create /_coreos.com/fleet/machines/9525ef33fda949c3a4b1ea396c1e56d5/object}, retrying in 100ms | |
Mar 04 21:5 |
#cloud-config | |
--- | |
coreos: | |
etcd: | |
discovery: ~ | |
addr: $public_ipv4:4001 | |
peer-addr: $public_ipv4:7001 | |
fleet: | |
public-ip: $public_ipv4 |
root@89b094521637:/fleet-v0.10.0-linux-amd64# ./fleetctl --driver=API --debug --endpoint http://etcd.infra.w.keep.com:2379 list-units | |
2015/04/17 18:31:45 DEBUG http.go:28: HTTP GET http://etcd.infra.w.keep.com:2379/fleet/v1/state?alt=json | |
2015/04/17 18:31:45 DEBUG http.go:31: HTTP GET http://etcd.infra.w.keep.com:2379/fleet/v1/state?alt=json 404 Not Found | |
Error retrieving list of units from repository: googleapi: got HTTP response code 404 with body: 404 page not found | |
root@89b094521637:/fleet-v0.10.0-linux-amd64# ./fleetctl --driver=etcd --debug --endpoint http://etcd.infra.w.keep.com:2379 list-units | |
2015/04/17 18:31:39 DEBUG client.go:367: etcd: sending HTTP request GET http://etcd.infra.w.keep.com:2379/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true | |
2015/04/17 18:31:39 DEBUG client.go:374: etcd: recv response from GET http://etcd.infra.w.keep.com:2379/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true: 200 OK | |
2015/04/17 18:31:39 DEBUG client.go:3 |
### Keybase proof | |
I hereby claim: | |
* I am popsikle on github. | |
* I am popsikle (https://keybase.io/popsikle) on keybase. | |
* I have a public key whose fingerprint is 0DAE F34A B4A9 1E9C CFB6 65FA DE27 734D 338A 030D | |
To claim this, I am signing this object: |