Configure NTP for overcloud compute
authorDan Prince <dprince@redhat.com>
Fri, 18 Apr 2014 21:04:54 +0000 (17:04 -0400)
committerDan Prince <dprince@redhat.com>
Fri, 2 May 2014 23:51:14 +0000 (19:51 -0400)
Updates the overcloud nova-compute templates so that
the NTP server is properly configured.

Change-Id: I4fc407153da5e031dcf5e5e5e1b3b74d932dba45
Partial-bug: #1309677

nova-compute-config.yaml
nova-compute-instance.yaml

index 02d8e00..f54ee17 100644 (file)
@@ -45,6 +45,9 @@ Resources:
           base_image_id: {get_input: nova_image}
           live_update_image_id: {get_input: live_update_compute_image}
         completion-signal: {get_input: deploy_signal_id}
+        ntp:
+          servers:
+              - {server: {get_input: ntp_server}, fudge: "stratum 0"}
   NovaComputePassthrough:
     Type: OS::Heat::StructuredConfig
     Properties:
index 71e47cc..bdd5a9c 100644 (file)
@@ -58,6 +58,9 @@ Parameters:
   NovaImage:
     Type: String
     Default: overcloud-compute
+  NtpServer:
+    Type: String
+    Default: ''
   KeystoneHost:
     Type: String
   NeutronFlatNetworks:
@@ -200,6 +203,7 @@ Resources:
         live_update_tenant_name: {Ref: LiveUpdateTenantName}
         nova_image: {Ref: NovaImage}
         live_update_image_id: {Ref: LiveUpdateComputeImage}
+        ntp_server: {Ref: NtpServer}
   NovaCompute0Passthrough:
     Type: OS::Heat::StructuredDeployment
     Properties: