root/trunk/doc/unwind_init_platform.txt

Revision 1094, 4.7 KB (checked in by metrot, 11 months ago)

Integration de la branches/1.x dans le trunk

  • Property svn:keywords set to Date Author Revision Id URL Rev LastChangedRev
Line 
1$Id$
2init_platform unwind
3
4| toplevel ident
5        | middleware ident
6                | template ident
7               
8init_platform
9------         
10
11        config_bridges.sh
12                # Create the external bridge
13                placomgr --rexec create_external_bridge.sh -m localhost
14
15                # Add a new internal bridge for the new platform
16                placomgr --lexec create_internal_bridge.sh -m localhost
17
18        #Iptables for host
19        config_iptables.sh -m localhost
20                #Put the new iptables script
21                placomgr --put iptables $*
22                #Reload the new iptables rules
23                placomgr --rexec config_iptables.sh $*
24               
25        #Install ntp service on the host for VMs
26        install_ntpd.sh -m localhost
27                placomgr --rexec install_ntpd.sh $*
28               
29        config_ntpd.sh -m localhost
30                placomgr --put ntp_conf $*
31                placomgr --rexec restart_ntpd.sh $*
32               
33        #Install smtp service on the host for VMs
34        install_smtpd.sh -m localhost
35                placomgr --lexec install_postfix.sh $*
36        config_smtpd.sh -m localhost
37                placomgr --lexec maps_postfix_host.sh $*
38                placomgr --put  main_postfix_host $*
39                placomgr --lexec restart_postfix.sh $*
40
41        # Install monitoring system on localhost
42        install_apache_host.sh -m localhost
43                placomgr --lexec install_apache_monitoring.sh $*
44                placomgr --put ports_monitoring $*
45                placomgr --put apache_status.conf $*
46                placomgr --lexec restart_apache.sh $*
47
48        install_munin_host.sh -m localhost
49                placomgr --lexec install_munin_monitoring.sh $*
50                placomgr --lexec muninconf.sh $*
51                placomgr --lexec restart_munin_node.sh $*
52               
53        install_hobbit_host.sh -m localhost
54                placomgr --lexec install_hobbit_client.sh $*
55                placomgr --lexec install_hobbit_server.sh $*
56                placomgr --put hobbit_bb-hosts $*
57                placomgr --put vh4monitoring $*
58                placomgr --lexec restart_apache.sh $*
59
60        # Config logsysteme
61        config_log_host.sh -m localhost
62                placomgr --put config_log_host $*
63                placomgr --rexec restart_log.sh $*
64
65        ### Base VM (for later cloning) ###
66
67        create_vmbase.sh
68                placomgr --lexec create_vmbase.sh -m localhost
69
70### Required VM ###
71
72#Install VM proxy
73install_proxy
74        create_vm.sh -m proxy
75                #Reload /etc/hosts on localhost
76                placomgr --lexec hosts.sh -m localhost
77
78                #Create the new domaine in xen (image, installation os and configuration)
79                placomgr -lexec create_vm.sh $*
80
81                #Reload /etc/hosts on localhost because xen has changed
82                placomgr --lexec hosts.sh -m localhost
83
84                #Config save for this VM
85                placomgr --lexec config_save.sh $*
86
87                #Init the VM
88                placomgr -lexec init_vm.sh $*
89
90                #Start the new VM
91                placomgr -lexec start_vm.sh $*
92
93                #Wait 10 second (start VM)
94                sleep 10
95
96                #Fix hostname
97                placomgr -rexec config_hostname.sh $*
98                #Reload network configuration
99                placomgr -rexec config_network.sh $*
100                #Config iptables
101                config_iptables.sh $*
102                placomgr -rexec ipforward.sh $*
103
104                #Put the new /etc/hosts on proxy (with the new VM)
105                placomgr --put hosts -m proxy
106                #Put /etc/hosts on the new VM
107                placomgr --put hosts $*
108
109                # new log config
110                placomgr --rexec config_log_vm.sh $*
111
112                # Mail
113                placomgr --rexec install_postfix.sh $*
114                placomgr --rexec maps_postfix_vm.sh $*
115                placomgr --rexec restart_postfix.sh $*
116       
117        install_reverse_proxy.sh -m proxy
118                #install apache with reverse proxy module
119                placomgr --rexec install_apache_proxy.sh $*
120
121                #enable apache monitoring trough munin-node
122                placomgr --put apache_status.conf $*
123
124                #set listen interfaces
125                placomgr --put ports_reverse_proxy $*
126
127                placomgr --rexec restart_apache.sh $*   
128       
129config_proxy
130        config_iptables.sh -m proxy
131                #Put the new iptables script
132                placomgr --put iptables $*
133                #Reload the new iptables rules
134                placomgr --rexec config_iptables.sh $*
135       
136        config_http_reverse_proxy.sh -m proxy
137                #Put the /etc/hosts on $* with vh address
138                placomgr --put hosts $*
139                 
140                #Put the VirtualHost configuration in apache config
141                placomgr --put vh4reverse_proxy $*
142                placomgr --put vh_spip4reverse_proxy $*
143                placomgr --put vh_svn4reverse_proxy $*
144                placomgr --put vh_sympa4reverse_proxy $*
145                placomgr --put vh_horde4reverse_proxy $*
146                placomgr --put vh_static4reverse_proxy $*
147                #Create a log directory for each vh
148                placomgr --rexec mkdir_vh_logdir.sh $*
149                #Restart apache to reload the new config
150                placomgr --rexec restart_apache.sh $*
151       
152        monitoring_vm.sh -m proxy
153                # munin-node
154                placomgr --rexec install_munin_node.sh $*
155                placomgr --put munin-node.conf $*
156                placomgr --rexec restart_munin_node.sh $*
157
158                # hobbit
159                placomgr --rexec install_hobbit_client.sh $*
160
161                # change config on localhost to see new vm in hobbit and munin
162                placomgr --lexec muninconf.sh -m localhost
163                placomgr --put hobbit_bb-hosts -m localhost
164               
165#Install VM ldap
166install_ldap
167        create_vm.sh -m ldap
168                ...
169        install_ldap.sh -m ldap
170                placomgr --put config_initialtree_slapd $*
171                placomgr --rexec install_slapd.sh $*
172       
173        monitoring_vm.sh -m ldap
174                ...
175
176#Install bdd
177install_bdd
178        create_vm.sh -m bdd
179                ...
180               
181        install_mysql.sh -m bdd
182                placomgr --rexec install_mysql.sh $*
183       
184        monitoring_vm.sh -m bdd
185                ...
Note: See TracBrowser for help on using the browser.