diff options
Diffstat (limited to 'clusters/example-swift-storage-cluster.morph')
-rw-r--r-- | clusters/example-swift-storage-cluster.morph | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/clusters/example-swift-storage-cluster.morph b/clusters/example-swift-storage-cluster.morph new file mode 100644 index 00000000..ba4bda76 --- /dev/null +++ b/clusters/example-swift-storage-cluster.morph @@ -0,0 +1,46 @@ +name: example-swift-storage-cluster +kind: cluster +systems: +- morph: systems/devel-system-x86_64-generic.morph + deploy-defaults: + INSTALL_FILES: swift/manifest + + NIC_CONFIG: network=foobar + NETWORK_CONFIG: ens3:static,address=192.168.100.42,netmask=255.255.255.0 + MANAGEMENT_INTERFACE_IP_ADDRESS: 192.168.100.42 + + SWIFT_PART_POWER: 10 + SWIFT_REPLICAS: 3 + SWIFT_MIN_PART_HOURS: 1 + + SWIFT_STORAGE_DEVICES: [{ ip: 192.168.100.42, device: sdb, weight: 100 }, + { ip: 192.168.100.42, device: sdc, weight: 100 }, + { ip: 192.168.100.42, device: sdd, weight: 100 }] + + # This value can be any random string or number + # but each node in your swift cluster must have the same value + 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: <insert hash prefix here> + SWIFT_HASH_PATH_SUFFIX: <insert hash suffix here> + + FSTAB_SDB: /dev/sdb /srv/node/sdb xfs defaults,user,rw 0 0 + FSTAB_SDC: /dev/sdc /srv/node/sdc xfs defaults,user,rw 0 0 + FSTAB_SDD: /dev/sdd /srv/node/sdd xfs defaults,user,rw 0 0 + + ATTACH_DISKS: /dev/sdb:/dev/sdc:/dev/sdd + deploy: + node0: + type: kvm + location: kvm+ssh://user@host/swift-storage-0/home/user/swift-storage-0.img + DISK_SIZE: 10G + RAM_SIZE: 1G + VCPUS: 1 + HOSTNAME: swift-storage-0 |