XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    DevOps Megathread: what you need and how we can help!

    Scheduled Pinned Locked Moved Infrastructure as Code
    26 Posts 13 Posters 1.7k Views 15 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CyrilleC Offline
      Cyrille Vates 🪐 DevOps Team @nathanael-h
      last edited by

      Hello,
      If you want to discuss the Pulumi Provider in detail, let discuss here: https://xcp-ng.org/forum/topic/10592/pulumi-xen-orchestra-news

      1 Reply Last reply Reply Quote 1
      • andrewperryA Offline
        andrewperry @Jonathon
        last edited by andrewperry

        @Jonathon this is really nice to have shared, as we are looking to migrate from the RKE cluster we've deployed on bare-metal Xen to XCP-ng VMs to setup an RKE2 cluster to migrate to.

        Will review this and probably have a bunch of questions!

        J 1 Reply Last reply Reply Quote 2
        • J Offline
          Jonathon @andrewperry
          last edited by

          @andrewperry I myself migrated our rancher management cluster from the original rke to a new rke2 cluster using this plan not too long ago, so you should not have much trouble. Feel free to ask questions 🙂

          1 Reply Last reply Reply Quote 1
          • Tristis OrisT Offline
            Tristis Oris Top contributor
            last edited by Tristis Oris

            i found time to play with cloud init, most of examples looks outdated or don't work dunno why.

            hostname: {name} don't work, only hostname: {name}%. Also i don't find that macros at official doc.

            with manage_etc_hosts: true it changed /etc/hosts 127.0.1.1 basename to 127.0.1.1 basename test%. Maybe package itself bug, maybe XO problem.

            preserve_hostname: false looks not required, i don't see any difference.

            even if not use any network config, it change netplan (don't need it with dhcp).

            network:
              version: 2
              ethernets:
                enX0:
                  dhcp4: true
            

            to

            network:
              version: 2
              ethernets:
                enX0:
                  match:
                    macaddress: "my_mac"
                  dhcp4: true
                  dhcp6: true
                  set-name: "enX0"
            

            to save default netplan, need to use something like

            network:
              version: 1
              config:
                  subnets:
                  - type: dhcp4
                  type: physical
            

            can't make disk resize work, it looks like rocket science. And this is most important part for me.

            resize_rootfs: true
            growpart:
              mode: auto
              devices: ['/']
              ignore_growroot_disabled: false
            

            I'm fine enough with manually tuned templates, 99% time don't need to change anything except name\disk. Other tasks require manual attention anyway or already covered with ansible. Would be nice to see tutorial for IQ<3.

            nathanael-hN 1 Reply Last reply Reply Quote 0
            • nathanael-hN Offline
              nathanael-h Vates 🪐 DevOps Team @Tristis Oris
              last edited by

              @Tristis-Oris
              Hello, thanks for the report. I will try to fix and improve things, but before I have a few questions.

              • What is the template you are using? Is it one from XOA Hub?
              • Where did you found the cloud-init config snippets?

              For your information, the defaults cloud-init configs snippets come from here: https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-web/src/common/cloud-config.js#L78-L88

              For growpart it depends of the template used. Last time I tested it was working with a Debian 12 template from the XOA Hub.

              Tristis OrisT 1 Reply Last reply Reply Quote 0
              • Tristis OrisT Offline
                Tristis Oris Top contributor @nathanael-h
                last edited by

                @nathanael-h

                • my custom template.
                • forum, cloud-init doc.
                1 Reply Last reply Reply Quote 0
                • CyrilleC Cyrille referenced this topic
                • abreauxA abreaux referenced this topic
                • nathanael-hN nathanael-h referenced this topic
                • First post
                  Last post