-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
158 lines (102 loc) · 3.94 KB
/
README
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Project source
==============
This project is a fork from the project mentioned below. We wanted
to use it, but submitted patches have not been applied in the source.
We intend to merge commits from the original project to this one and
at the same time improve what's there.
To start, we're working to make the sources work on Debian Wheezy
both with and without SSL on the XML-RPC server and web frontend --
we found that without SSL it currently doesn't work.
Feel free to create issues at
https://github.com/ehuelsmann/openipam/issues
Dependencies
============
Debian Wheezy Packages
----------------------
Prefix the package lists with 'apt-get install' to make sure you have the
packages installed.
* Shared by all
postgresql
* Backend (XML-RPC webservices)
python-cherrypy3 python-ldap python-psycopg2
python-openssl python-sqlalchemy python-ipy python-cjson
* Front-end (web interface)
python-cherrypy3 python-openssl python-cheetah python-ipy python-cjson
* DHCP server (openDHCP)
python-psycopg2 python-sqlalchemy
* DNS server (PowerDNS)
pdns-server pdns-backend-pgsql
* SSL for backend and/or frontend
ssl-cert
The website https://code.google.com/p/openipam/wiki/Installation also
lists python-processing for the DCHP server, but that dependency has
been eliminated due to the use of python 2.7.
Other distros
-------------
Please provide your package naming.
Installation
------------
Assuming you want to install all components, these are the steps to get
openIPAM set up on Debian Wheezy, after installing all the dependencies
listed above:
adduser --home /usr/local/openipam --disabled-password \
--gecos "openIPAM User" openipam
## THIS BLOCK ONLY IF YOU WANT SSL -- START
apt-get install ssl-cert
adduser openipam ssl-cert
## THIS BLOCK ONLY IF YOU WANT SSL -- END
mkdir -p /var/lib/openipam/sessions/backend
mkdir -p /var/log/openipam/backend
mkdir -p /var/lib/openipam/sessions/web
mkdir -p /var/log/openipam/web
chown -R openipam /var/lib/openipam /var/log/openipam
su - openipam
svn co https://github.com/ehuelsmann/openipam/trunk/openipam .
cd openIPAM/
svn export openipam_config.example openipam_config
exit
su - postgres
createuser --pwprompt --no-superuser --no-createdb
--no-createrole openipam
# createuser asks for a password here. Remember it, we need it later!
createdb -O openipam openipam
exit
su - openipam
(psql -d openipam -f openIPAM/sql/openipam_schema.sql 2>&1) \
| tee log | grep 'ERROR'
# IF THE ABOVE SHOWS NO OUTPUT, CHECK THE 'log' FILE TO SEE IF THE COMMAND
# RAN AT ALL. IF THE 'log' FILE IS NON-EMPTY AND THERE ARE NO ERRORS,
# THE DATABASE SCHEMA LOADED CORRECTLY
exit
# The cherrypy patch https://code.google.com/p/openipam/wiki/Installation
# speaks of, is outdated information: the patch is no longer required
### WRITEME: Apache + mod_wsgi
### WRITEME: dhcpd
### WRITEME: Startup scripts
Original project
================
___ ____ _ __ __
___ _ __ ___ _ __ |_ _| _ \ / \ | \/ |
/ _ \| '_ \ / _ \ '_ \ | || |_) / _ \ | |\/| |
| (_) | |_) | __/ | | || || __/ ___ \| | | |
\___/| .__/ \___|_| |_|___|_| /_/ \_\_| |_|
|_|
www.openipam.org
Copyright (C) 2007-2008 Utah State University - Information Technology
Licensed under the GNU General Public License v3. See COPYING for details.
INSTALLATION & CUSTOMIZATION
http://code.google.com/p/openipam/wiki/Installation
DEPENDENCIES
Power DNS server
PostgreSQL server (with table_log if you want to keep track of changes)
python-ldap (>= 2.2.0) *
python-cherrypy3 (>= 3.0.3) (backend/web frontend)
python-cjson (backend/web frontend)
python-sqlalchemy (>= 0.4.6) (backend, dhcp)
python-psycopg2 (backend, dhcp)
python-openssl *
python-ipy
python-processing (for DHCP server)
python-cheetah (for web frontend)
hacked version of pydhcplib (included in source tree)
.