<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi</p>
<p><br>
</p>
<p>I've setup an small lab based on Liberty (FUEL 8.0), and started
to test some heat-templates:</p>
<p><font size="-1"><i>git clone
<a class="moz-txt-link-freetext" href="https://github.com/openstack/heat-templates.git">https://github.com/openstack/heat-templates.git</a></i></font><br>
</p>
<p>I've detected that all resources type "OS::Heat::SoftwareConfig"
which have references to external files like "config: { get_file:
db_install.sh }" aren't accepted by the heat server with an error
related with JSON:<br>
</p>
<p><font size="-1"><i>[user1@linux wordpress]$openstack
orchestration template validate -t
WordPress_software-config_2-instances.yaml </i><i><br>
</i><i>b"#!/bin/bash -v\n\nyum -y install mariadb
mariadb-server\ntouch /var/log/mariadb/mariadb.log\nchown
mysql.mysql /var/log/mariadb/mariadb.log\nsystemctl start
mariadb.service\n\n# Setup MySQL root password and create a
user\nmysqladmin -u root password $db_rootpassword\ncat
<< EOF | mysql -u root
--password=$db_rootpassword\nCREATE DATABASE $db_name;\nGRANT
ALL PRIVILEGES ON $db_name.* TO '$db_user'@'%'\nIDENTIFIED BY
'$db_password';\nFLUSH PRIVILEGES;\nEXIT\nEOF\n" is not JSON
serializable</i></font></p>
<p><br>
It looks like the engine isn't able to serialize the content of
the referenced files.....<br>
</p>
<p>Any ideas? Thanks in advance</p>
<p>J.<br>
</p>
</body>
</html>