XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. hostingforyou
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Groups 0

    hostingforyou

    @hostingforyou

    2
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    hostingforyou Unfollow Follow

    Best posts made by hostingforyou

    • RE: Ansible with Xen Orchestra

      shinuza thanks, that works.

      after changing to api_host: "10.10.1.120:8443"

      [WARNING]:  * Failed to parse /opt/system/inventories/production/xen_orchestra.yml with auto plugin: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '10.10.1.120'. (_ssl.c:997)
      

      setting validate_certs: false gave me the working output

      looks very nice

      posted in Infrastructure as Code
      H
      hostingforyou

    Latest posts made by hostingforyou

    • RE: Ansible with Xen Orchestra

      AtaxyaNetwork looks good, not sure to post issue here as its is not ansible related, but I get the following error:

      $ terraform plan
      
      Planning failed. Terraform encountered an error while generating this plan.
      
      ╷
      │ Error: unexpected EOF
      │ 
      │   with provider["registry.terraform.io/terra-farm/xenorchestra"],
      │   on provider.tf line 10, in provider "xenorchestra":
      │   10: provider "xenorchestra" {
      
      $ cat provider.tf 
      # provider.tf
      terraform {
        required_providers {
          xenorchestra = {
            source = "terra-farm/xenorchestra"
            version = "~> 0.9"
          }
        }
      }
      provider "xenorchestra" {
        username = "xo"
        password = "password"
        url = "ws://10.10.1.120:8443"
        insecure = true
      }
      
      $ cat vm.tf 
      data "xenorchestra_pool" "pool" {
        name_label = "OTA"
      }
      
      data "xenorchestra_template" "vm_template" {
        name_label = "Ubuntu-22-template"
      }
      
      data "xenorchestra_sr" "sr" {
        name_label = "Tintri-Intern-Intern01"
        pool_id = data.xenorchestra_pool.pool.id
      }
      
      data "xenorchestra_network" "network" {
        name_label = "LAN Private"
        pool_id = data.xenorchestra_pool.pool.id
      }
      
      

      any idea how to debug?

      posted in Infrastructure as Code
      H
      hostingforyou
    • RE: Ansible with Xen Orchestra

      Is their a way to use the ansible plugin for creating VM's in XCP-NG?

      posted in Infrastructure as Code
      H
      hostingforyou
    • RE: Ansible with Xen Orchestra

      shinuza thanks, that works.

      after changing to api_host: "10.10.1.120:8443"

      [WARNING]:  * Failed to parse /opt/system/inventories/production/xen_orchestra.yml with auto plugin: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '10.10.1.120'. (_ssl.c:997)
      

      setting validate_certs: false gave me the working output

      looks very nice

      posted in Infrastructure as Code
      H
      hostingforyou
    • RE: Ansible with Xen Orchestra

      olivierlambert XO build from source listening on port 8443

      posted in Infrastructure as Code
      H
      hostingforyou
    • RE: Ansible with Xen Orchestra

      Hi

      Just started playing around with the xo api, do we need a specific user and port to be opened on the firewall? I opened 8443 but stil get connection refused.

      h4yadm@ansible01:/opt/system/inventories/production$ ansible-inventory -i xen_orchestra.yml --list 
      [WARNING]:  * Failed to parse /opt/system/inventories/production/xen_orchestra.yml with auto plugin: [Errno 111] Connection refused
      [WARNING]:  * Failed to parse /opt/system/inventories/production/xen_orchestra.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
      [WARNING]:  * Failed to parse /opt/system/inventories/production/xen_orchestra.yml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to provide a port.
      [WARNING]: Unable to parse /opt/system/inventories/production/xen_orchestra.yml as an inventory source
      [WARNING]: No inventory was parsed, only implicit localhost is available
      {
          "_meta": {
              "hostvars": {}
          },
          "all": {
              "children": [
                  "ungrouped"
              ]
          }
      }
      

      config:

      plugin: community.general.xen_orchestra
      api_host: 10.10.1.120
      user: xo
      password: "pwd"
      validate_certs: true
      use_ssl: true
      
      posted in Infrastructure as Code
      H
      hostingforyou