-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud_init does not set the hostname of password for newly deployed VM #48
Comments
Thanks for the report will look into it. |
Hi, my task: - ovirt_vm:
auth: "{{ ovirt_auth }}"
name: test4
template: test12
cluster: Default
cloud_init_persist: True
cloud_init:
host_name: "test"
root_password: "test"
custom_script: |
write_files:
- content: |
Hello, world!
path: /tmp/greeting.txt
permissions: '0644' |
Martin.
Thanks for checking this out.
Can you please instruct me on how I access the newer versions?
Sincerely.
Eddy Resnick
From: Martin Nečas <notifications@github.com>
Sent: Tuesday, June 2, 2020 12:11 PM
To: oVirt/ovirt-ansible-collection <ovirt-ansible-collection@noreply.github.com>
Cc: Eddy Resnick <edward@BYNET.CO.IL>; Author <author@noreply.github.com>
Subject: Re: [oVirt/ovirt-ansible-collection] cloud_init does not set the hostname of password for newly deployed VM (#48)
Hi,
checked your role and everything looked fine.
But I was not able to reproduce on (have tried on 2.7.9 and 2.7 latest)
After running the playbook it added the host_name password etc. to the VM even that it was created from a template.
I will leave the issue open and try to look into it once again later.
my task:
- ovirt_vm:
auth: "{{ ovirt_auth }}"
name: test4
template: test12
cluster: Default
cloud_init_persist: True
cloud_init:
host_name: "test"
root_password: "test"
custom_script: |
write_files:
- content: |
Hello, world!
path: /tmp/greeting.txt
permissions: '0644'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#48 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKVTAWHVLSDTX7XD3IUXTKTRUS6Z3ANCNFSM4NL5YNQA>.
|
The issue was resolved by adding cloud-init package to the template. |
Using the ovirt_vm module and the cloud_init parameter to set hostname and root password has no effect on newly created VM from template.
Using Ansible 2.7.18 with the python-ovirt-engine-sdk4-4.3.2-1.el7ev.x86_64 installed.
deploy_vm.yml and role deploy_vm is attached
ovirt_vm-cloud_init.zip
The text was updated successfully, but these errors were encountered: