X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=swift-storage.yaml;h=7160c14d1d3b29b714d73a51c6fbf61e8deb743e;hb=1db5013abd4b9ab14b254690f2a27d7299957b75;hp=ea032b96a7508a866ccf72192ea9492d53d6b162;hpb=7cdb8ca6b46ee3ef04bc578db587a5329ce67624;p=apex-tripleo-heat-templates.git diff --git a/swift-storage.yaml b/swift-storage.yaml index ea032b96..7160c14d 100644 --- a/swift-storage.yaml +++ b/swift-storage.yaml @@ -1,9 +1,6 @@ heat_template_version: 2014-10-16 description: 'Common Swift Storage Configuration' parameters: - ControllerIP: - default: '' - type: string ExtraConfig: default: {} description: | @@ -64,25 +61,17 @@ parameters: default: 'false' description: Value of mount_check in Swift account/container/object -server.conf type: boolean - NeutronEnableTunnelling: - default: "True" - type: string - NeutronNetworkType: - default: gre - type: string + MinPartHours: + type: number + default: 1 + description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance. PartPower: default: 10 description: Partition Power to use when building Swift rings type: number - Password: - default: unset - description: The password for the swift service account, used by the swift proxy - services. - hidden: true - type: string Replicas: type: number - default: 1 + default: 3 description: How many replicas to use in the swift rings. SnmpdReadonlyUserName: default: ro_snmp_user @@ -107,11 +96,10 @@ resources: swift: hash: { get_input: swift_hash_suffix } part-power: { get_input: swift_part_power } + min-part-hours: { get_input: swift_min_part_hours } + mount-check: { get_input: swift_mount_check } replicas: {get_input: swift_replicas } - service-password: { get_input: swift_password } neutron: - enable_tunnelling: {get_param: NeutronEnableTunnelling} - tenant_network_type: {get_param: NeutronNetworkType} ovs: local_ip: { get_input: neutron_local_ip } SwiftStorage: @@ -120,23 +108,23 @@ resources: image: {get_param: Image} flavor: {get_param: Flavor} key_name: {get_param: KeyName} - user_data_format: SOFTWARE_CONFIG networks: - network: ctlplane - SwiftKeystoneConfig: - type: OS::Heat::StructuredConfig - properties: - config: - keystone: - host: {get_input: keystone_host} - SwiftStorageKeystone: - type: OS::Heat::StructuredDeployment + user_data_format: SOFTWARE_CONFIG + user_data: {get_resource: NodeUserData} + + NodeUserData: + type: OS::TripleO::NodeUserData + + NetworkConfig: + type: OS::TripleO::ObjectStorage::Net::SoftwareConfig + + NetworkDeployment: + type: OS::TripleO::SoftwareDeployment properties: + config: {get_attr: [NetworkConfig, config_id]} server: {get_resource: SwiftStorage} - config: {get_resource: SwiftKeystoneConfig} - signal_transport: NO_SIGNAL - input_values: - keystone_host: {get_param: ControllerIP} + SwiftStorageDeploy: type: OS::Heat::StructuredDeployment properties: @@ -149,7 +137,7 @@ resources: snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword} swift_hash_suffix: {get_param: HashSuffix} swift_mount_check: {get_param: MountCheck} - swift_password: {get_param: Password} + swift_min_part_hours: {get_param: MinPartHours} swift_part_power: {get_param: PartPower} swift_replicas: { get_param: Replicas}