Ubuntu Pastebin

Paste from beisner at Fri, 26 Aug 2016 00:16:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ubuntu@osci-slavehost:~/temp⟫ tree
.
├── examples
│   └── hello
│       └── task.yaml
├── spread-hello.yaml
└── spread.yaml

2 directories, 3 files


ubuntu@osci-slavehost:~/temp⟫ head -n999 examples/hello/task.yaml spread-hello.yaml spread.yaml 
==> examples/hello/task.yaml <==
summary: Greet the planet
environment:
    GREETING: Hello
    GREETING/bar: Goodbye
    SUBJECT/baz: world
execute: |
    echo "$GREETING $SUBJECT!"
    exit 1

==> spread-hello.yaml <==
summary: Greet the planet
environment:
    SUBJECT: world 
    GREETING: Hello $SUBJECT!
execute: |
    echo "$GREETING"
    exit 1

==> spread.yaml <==
project: hello-world

backends:
    lxd:
        systems:
            - ubuntu-16.04

suites:
    examples/:
        summary: Simple examples
        environment:
            SUBJECT/foo: sanity
            SUBJECT/bar: lunacy

path: /remote/path


ubuntu@osci-slavehost:~/temp⟫ lxc list
+-----------------------+---------+------------------+------+------------+-----------+
|         NAME          |  STATE  |       IPV4       | IPV6 |    TYPE    | SNAPSHOTS |
+-----------------------+---------+------------------+------+------------+-----------+
| intergalactic-shellie | RUNNING | 10.0.8.45 (eth0) |      | PERSISTENT | 0         |
+-----------------------+---------+------------------+------+------------+-----------+

# ^ lxc unit created by ubuntu user manually


ubuntu@osci-slavehost:~/temp⟫ spread -list
lxd:ubuntu-16.04:examples/hello:baz
lxd:ubuntu-16.04:examples/hello:bar
lxd:ubuntu-16.04:examples/hello:foo
ubuntu@osci-slavehost:~/temp⟫ spread -v
2016/08/26 00:14:57 Found /home/ubuntu/temp/spread.yaml.
2016/08/26 00:14:57 Allocating lxd:ubuntu-16.04...
2016/08/26 00:14:57 Cannot allocate lxd:ubuntu-16.04: cannot launch lxd container: exec: "lxc": executable file not found in $PATH
2016/08/26 00:14:57 Successful tasks: 0
2016/08/26 00:14:57 Aborted tasks: 3
error: unsuccessful run


1 ubuntu@osci-slavehost:~/temp⟫ snap list
Name         Version     Rev  Developer  Notes
spread       2016.08.23  11   niemeyer   -
ubuntu-core  16.04.1     216  canonical  -
Download as text