Remove more references to ubuntu (for now)
This commit is contained in:
parent
e3f4a1c30b
commit
2b5c9281ad
@ -9,8 +9,9 @@ apache_group: "$(auto:user)"
|
|||||||
# What user will apache be serving from.
|
# What user will apache be serving from.
|
||||||
#
|
#
|
||||||
# Root will typically not work (for apache on most distros)
|
# Root will typically not work (for apache on most distros)
|
||||||
# sudo adduser <username> then sudo adduser <username> admin will be what you want to set this up (in ubuntu)
|
# sudo adduser <username> then sudo adduser <username> admin will be what you want to set this up
|
||||||
# I typically use user "horizon" for ubuntu and the runtime user (who will have sudo access) for RHEL.
|
#
|
||||||
|
# It will default to the running user if not provided...
|
||||||
apache_user: "$(auto:user)"
|
apache_user: "$(auto:user)"
|
||||||
|
|
||||||
# Port horizon should run on
|
# Port horizon should run on
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
Features
|
Features
|
||||||
========
|
========
|
||||||
|
|
||||||
- Multi distribution *actions* via a single tool
|
|
||||||
- A set of configuration files (in yaml format) that shows common/component/distribution configurations
|
- A set of configuration files (in yaml format) that shows common/component/distribution configurations
|
||||||
- Supports the following *actions* on the various `OpenStack`_ components.
|
- Supports the following *actions* on the various `OpenStack`_ components.
|
||||||
|
|
||||||
|
@ -13,45 +13,3 @@ Mysql user denied
|
|||||||
|
|
||||||
This seems common and can be fixed by running one of the steps at
|
This seems common and can be fixed by running one of the steps at
|
||||||
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
|
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
|
||||||
|
|
||||||
Mysql unknown instance
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
This seems to happen sometimes with the following exception:
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
ProcessExecutionError: None
|
|
||||||
Command: service mysql restart
|
|
||||||
Exit code: 1
|
|
||||||
Stdout: ''
|
|
||||||
Stderr: 'restart: Unknown instance: \n'
|
|
||||||
|
|
||||||
|
|
||||||
To resolve this the following seems to work:
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
MYSQL_PKGS=`sudo dpkg --get-selections | grep mysql | cut -f 1`
|
|
||||||
echo $MYSQL_PKGS
|
|
||||||
sudo apt-get remove --purge $MYSQL_PKGS
|
|
||||||
|
|
||||||
|
|
||||||
Horizon dead on start
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
If you get the following (when starting *horizon*) in ubuntu 11.10:
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
.: 51: Can't open /etc/apache2/envvars
|
|
||||||
|
|
||||||
Run:
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
APACHE_PKGS=`sudo dpkg --get-selections | grep apache | cut -f 1`
|
|
||||||
echo $APACHE_PKGS
|
|
||||||
sudo apt-get remove --purge $APACHE_PKGS
|
|
||||||
|
|
||||||
Then stop and uninstall and install to resolve this.
|
|
||||||
|
37
smithy
37
smithy
@ -81,26 +81,6 @@ EOF
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
bootstrap_ub()
|
|
||||||
{
|
|
||||||
echo "Bootstrapping Ubuntu: $1"
|
|
||||||
echo "Please wait..."
|
|
||||||
echo "Installing needed distribution dependencies:"
|
|
||||||
pkgs="gcc git pep8 pylint python python-dev python-iniparse"
|
|
||||||
pkgs="$pkgs python-pip python-progressbar python-yaml python-cheetah python-iso8601"
|
|
||||||
apt-get install -y $pkgs
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
echo "Installing needed pypi dependencies:"
|
|
||||||
pip install -U -I netifaces termcolor
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
load_rc_files()
|
load_rc_files()
|
||||||
{
|
{
|
||||||
for i in `ls *.rc 2>/dev/null`; do
|
for i in `ls *.rc 2>/dev/null`; do
|
||||||
@ -150,23 +130,6 @@ if [[ "$TYPE" =~ "Red Hat Enterprise Linux Server" ]]; then
|
|||||||
echo "Bootstrapping RHEL $RH_VER failed."
|
echo "Bootstrapping RHEL $RH_VER failed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ "$TYPE" =~ "Ubuntu" ]]; then
|
|
||||||
UB_VER=$(lsb_release -r | cut -f 2)
|
|
||||||
BC_OK=$(echo "$UB_VER < 11.10" | bc)
|
|
||||||
if [ "$BC_OK" == "1" ]; then
|
|
||||||
echo "This script must be ran on Ubuntu 11.10+ and not Ubuntu $UB_VER."
|
|
||||||
puke
|
|
||||||
fi
|
|
||||||
bootstrap_ub $UB_VER
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
for i in $BOOT_FILES; do
|
|
||||||
echo "$VER" > $i
|
|
||||||
done
|
|
||||||
run_smithy
|
|
||||||
else
|
|
||||||
echo "Bootstrapping Ubuntu $UB_VER failed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "Anvil has not been tested on distribution '$TYPE'"
|
echo "Anvil has not been tested on distribution '$TYPE'"
|
||||||
puke
|
puke
|
||||||
|
Loading…
Reference in New Issue
Block a user