diff options
author | Steven Hardy <shardy@redhat.com> | 2015-04-02 09:52:18 -0400 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2015-04-24 10:18:31 +0100 |
commit | 723db1317cd62a8772c764847c80a339eae4c03f (patch) | |
tree | dc1161fb6db10d4317702366c9c903d5cd5c14c0 /nagios3.yaml | |
parent | 1781c64bfc9cc929355b28344d0e34b2347e6ffe (diff) |
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
Diffstat (limited to 'nagios3.yaml')
-rw-r--r-- | nagios3.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nagios3.yaml b/nagios3.yaml index 0db22b8b..e2ba8ccf 100644 --- a/nagios3.yaml +++ b/nagios3.yaml @@ -105,10 +105,15 @@ resources: flavor: { get_param: flavor } image: { get_param: image } key_name: { get_param: key_name } - user_data_format: SOFTWARE_CONFIG networks: - network: { get_param: server_network } port: { get_resource: nagios_net_port } + user_data_format: SOFTWARE_CONFIG + user_data: {get_resource: NodeUserData} + + NodeUserData: + type: OS::TripleO::NodeUserData + nagios_floating_ip: type: OS::Neutron::FloatingIP properties: |