root/trunk/INSTALL

Revision 1095, 8.4 KB (checked in by metrot, 8 months ago)

Un seul script install.sh pour Debian et CentOS
En mode devel install.sh pointe sur trunk et plus sur branches/1.x
Bugfix: slapd.conf etait copié dans /root/openldap_config

  • Property svn:keywords set to Date Author Revision Id URL Rev LastChangedRev
Line 
1$Id$
2
3================
41. PREREQUISITES
5================
6
7This is the prerequisites to install a collaborative platform with the PLACO generator.
8
9* a PC 64bits with 1Go RAM, 2 IP addresses in your DNS : one for the administration,
10    and one for the proxy. These addresses may be on the same Ethernet card,
11    or on 2 separate cards
12* at this time, a Linux DEBIAN 5 (Lenny) amd64 version installed (other distributions
13  are planned for the future)
14  (a Debian NetInstall ISO image can be found at :
15    http://cdimage.debian.org/debian-cd/5.0.4/amd64/iso-cd/debian-504-amd64-netinst.iso)
16* 1 network interfaces on this PC :
17  * one (default is eth0) for the platform management : this interface must be plugged
18    on the desired network
19  * you may have one more interface (default is eth1) for the public interface :
20    all the traffic of all the VM will then transit through it ; this interface
21    also must be plugged on the desired network, but it has no need to have an IP
22    address on this host
23  See "5. NETWORK AND DNS REQUIREMENTS" below for more information.
24 
25* an Internet access to install on demand Linux DEBIAN from the mirror sites
26
27If each of these items is validated, go to "2. INSTALLATION" below.
28
29===============
302. INSTALLATION
31===============
32
332 types of installation are possible :
34  - as an end sysadmin : if you want to make an install onto a dedicated host
35    for a production host. In this case, install_debian.sh downloads the lastest stable
36    version, and the PLACO generator expands itself on the plain filesystem :
37      /usr/bin, /usr/lib/placo, /var/placo, /etc/placo
38    For this kind of install, goto 2.a
39   
40  - as a developper : if you want to contribute to the development of the tools.
41    In this case, install_debian.sh downloads the lastest committed version on the trunk,
42    and the PLACO generator is installed into the directory specified in the
43    command line. This directory becomes also a subversion working-copy, so you
44    will be able to commit your work into the central repository of the project.
45    For this kind of install, goto 2.b
46
47-----------------------------------------------------
482.a Install the platform generator as an end sysadmin
49-----------------------------------------------------
50
51* retrieve the lastest stable install script :
52
53  # wget --no-check-certificate -P /tmp \
54https://svn.math.cnrs.fr/placodev/tags/stable/install.sh
55
56* run it :
57
58  # chmod +x /tmp/install.sh
59  # /tmp/install.sh
60
61* reboot the host
62
63* (optional) verify that Domain-0 is running :
64
65  # xm list
66
67* edit configuration file :
68
69  # vi /etc/placo/default.defines
70
71* before the creation of the platform, verify that eth1 is up, and check your configuration :
72
73  # placocheck
74
75* initialize the default platform :
76
77  # placosh init_platform
78
79  note : the output is logged in /var/log/placo/placosh.log.0
80
81At this stage, you have a running minimal platform with a reverse proxy VM, a ldap VM
82and a bdd VM. Now, go to "3. CHECKING"
83
84--------------------------------------------------
852.b Install the platform generator as a developper
86--------------------------------------------------
87
88* If you are a developper of the PLACO project, retrieve the last committed install
89  script :
90 
91  # wget --no-check-certificate -P /tmp \
92           https://svn.math.cnrs.fr/placodev/trunk/install.sh
93
94* run it :
95
96  # chmod +x /tmp/install.sh
97  # /tmp/install.sh -d wc_dir
98
99  where wc_dir is the choosen local svn working-copy directory for the
100  checkout (an absolute path is mandatory).
101  With that, you will be able to write or modify some files, and to commit them in
102  the PLACO subversion repository.
103 
104* reboot the host
105
106* edit configuration file :
107
108  # vi wc_dir/etc/default.defines
109
110  and customize the value of the variables according to your network environment.
111
112* before the creation of the platform, verify that eth0 or eth1 is up, and check
113  your configuration :
114
115  # wc_dir/bin/placocheck
116
117* initialize the default platform :
118
119  # wc_dir/bin/placosh init_platform
120
121  note : the output is logged in /var/log/placo/placosh.log.0
122
123At this stage, you have a running minimal platform with a reverse proxy VM, an ldap VM
124and a bdd (database) VM. Now, go to "3. CHECKING"
125
126===========
1273. CHECKING
128===========
129
130* verify that the 3 VM proxy, ldap and bdd are running :
131  # xm list
132
133* verify that you can connect on them without any password, and then verify that the
134  external network is reachable :
135
136  # ssh proxy.default
137  proxy:~# ping -c 3 placodev.mathrice.fr
138  proxy:~# logout
139  # ssh ldap.default
140  ldap:~# ping  -c 3 placodev.mathrice.fr
141  ldap:~# logout
142  # ssh bdd.default
143  bdd:~# ping  -c 3 placodev.mathrice.fr
144  bdd:~# logout
145
146If everything is allright, you are ready to play ! You can now add some new
147VM on the platform.
148
149===================================
1504. ADD NEW SERVICES ON THE PLATFORM
151===================================
152
153At this time, you are the 3 mandatory VM in use : proxy, ldap and bdd.
154To see what others VM provides the PLACO generator, type placosh (or
155wc_dir/bin/placosh in devel mode) and at the prompt :
156
157  placosh> ls install*
158
159To add a new VM :
160  - create a .defines file for that VM in ~/etc/default.defines (you can pick
161    one from the ~/etc/default-dist directory)
162  - run the corresponding install* script from the placo shell, for example :
163
164      placosh> install_xxx
165
166  note : the output is logged in /var/log/placo/placosh.log.0
167
168At this time, the available VM are :
169  * web_hosting: a APACHE server (providing virtual hosts, possibly
170                 with CMS, and DAV access)
171  * svn: a subversion server (providing versioning repositories)
172  * list: a SYMPA server (providing mailling lists management)
173
174--------------------------
1754.a add the web hosting VM
176--------------------------
177
178To add the web_hosting VM :
179  - create a web.defines file for that VM in ~/etc/default.defines, or copy
180    (~/etc/default-dist/web.defines into ~/etc/default)
181  - run the install_web_hosting script from the placo shell :
182
183      # ~/bin/placosh
184      placosh> install_web_hosting
185
186  - then verify that the new VM is running :
187
188      # xm list
189
190--------------------------
1914.b add the lists VM
192--------------------------
193
194To add the list VM :
195  - create a lists.defines file for that VM in ~/etc/default.defines, or copy
196    (~/etc/default-dist/lists.defines into ~/etc/default)
197  - run the install_list script from the placo shell :
198
199      # ~/bin/placosh
200      placosh> install_list
201
202  - then verify that the new VM is running :
203
204      # xm list
205
206--------------------------
2074.c add the svn VM
208--------------------------
209
210To add the svn VM :
211  - create a svn.defines file for that VM in ~/etc/default.defines, or copy
212    (~/etc/default-dist/svn.defines into ~/etc/default)
213  - run the install_svn script from the placo shell :
214
215      # ~/bin/placosh
216      placosh> install_svn
217
218  - then verify that the new VM is running :
219
220      # xm list
221
222===============================
2235. NETWORK AND DNS REQUIREMENTS
224===============================
2252 network interfaces are required on the PC :
226  * one (default is eth0), for the platform management access
227      This is a private access for the sysadmin team to the host. You must give to it
228      an IP address. It is possible to use a local restricted network, but Internet must
229      be reachable to install on-the-fly the platform
230  * one (default is eth1), for the public access of the platform
231      A virtual bridge is plugged on this interface. This interface must be up, but
232      no IP address mut be associated on it, because the public IP address of the platform
233      is owned by the proxy virtual machine (VM), which is also plugged on the same
234      virtual bridge.
235      The whole public traffic of all the VM transits by the proxy public interface.
236      So this interface must be plugged on the right network (typically a public network)
237      to provide a complete access to the platform customers.
238
239A hand on a DNS server are also needed :
240  * the canonical name of the platform must be inserted as an A record on the current
241    domain name, and must be associated to the public IP address owned by the proxy
242  * each alias needed by the HTTP virtual hosts must be defined on the DNS tables as
243    a CNAME record of the canonical name
244
245You can use placocheck command to verify tha each domain name defined in the defintion
246file can be resolved or not.
247
248=============
2496. MONITORING
250=============
251
252To overview the status of the platform, go to with your web browser onto the
253management IP of the host.
Note: See TracBrowser for help on using the browser.