Ask Your Question
0

can User data will get execute at the Boot with out cloud Init

asked 2016-04-27 04:12:33 -0500

anonymous user

Anonymous

can User data will get execute at the Boot with out cloud Init ie: Normal Redhat 6.4 QCOW2 Image

edit retag flag offensive close merge delete

Comments

Is your intend actually hide --user-data ? Because anyway you would be forced to hack original qcow2 image uploaded to glance. But easiest way is to add to image another #cloud-config script. What will actually only hide invoking cloud-init to make something what you need to be done in snaky way.

dbaxps gravatar imagedbaxps ( 2016-04-27 05:07:01 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-19 14:47:13 -0500

zaneb gravatar image

No you can't, it isn't OpenStack's job to log in to your VM and run commands. However the RHEL "KVM Guest Image" is designed specifically for running as a virtualisation guest and has cloud-init enabled. As far as I can tell, the first version of this shipped was RHEL 6.5.

edit flag offensive delete link more
0

answered 2016-05-19 15:02:55 -0500

rmelton gravatar image

I have used the following Heat template to send cloud-init data to Fedora 23 and Centos 6 (on openstack kilo). The OS::Heat::CloudConfig stuff is passed to nova through the OS::Nova::Server user_data which is also in the template.

  myconfig:
    type: "OS::Heat::CloudConfig"
    properties:
      cloud_config:
        package_update: true
        package_upgrade: true
        packages:
        - git
        users:
        - default
        - name: user01
          groups: 
          lock-passwd: false
          passwd: 's0oC/Amo1kHG6' 
          shell: /bin/bash
          sudo: "ALL=(ALL) NOPASSWD:ALL"
edit flag offensive delete link more

Comments

Right, but the question was about an image that doesn't have cloud-init installed. If cloud-init is not there to read this data then pushing it to the server is moot.

zaneb gravatar imagezaneb ( 2016-05-20 09:15:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-27 04:12:33 -0500

Seen: 253 times

Last updated: May 19 '16