Giter Site home page Giter Site logo

Comments (5)

mnecas avatar mnecas commented on May 23, 2024

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.

anibal-aguila avatar anibal-aguila commented on May 23, 2024

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

image
image
image
image

from ovirt-ansible-collection.

mnecas avatar mnecas commented on May 23, 2024

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.

anibal-aguila avatar anibal-aguila commented on May 23, 2024

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 :)

image

: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.

anibal-aguila avatar anibal-aguila commented on May 23, 2024

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

image

Thanks for your support,

from ovirt-ansible-collection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.