Changeset 1f8d77d22e8dcb5f151e7d1e74900047caf545f8
- Timestamp:
- 02/02/09 19:49:09 (3 years ago)
- Author:
- Frederic Lepied <frederic.lepied@…>
- Children:
- 7d2125045e9aa60d57072dc41f4ae7f87974f3a0
- Parents:
- 25d22ddddfca26a57fa98bf4ffd224765ddc118f
- git-committer:
- Frederic Lepied <frederic.lepied@…> (02/02/09 19:49:09)
- Message:
-
added headers
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r7d1bd6c
|
r1f8d77d
|
|
| | 1 | #--------------------------------------------------------------- |
| | 2 | # Project : pxemngr |
| | 3 | # File : Makefile |
| | 4 | # Copyright : 2009 Splitted-Desktop Systems |
| | 5 | # Author : Frederic Lepied |
| | 6 | # Created On : Sun Feb 1 13:54:41 2009 |
| | 7 | # Purpose : build rules |
| | 8 | #--------------------------------------------------------------- |
| | 9 | |
| 1 | 10 | VERSION=0.1 |
| 2 | 11 | |
-
|
r693511a
|
r1f8d77d
|
|
| 3 | 3 | # Project : pxemngr |
| 4 | 4 | # File : addsystem |
| 5 | | # Version : $Id$ |
| | 5 | # Copyright : 2009 Splitted-Desktop Systems |
| 6 | 6 | # Author : Frederic Lepied |
| 7 | 7 | # Created On : Sun Feb 1 13:54:41 2009 |
| 8 | | # Purpose : |
| | 8 | # Purpose : add a system and its mac addresses to the |
| | 9 | # database. |
| 9 | 10 | #--------------------------------------------------------------- |
| 10 | 11 | |
-
|
reef6ba6
|
r1f8d77d
|
|
| 2 | 2 | # Project : pxemngr |
| 3 | 3 | # File : common.py |
| 4 | | # Version : $Id$ |
| | 4 | # Copyright : 2009 Splitted-Desktop Systems |
| 5 | 5 | # Author : Frederic Lepied |
| 6 | 6 | # Created On : Sun Feb 1 19:03:58 2009 |
| 7 | | # Purpose : |
| | 7 | # Purpose : common functions used by scripts and web logic. |
| 8 | 8 | #--------------------------------------------------------------- |
| 9 | 9 | |
-
|
r4eb2933
|
r1f8d77d
|
|
| | 1 | #--------------------------------------------------------------- |
| | 2 | # Project : pxemngr |
| | 3 | # File : models.py |
| | 4 | # Copyright : 2009 Splitted-Desktop Systems |
| | 5 | # Author : Frederic Lepied |
| | 6 | # Created On : Sun Feb 1 13:54:41 2009 |
| | 7 | # Purpose : describe sql tables. |
| | 8 | #--------------------------------------------------------------- |
| | 9 | |
| 1 | 10 | from django.db import models |
| 2 | 11 | |
-
|
r693511a
|
r1f8d77d
|
|
| 3 | 3 | # Project : pxemngr |
| 4 | 4 | # File : nextboot |
| 5 | | # Version : $Id$ |
| | 5 | # Copyright : 2009 Splitted-Desktop Systems |
| 6 | 6 | # Author : Frederic Lepied |
| 7 | 7 | # Created On : Sun Feb 1 13:54:41 2009 |
| 8 | | # Purpose : |
| | 8 | # Purpose : configure the profile for the next PXE boot |
| | 9 | # of a system. |
| 9 | 10 | #--------------------------------------------------------------- |
| 10 | 11 | |
| … |
… |
|
| 15 | 16 | from pxe.common import * |
| 16 | 17 | |
| 17 | | def error(str): |
| 18 | | sys.stderr.write(str + '\n') |
| 19 | | sys.exit(1) |
| 20 | | |
| 21 | 18 | if len(sys.argv) != 3: |
| 22 | 19 | error('Usage: %s <system name> <boot name>' % sys.argv[0]) |
-
|
r693511a
|
r1f8d77d
|
|
| 3 | 3 | # Project : pxemngr |
| 4 | 4 | # File : syncbootnames |
| 5 | | # Version : $Id$ |
| | 5 | # Copyright : 2009 Splitted-Desktop Systems |
| 6 | 6 | # Author : Frederic Lepied |
| 7 | 7 | # Created On : Sun Feb 1 19:17:33 2009 |
| 8 | | # Purpose : |
| | 8 | # Purpose : read the pxe directory containing the profiles |
| | 9 | # and add them to the database as available. |
| 9 | 10 | #--------------------------------------------------------------- |
| 10 | 11 | |
-
|
r853b6ff
|
r1f8d77d
|
|
| | 1 | #--------------------------------------------------------------- |
| | 2 | # Project : pxemngr |
| | 3 | # File : views.py |
| | 4 | # Copyright : 2009 Splitted-Desktop Systems |
| | 5 | # Author : Frederic Lepied |
| | 6 | # Created On : Sun Feb 1 13:54:41 2009 |
| | 7 | # Purpose : http logic |
| | 8 | #--------------------------------------------------------------- |
| | 9 | |
| 1 | 10 | from django.http import HttpResponse |
| 2 | 11 | from django.shortcuts import get_object_or_404 |