Partially fixes Issue #48
Signed-off-by: Steven Dake <sdake@redhat.com>
include heat/cfntools/cfn-init
include heat/cfntools/cfn-hup
include heat/cfntools/cfn-signal
+include heat/cloudinit/config
+include heat/cloudinit/part-handler.py
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
graft etc
graft docs
--- /dev/null
+#cloud-config
+cloud_config_modules:
+ - locale
+ - scripts_user
+ - set_hostname
+ - ssh
+ - timezone
+ - update_etc_hosts
+ - update_hostname
--- /dev/null
+#part-handler
+def list_types():
+ return(["text/x-cfninitdata"])
+
+def handle_part(data,ctype,filename,payload):
+ if ctype == "__begin__":
+ return
+ if ctype == "__end__":
+ return
+
+ if ctype == 'text/x-cfninitdata':
+ f = open('/var/lib/cloud/data/%s' % filename, 'w')
+ f.write(payload)
+ f.close()