Comments (5)
Hi @anibal-aguila,
thanks for the issue!
We already support the Ignition File but it is not documented.
You need to set the operating_system
to rhcos_x64
and then you can use cloud_init
to pass data to the Ignition File.
Here is an example:
- name: ignition file example
ovirt_vm:
auth: "{{ ovirt_auth }}"
name: test
cluster: Default
operating_system: rhcos_x64
cloud_init_persist: True
cloud_init:
host_name: example.com
custom_script: |
write_files:
- content: |
Hello, world!
path: /tmp/greeting.txt
permissions: '0644'
user_name: root
root_password: super_password
(cloud_init_persist
if you want to check the values or have it permanent, or you can use state running and have the cloud_init_persist
false)
from ovirt-ansible-collection.
Hi @mnecas,
I tried your guide but get the same result, "Ignition: no config provided by user" the module sems to by working, as result I send a capture whit the the loaded config from OvirtEngine (Manager). But on the creation time the fedora coreos qcow2 look like don't load this file.
Could you tell me how fix it?
Thanks in advance,
Ovirt version: 4.4.2.6-1.el8
FedoraCoreOS version: fedora-coreos-32.20201004.3.0-qemu.x86_64
from ovirt-ansible-collection.
You probably need to authenticate the user use the user_name and root_password.
But this is the "input data" issue ansible the only work is to pass the data (in this case) to the engine which did.
(not an expert on Ignition Files)
from ovirt-ansible-collection.
I found this references about two flags calling to the API on the starting time, did you know if I can pass this booleans with the module ovirt_vm?
Thanks :)
:use_ignition (Boolean) —
# If set to true, the initialization type is set to Ignition. The default value is false. See this for details.
:use_initialization (Boolean) —
# If set to true, the initialization type is set by the VM’s OS. Windows will set to Sysprep, Linux to cloud-init and RedHat CoreOS to Ignition. If any of the initialization-types are explicitly set (useCloudInit, useSysprep or useIgnition), they will be prioritized and this flag will be ignored. The default value is false.
https://www.ovirt.org/develop/release-management/features/virt/coreos-ignition-support.html
https://www.rubydoc.info/gems/ovirt-engine-sdk/OvirtSDK4/VmService
from ovirt-ansible-collection.
Hi @mnecas,
I tried the stable OpenStack qcow2 version and its working, here the link for future uses:
https://builds.coreos.fedoraproject.org/browser?stream=stable
Thanks for your support,
from ovirt-ansible-collection.
Related Issues (20)
- ovirt_vm module Add storage_error_resume_behaviour Switch HOT 1
- hosted_engine_setup tries to remove host using 'he_host_name' as 'vds_name'
- ovirt_vm module Add storage_error_resume_behaviour Switch HOT 6
- oVirt hosted engine installation failure because of missing netaddr for python 3.11 in ovirt-node image HOT 39
- The error was: 'str object' has no attribute 'vgname'. 'str object' has no attribute 'vgname'
- self-hosted engine deployment failed because "'elasticsearch_host' is undefined" HOT 9
- Can't set storage size limit for quota when using Ansible variables HOT 2
- Ovirt Hosted engine deployment getting stuck saying "TASK [ovirt.ovirt.hosted_engine_setup : Pause execution until /tmp/ansible.0f1qsqk2_he_setup_lock is removed, delete it once ready to proceed]"
- "Follow" parameter in various oVirt modules returns html text instead of XML
- ovirt.ovirt.infra role restarts target_host, causing play to fail as it'll be UNREACHABLE
- Vm.__init__() got an unexpected keyword argument 'virtio_scsi_multi_queues' HOT 3
- ovirt_storage_domain_info - follow not working HOT 3
- fence_amt for ovirt
- Cannot start Hosted Engine
- Remove problematic placeholder vars HOT 2
- ovirt.ovirt.ovirt_vm lacks option to set Video Type (SPICE setup)
- Cannot download snapshot disk image
- ovirt_network port isolation
- Fails to add/deploy new host on non default cluster. Failing when configuring OVN for oVirt
- The snapshot is not deleted by the ovirt.ovirt.ovirt_snapshot module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ovirt-ansible-collection.