Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maricaantonacci committed Sep 6, 2017
1 parent 0afb874 commit 86f4d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions artifacts/mesos/spark_mesos_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
pre_tasks:
- set_fact: spark_mesos_executor_memory="{{ spark_mesos_executor_mem | regex_replace(' +(.*)B', '\\1') | lower() }}"
- set_fact: spark_mesos_driver_memory="{{ spark_mesos_driver_mem | regex_replace(' +(.*)B', '\\1') | lower() }}"
- set_fact: spark_mesos_hdfs_uri="{{ (spark_hdfs_uri == 'None' ) | ternary('', spark_hdfs_uri) }}"
- set_fact: spark_mesos_swift_auth_url="{{ (spark_swift_auth_url == 'None' ) | ternary('', spark_swift_auth_url) }}"
roles:
- role: indigo-dc.spark-mesos
6 changes: 3 additions & 3 deletions custom_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1287,12 +1287,12 @@ node_types:
interfaces:
Standard:
create:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/spark_mesos_setup.yml
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/fix_spark_default_values/artifacts/mesos/spark_mesos_setup.yml
inputs:
marathon_password: { get_property: [ SELF, marathon_password ] }
zookeeper_peers: { get_property: [ SELF, zookeeper_peers ] }
spark_mesos_hdfs_uri: { get_property: [ SELF, spark_hdfs_uri ] }
spark_mesos_swift_auth_url: { get_property: [ SELF, spark_swift_auth_url ] }
spark_hdfs_uri: { get_property: [ SELF, spark_hdfs_uri ] }
spark_swift_auth_url: { get_property: [ SELF, spark_swift_auth_url ] }
spark_mesos_swift_http_port: { get_property: [ SELF, spark_swift_http_port ] }
spark_mesos_swift_region: { get_property: [ SELF, spark_swift_region ] }
spark_mesos_swift_tenant: { get_property: [ SELF, spark_swift_tenant ] }
Expand Down

0 comments on commit 86f4d80

Please sign in to comment.