No errors at all
Same results again
Screenshot attached for a better view, but this is where it's at right now:
sso: true
disk_format: raw
graphical_console:
protocol:
- spice
- vnc
cloud_init:
regenerate_ssh_keys: true
Hi! I'm having issue updating my nodes, normally I just clicked on them and
update each of them without problem. I haven't updated since few months, now
I'm unable to. So I checked the doc and saw that I probably should update my
engine first so that's what I tried.
Info on my setup:
2 nodes
ho
yaml is picky...
write_files: - path: /tmp/setup.sh permissions: '0755'
content: |
permissions & content should be on the same indentation with path:
- path permissions content
What is the error you receive ?
Best Regards,Strahil Nikolov
On Sat, Nov 27, 2
Yep.
Your code:
cloud_init:
custom_script: |
host_name: "{{ vm_fqdn }}"
user_name: myadmin
user_password:
write_files:
- path: /tmp/setup.sh
permissions: '0755'
content: |
#!/bin/bash
echo "$(hostnamectl)" >> /tmp/myhostname.txt
Yet, in "custom_script" there is no "host_name" (indent
Hi Sina,
These should be part of the cloud-init dictionary and are strict about
indentation.
e.g. from the documentation.
- name: Run VM with cloud init
ovirt.ovirt.ovirt_vm:
name: rhel7
template: rhel7
cluster: Default
memory: 1GiB
high_availability: true
high_
Same thing when its written as 'hostname':
atal: [ovirt.ovirt.trove.internal]: FAILED! => {"changed": false,
"msg": "Unsupported parameters for (ovirt.ovirt.ovirt_vm) module:
hostname Supported parameters include: affinity_gr
gs, affinity_label_mappings, allow_partial_import, auth,
ballooning_enab
And Paul
when I try to add host_name, I get this error:
TASK [Creates new virtual machine]
fatal: [ovirt.ovirt.trove.internal]: FAILED! => {"change
Thanks guys, not sure why the ansible isnt showing up,
Posting again:
- hosts: ovirt.ovirt.mydom.internal
tasks:
- import_tasks: ovirt_auth.yml
- name: Creates new virtual machine
ovirt.ovirt.ovirt_vm:
auth: "{{ ovirt_auth }}"
name: "{{ vm_fqdn }}"
state:
Hi Sina,
I get easily confused with cloud-init but shouldn't you be setting
the hostname, username, etc before the custom script?
Also, you could rename the disk as a separate play in your playbook.
e.g.
# Change Disk Name
- ovirt.ovirt.ovirt_disk:
id: ----0
I don't seeany Ansible code bellow.
Best Regards,Strahil Nikolov
On Fri, Nov 26, 2021 at 17:04, Sina Owolabi wrote:
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovi
Thanks Paul.
I seem to be getting this by hand, but trying with ansible, I think my
skills are a bit lacking.
I can create with ansible, and it seems to work well, except for the fact
that the new vm is
created with the hostname of the vm from which the template was made.
The disk is also named by
Hello,
When trying to do an update running fails
dnf update ovirt\*setup\*
Upgrade 4 Packages
Total download size: 338 k
Is this ok [y/N]: y
Downloading Packages:
[MIRROR] ovirt-engine-dwh-grafana-integration-setup-4.4.9.1-1.el8.noarch.rpm:
Downloading successful, but checksum doesn'
12 matches
Mail list logo