diff --git a/src/root/machine.tt b/src/root/machine.tt new file mode 100644 index 00000000..4d0bcfcf --- /dev/null +++ b/src/root/machine.tt @@ -0,0 +1,77 @@ +[% WRAPPER layout.tt title=(create ? "New machine" : "Editing machine '$machine.hostname'") %] +[% PROCESS common.tt %] + +
+ +

Machine[% IF ! create %] '[% machine.hostname %]'[% END %]

+ + + [% IF create %] + + + + + [% END %] + + + + + + + + + + + + + + + + + + + + + + + + +
Hostname:[% INCLUDE maybeEditString param="hostname" value=machine.hostname %]
Username:[% INCLUDE maybeEditString param="username" value=machine.username %]
SSH key location:[% INCLUDE maybeEditString param="ssh_key" value=machine.ssh_key %]
Options: + [% INCLUDE maybeEditString param="options" value=machine.options %] +
Max concurrent builds:[% INCLUDE maybeEditString param="maxconcurrent" value=machine.maxconcurrent %]
Speed factor: + [% INCLUDE maybeEditString param="speedfactor" value=machine.speedfactor %] +
Systems: + +
+ +

+ +
+ +[% IF !create %] + +
+

+
+ + +[% END %] + +[% END %] diff --git a/src/root/machines.tt b/src/root/machines.tt new file mode 100644 index 00000000..3f4078ab --- /dev/null +++ b/src/root/machines.tt @@ -0,0 +1,50 @@ +[% WRAPPER layout.tt title="Machines" %] +[% PROCESS common.tt %] + +

Build machines

+ + + + + + + + + [% FOREACH s IN systems %][% END %] + + + + [% FOREACH m IN machines %] + + + + + + [% FOREACH s IN systems %] + + [% END %] + + [% END %] + + +
EnabledMachineMax concurrentSpeedfactor[% s.system %]
[% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('machine_edit'), [m.hostname]) content = m.hostname %][% m.maxconcurrent %][% m.speedfactor %] + [% checked = false %] + [% FOREACH ms IN m.buildmachinesystemtypes %] + [% checked = ms.system == s.system %] + [% BREAK IF checked %] + [% END %] + +
+ +

[ Add a new machine ]

+ + +

+Resulting /etc/nix.machines [% IF nixMachinesWritable == 0 %](note: file is not writable!)[% END%]: +

+ +
+[% nixMachines %]
+
+ +[% END %]