Ask Your Question
0

SoftwareDeployment and Cloud-Init

asked 2015-04-30 03:02:57 -0600

ZJ gravatar image

Hi,

I'm using SoftwareDeployment resources (on Juno release) in my Heat scripts.
As user_data_format in OS::Nova::Server resource I have "SOFTWARE_CONFIG" value.

Is it possible to use resources such like OS::Heat::CloudConfig and OS::Heat::MultipartMime in such case? I tried this but without success. All examples which I found had "RAW" as user_data_format but in such case I can't use SoftwareDeployment functionality (or am I wrong?). I would like cloud-init functionality combined with SoftwareDeployment (e.g. to set "preserve_hostname" or "hostname" value using cloud-config).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-04 04:44:41 -0600

I m not sure if this is answering your requirements/needs but able to use SoftwareConfig with MultipartMime.

For example:

one/two_init: type: OS::Heat::SoftwareConfig properties: config: | #!/bin/sh echo "DO SOMETHING" >> /tmp/one

server_init: type: OS::Heat::MultipartMime properties: parts: - config: {get_resource: one_init} - config: {get_resource: two_init}

server: type: OS::Nova::Server properties: ... user_data_format: RAW user_data: get_resource: server_init ...

And if I remember right I have also used CloudConfig. If its really important to use CloudConfig I will try to find it for you

edit flag offensive delete link more

Comments

Yes this iw working but I want use these resources with "user_data_format: SOFTWARE_CONFIG" instead od "user_data_format: RAW".

ZJ gravatar imageZJ ( 2015-08-18 11:35:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-04-30 03:02:57 -0600

Seen: 222 times

Last updated: Jun 04 '15