Linux模板配置文件样例
<p>在Linux服务器中创建名为pacloud的json文件并粘贴以下内容。</p>
<table border="1" cellpadding="1" cellspacing="1" style="width:551px">
<tbody>
<tr>
<td style="background-color:#ededed; width:543px">
<p>{</p>
<p> "builders": [</p>
<p> { </p>
<p> "type": "pacloud",</p>
<p> "communicator": "ssh",</p>
<p> "ssh_username": "root",</p>
<p> "ssh_password": "xxxxxxxx",</p>
<p> "ssh_timeout": "5h",</p>
<p> "access_key_id":"xxxxxxxx",</p>
<p> "access_key_secret":"xxxxxxxx",</p>
<p> "timeout":10,</p>
<p> "debug":true,</p>
<p> "image_name":"linux-test",</p>
<p> "source_image_id":"Image-2N5XOLDfUb",</p>
<p> "zone_name":"HKA"</p>
<p> }</p>
<p> ],</p>
<p> </p>
<p> "provisioners": [{</p>
<p> "type": "shell",</p>
<p> "inline": [<br />
"sleep 30",</p>
<p> "yum install redis.x86_64 -y"</p>
<p> ]</p>
<p> }]</p>
<p>}</p>
</td>
</tr>
</tbody>
</table>
<p> </p>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!