Skip to content

Commit 9686b72

Browse files
Initial commit.
1 parent 2e90270 commit 9686b72

File tree

204 files changed

+40241
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+40241
-0
lines changed

01.hello/doc/hostfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

01.hello/localhost/hello.args

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ETCE

01.hello/steps.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<steps>
2+
<step name="say.hello">
3+
<run wrapper="utils.hello"/>
4+
</step>
5+
</steps>

01.hello/test.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<test>
2+
<name>01.hello</name>
3+
4+
<description>
5+
Demonstrate a minimal test with
6+
a single field node (localhost)
7+
and a single step (say.hello).
8+
</description>
9+
</test>

02.hello_lxc/doc/hostfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
localhost
2+
{
3+
node-001
4+
node-002
5+
}
6+

02.hello_lxc/doc/lxcplan.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<lxcplan>
2+
<hosts>
3+
<host hostname="localhost">
4+
<bridges>
5+
<bridge name="br.ctl" persistent="false">
6+
<ipaddress>
7+
<ipv4>10.76.0.200/24</ipv4>
8+
</ipaddress>
9+
</bridge>
10+
</bridges>
11+
12+
<containers>
13+
<container lxc_name="node-${'%03d' % lxc_index}" lxc_indices="1-2">
14+
<parameters>
15+
<parameter name="lxc.console" value="none"/>
16+
<parameter name="lxc.tty" value="1"/>
17+
<parameter name="lxc.pts" value="128"/>
18+
</parameters>
19+
<interfaces>
20+
<interface bridge="br.ctl">
21+
<parameter name="lxc.network.type" value="veth"/>
22+
<parameter name="lxc.network.name" value="backchan0"/>
23+
<parameter name="lxc.network.flags" value="up"/>
24+
<parameter name="lxc.network.hwaddr" value="02:00:${'%02x' % lxc_index}:01:00:${'%02x' % lxc_index}"/>
25+
<parameter name="lxc.network.ipv4" value="10.76.0.${lxc_index}/16"/>
26+
<parameter name="lxc.network.veth.pair" value="veth.ctl.${lxc_index}"/>
27+
</interface>
28+
</interfaces>
29+
<initscript>#!/bin/bash
30+
31+
# make node for tun device
32+
mkdir /dev/net
33+
mknod /dev/net/tun c 10 200
34+
35+
pidfile="${lxc_directory}/var/run/sshd.pid"
36+
/usr/sbin/sshd -o "PidFile=$pidfile" -o "PermitRootLogin=yes" -o "PasswordAuthentication=no"
37+
</initscript>
38+
</container>
39+
</containers>
40+
</host>
41+
</hosts>
42+
</lxcplan>

02.hello_lxc/node-001/hello.args

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ETCE node-001

02.hello_lxc/node-002/hello.args

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ETCE node-002

02.hello_lxc/steps.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<steps>
2+
<step name="say.hello">
3+
<run wrapper="utils.hello">
4+
<arg name="greeting" value="Hi ya"/>
5+
</run>
6+
</step>
7+
</steps>

02.hello_lxc/test.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<test>
2+
<name>02.hello_lxc</name>
3+
4+
<description>
5+
Expand 01.hello to execute on
6+
multiple nodes. Introduce
7+
LXC plan file for launching
8+
containers.
9+
</description>
10+
</test>

0 commit comments

Comments
 (0)