
Change-Id: Ieb82235bd6b436b6716992c1b45698b083d03d86 remove pre-existing chef files before uploading new chef files. having legacy stale chef roles/cookbooks/databags in the knife source directory will result in possible failure of dependency check, so gurantee we have the latest code in that directory. clean installation logs when refresh database. Change-Id: I6609e90e51d8ca3560f1848f2de62e148f0c5b49
18 lines
646 B
Bash
Executable File
18 lines
646 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
service mysqld restart
|
|
/opt/compass/bin/manage_db.py createdb
|
|
echo "You may run '/opt/compass/bin/clean_nodes.sh' to clean nodes on chef server"
|
|
echo "You may run '/opt/compass/bin/clean_clients.sh' to clean clients on chef server"
|
|
echo "you may run '/opt/compass/bin/clean_environments.sh' to clean environments on chef server"
|
|
echo "you may run '/opt/compass/bin/remove_systems.sh' to clean systems on cobbler"
|
|
/opt/compass/bin/clean_installation_logs.py
|
|
service httpd restart
|
|
service rsyslog restart
|
|
service redis restart
|
|
sleep 10
|
|
redis-cli flushall
|
|
service compass-celeryd restart
|
|
service compass-progress-updated restart
|
|
|