This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# setup the drives | |
# | |
wget breu.org/filedrop/MegaCli_Linux.zip | |
apt-get -y install unzip | |
unzip -L MegaCli_Linux.zip | |
dpkg -i megacli_linux/megacli_8.07.08-1_all.deb | |
# Get count of adapters | |
/opt/MegaRAID/MegaCli/MegaCli64 -adpCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attribute Precedence | |
Attributes are always applied by the chef-client in the following order: | |
1. A default attribute located in a cookbook attribute file | |
2. A default attribute located in a recipe | |
3. A default attribute located in an environment | |
4. A default attribute located in role | |
5. A force_default attribute located in a cookbook attribute file | |
6. A force_default attribute located in a recipe | |
7. A normal attribute located in a cookbook attribute file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/attributes/default.rb b/attributes/default.rb | |
index 06bae01..fb943ff 100644 | |
--- a/attributes/default.rb | |
+++ b/attributes/default.rb | |
@@ -60,6 +60,7 @@ default["cinder"]["storage"]["lvm"]["mirrors"] = 0 | |
default["cinder"]["storage"]["lvm"]["config"] = "/etc/lvm/lvm.conf" # Path of LVM config file | |
default["cinder"]["storage"]["lvm"]["pool_size"] = "None" | |
default["cinder"]["storage"]["lvm"]["volume_driver"] = "cinder.volume.drivers.lvm.LVMISCSIDriver" | |
+default["cinder"]["storage"]["lvm"]["volume_backend_name"] = "cinder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from swift.common.ring import Ring | |
from swift.common.utils import hash_path | |
import random | |
import locale | |
locale.setlocale(locale.LC_ALL, '') | |
ring_file = "/home/rack/object.ring.gz" |
OlderNewer