Heat and NAS mount. Create NAS and mount it

asked 2015-01-14 09:39:01 -0500

job gravatar image

Hi:

Is there a way to get the IP from an NAS instance server defined in the heat template and use it to mount the nas point in other instaces defined also later on in the template?

I tried with str_replace to get the IP of the nas server and cloud-init (mounts) to configure the resources where the nas share should be mounted but had no success:

mounts:
    - [ "<nas_server_IP_recently_created_resource>:/share", "/media/nas", "nfs", "nodiratime,noatime,rsize=8192,wsize=8192", "0", "0" ]

Thanks,

edit retag flag offensive close merge delete