Install cloudinit specific files that are loaded into the mime userdata
Partially fixes Issue #48 Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
af451c2074
commit
797ea880d9
@ -16,6 +16,8 @@ include heat/jeos/F17-x86_64-cfntools-jeos.tdl
|
|||||||
include heat/cfntools/cfn-init
|
include heat/cfntools/cfn-init
|
||||||
include heat/cfntools/cfn-hup
|
include heat/cfntools/cfn-hup
|
||||||
include heat/cfntools/cfn-signal
|
include heat/cfntools/cfn-signal
|
||||||
|
include heat/cloudinit/config
|
||||||
|
include heat/cloudinit/part-handler.py
|
||||||
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
|
include heat/db/sqlalchemy/migrate_repo/migrate.cfg
|
||||||
graft etc
|
graft etc
|
||||||
graft docs
|
graft docs
|
||||||
|
9
heat/cloudinit/config
Normal file
9
heat/cloudinit/config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#cloud-config
|
||||||
|
cloud_config_modules:
|
||||||
|
- locale
|
||||||
|
- scripts_user
|
||||||
|
- set_hostname
|
||||||
|
- ssh
|
||||||
|
- timezone
|
||||||
|
- update_etc_hosts
|
||||||
|
- update_hostname
|
14
heat/cloudinit/part-handler.py
Normal file
14
heat/cloudinit/part-handler.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#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()
|
Loading…
x
Reference in New Issue
Block a user