From 723db1317cd62a8772c764847c80a339eae4c03f Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 2 Apr 2015 09:52:18 -0400 Subject: Enable passing optional first-boot user-data Currently all the OS::Nova::Server resource created don't pass any user-data. It's possible to pass user-data as well as using heat SoftwareConfig/SoftwareDeployment resources, and this can be useful when you have simple "first boot" tasks which are possible either via cloud-init, or via simple run-once scripts. This enables passing such data by implementing a new provider resource OS::TripleO::NodeUserData, which defaults to passing an empty mime archive (thus it's a no-op). An example of non no-op usage is also provided. Change-Id: Id0caba69768630e3a10439ba1fc2547a609c0cfe --- cinder-storage.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cinder-storage.yaml') diff --git a/cinder-storage.yaml b/cinder-storage.yaml index 7eab89a6..24739115 100644 --- a/cinder-storage.yaml +++ b/cinder-storage.yaml @@ -103,9 +103,14 @@ resources: {get_param: Image} flavor: {get_param: Flavor} key_name: {get_param: KeyName} - user_data_format: SOFTWARE_CONFIG networks: - network: ctlplane + user_data_format: SOFTWARE_CONFIG + user_data: {get_resource: NodeUserData} + + NodeUserData: + type: OS::TripleO::NodeUserData + BlockStorageDeployment: type: OS::Heat::StructuredDeployment properties: -- cgit 1.2.3-korg