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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
#!/usr/bin/python
import sys
from distutils.core import setup, Extension
import string
VERSION = "0.6.2"
SHORT_DESC = "Network Boot and Update Server"
LONG_DESC = """
Cobbler is a network boot and update server. Cobbler supports PXE, provisioning virtualized images, and reinstalling existing Linux machines. The last two modes require a helper tool called 'koan' that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP Management. Cobbler has a Python API for integration with other GPL systems management applications.
"""
if __name__ == "__main__":
# docspath="share/doc/koan-%s/" % VERSION
manpath = "share/man/man1/"
cobpath = "/var/lib/cobbler/"
etcpath = "/etc/cobbler/"
wwwconf = "/etc/httpd/conf.d/"
wwwpath = "/var/www/cobbler/"
initpath = "/etc/init.d/"
logpath = "/var/log/cobbler/"
logpath2 = "/var/log/cobbler/kicklog"
logpath3 = "/var/log/cobbler/syslog"
snippets = "/var/lib/cobbler/snippets"
vw_localmirror = "/var/www/cobbler/localmirror"
vw_kickstarts = "/var/www/cobbler/kickstarts"
vw_kickstarts_sys = "/var/www/cobbler/kickstarts_sys"
vw_repomirror = "/var/www/cobbler/repo_mirror"
vw_ksmirror = "/var/www/cobbler/ks_mirror"
vw_ksmirrorc = "/var/www/cobbler/ks_mirror/config"
vw_images = "/var/www/cobbler/images"
vw_distros = "/var/www/cobbler/distros"
vw_systems = "/var/www/cobbler/systems"
vw_profiles = "/var/www/cobbler/profiles"
vw_links = "/var/www/cobbler/links"
tftp_cfg = "/tftpboot/pxelinux.cfg"
tftp_images = "/tftpboot/images"
rotpath = "/etc/logrotate.d"
cgipath = "/var/www/cgi-bin"
setup(
name="cobbler",
version = VERSION,
author = "Michael DeHaan",
author_email = "mdehaan@redhat.com",
url = "http://cobbler.et.redhat.com/",
license = "GPL",
packages = [
"cobbler",
"cobbler/yaml"
],
scripts = ["scripts/cobbler", "scripts/cobblerd"],
data_files = [
(cgipath, ['scripts/findks.cgi', 'scripts/nopxe.cgi']),
(rotpath, ['config/cobblerd_rotate']),
(wwwconf, ['config/cobbler.conf']),
(cobpath, ['loaders/elilo-3.6-ia64.efi']),
(cobpath, ['loaders/menu.c32']),
(cobpath, ['config/cobbler_hosts']),
(etcpath, ['kickstarts/kickstart_fc5.ks']),
(etcpath, ['kickstarts/kickstart_fc6.ks']),
(etcpath, ['kickstarts/kickstart_fc6_domU.ks']),
(etcpath, ['kickstarts/default.ks']),
(etcpath, ['templates/dhcp.template']),
(etcpath, ['templates/dnsmasq.template']),
(etcpath, ['templates/pxedefault.template']),
(etcpath, ['templates/pxesystem.template']),
(etcpath, ['templates/pxesystem_ia64.template']),
(etcpath, ['templates/pxeprofile.template']),
(snippets, ['snippets/partition_select']),
(manpath, ['docs/cobbler.1.gz']),
(etcpath, ['config/rsync.exclude']),
(initpath, ['config/cobblerd']),
(logpath, []),
(logpath2, []),
(logpath3, []),
(vw_localmirror, []),
(vw_kickstarts, []),
(vw_kickstarts_sys, []),
(vw_repomirror, []),
(vw_ksmirror, []),
(vw_ksmirrorc, []),
(vw_distros, []),
(vw_images, []),
(vw_systems, []),
(vw_profiles, []),
(vw_links, []),
(tftp_cfg, []),
(tftp_images, []),
("/var/lib/cobbler/triggers/add/distro/pre", []),
("/var/lib/cobbler/triggers/add/distro/post", []),
("/var/lib/cobbler/triggers/add/profile/pre", []),
("/var/lib/cobbler/triggers/add/profile/post", []),
("/var/lib/cobbler/triggers/add/system/pre", []),
("/var/lib/cobbler/triggers/add/system/post", []),
("/var/lib/cobbler/triggers/add/repo/pre", []),
("/var/lib/cobbler/triggers/add/repo/post", []),
("/var/lib/cobbler/triggers/delete/distro/pre", []),
("/var/lib/cobbler/triggers/delete/distro/post", []),
("/var/lib/cobbler/triggers/delete/profile/pre", []),
("/var/lib/cobbler/triggers/delete/profile/post", []),
("/var/lib/cobbler/triggers/delete/system/pre", []),
("/var/lib/cobbler/triggers/delete/system/post", []),
("/var/lib/cobbler/triggers/delete/repo/pre", []),
("/var/lib/cobbler/triggers/delete/repo/post", [])
],
description = SHORT_DESC,
long_description = LONG_DESC
)
|