summaryrefslogtreecommitdiff
path: root/clusters/openstack-cluster.morph
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-17 08:12:00 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-04-10 21:22:05 +0000
commite528f039d3dabb2f677ed997adb1017cf72f35a0 (patch)
treead4dd0f6a8ce9058fb9360ae5445d687812e1fee /clusters/openstack-cluster.morph
parent7559282bd18274c4235572bdd51a7dde5fee1401 (diff)
downloaddefinitions-e528f039d3dabb2f677ed997adb1017cf72f35a0.tar.gz
Add configuration for swift controller nodebaserock/richardipsum/openstack-swift-act-II-scene-II
This adds configuration needed to deploy a swift proxy-server that uses keystone for authentication. Change-Id: I96b11e0bf88939dc607ec4b6aa1fd16c6be8048f
Diffstat (limited to 'clusters/openstack-cluster.morph')
-rw-r--r--clusters/openstack-cluster.morph53
1 files changed, 44 insertions, 9 deletions
diff --git a/clusters/openstack-cluster.morph b/clusters/openstack-cluster.morph
index c869e2e7..26849d3f 100644
--- a/clusters/openstack-cluster.morph
+++ b/clusters/openstack-cluster.morph
@@ -4,14 +4,49 @@ systems:
- morph: systems/openstack-server.morph
deploy:
release:
- type: rawdisk
- location: baserock-xx-openstack-system-x86_64.img
- # type: kvm
- # location: kvm+ssh://franred@refinery.ducie.codethink.co.uk/franred-openstack-test/home/franred/openstack.img
- DISK_SIZE: 5G
- RAM_SIZE: 1G
+ type: kvm
+ location: kvm+ssh://user@host/openstack-server/home/user/openstack-server.img
+ DISK_SIZE: 10G
+ RAM_SIZE: 3G
VCPUS: 1
- INSTALL_FILES: openstack/manifest
+ INSTALL_FILES: openstack/manifest swift/manifest
+
+ #########################################################################
+ ## Swift config options
+ #########################################################################
+
+ SWIFT_CONTROLLER: True
+
+ SWIFT_ADMIN_PASSWORD: insecure
+
+ SWIFT_PART_POWER: 10
+ SWIFT_REPLICAS: 3
+ SWIFT_MIN_PART_HOURS: 1
+
+ SWIFT_STORAGE_DEVICES: [{ ip: <storage node 0 management ip>, device: sdb, weight: 100 },
+ { ip: <storage node 0 management ip>, device: sdc, weight: 100 },
+ { ip: <storage node 0 management ip>, device: sdd, weight: 100 },
+
+ { ip: <storage node 1 management ip>, device: sdb, weight: 100 },
+ { ip: <storage node 1 management ip>, device: sdc, weight: 100 },
+ { ip: <storage node 1 management ip>, device: sdd, weight: 100 }]
+
+ # This value can be any random string or number
+ # but each node in your swift cluster must have the same values
+ SWIFT_REBALANCE_SEED: 3828
+
+ # NOTE: Replace SWIFT_HASH_PATH_PREFIX and SWIFT_HASH_PATH_SUFFIX
+ # with your own unique values,
+ #
+ # `openssl rand -hex 10' can be used to generate unique values
+ #
+ # These values should be kept secret, do not lose them.
+ #
+ SWIFT_HASH_PATH_PREFIX: 041fc210e4e1d333ce1d
+ SWIFT_HASH_PATH_SUFFIX: 4d6f5362a356dda7fb7d
+
+ #########################################################################
+
HOSTNAME: onenode
RABBITMQ_HOST: onenode
RABBITMQ_PORT: 5672
@@ -22,7 +57,7 @@ systems:
KEYSTONE_DB_USER: keystoneDB
KEYSTONE_DB_PASSWORD: veryinsecure
CONTROLLER_HOST_ADDRESS: onenode
- MANAGEMENT_INTERFACE_IP_ADDRESS: 10.24.1.46
+ MANAGEMENT_INTERFACE_IP_ADDRESS: <management ip>
GLANCE_SERVICE_USER: glance
GLANCE_SERVICE_PASSWORD: veryinsecure
GLANCE_DB_USER: glanceDB
@@ -42,4 +77,4 @@ systems:
NEUTRON_DB_USER: neutronDB
NEUTRON_DB_PASSWORD: veryinsecure
METADATA_PROXY_SHARED_SECRET: novaneutronmetasecret
- HOSTS_ONENODE: 10.24.1.46 onenode
+ HOSTS_ONENODE: <management ip> onenode