Due to bugs in v2 driver, reverting to v1
[apex-tripleo-heat-templates.git] / hosts-config.yaml
index df0addf..5a21171 100644 (file)
@@ -1,21 +1,25 @@
-heat_template_version: 2016-10-14
+heat_template_version: ocata
 description: 'All Hosts Config'
 
 parameters:
   hosts:
-    type: comma_delimited_list
+    type: string
 
 resources:
 
   hostsConfigImpl:
-    type: OS::Heat::StructuredConfig
+    type: OS::Heat::SoftwareConfig
     properties:
-      group: os-apply-config
-      config:
-        hosts:
-          list_join:
-          - "\n"
-          - {get_param: hosts}
+      group: script
+      inputs:
+        - name: hosts
+          default:
+            list_join:
+              - ' '
+              - str_split:
+                - '\n'
+                - {get_param: hosts}
+      config: {get_file: scripts/hosts-config.sh}
 
 outputs:
   config_id:
@@ -28,3 +32,6 @@ outputs:
       hostname-based access to the deployed nodes (useful for testing without
       setting up a DNS).
     value: {get_attr: [hostsConfigImpl, config, hosts]}
+  OS::stack_id:
+    description: The ID of the hostsConfigImpl resource.
+    value: {get_resource: hostsConfigImpl}