Moonshine-IDE / Super.Human.Installer

Super.Human.Installer helps you install the latest and greatest HCL Domino technologies easily.
https://superhumaninstaller.com/
Other
2 stars 0 forks source link

Support for hcl_domino_standalone_provisioner v0.1.23 #118

Open JoelProminic opened 1 month ago

JoelProminic commented 1 month ago

@MarkProminic is planning to release hcl_domino_standalone_provisioner v0.1.23 this week. This has some more renames for the roles - @MarkProminic will report or discuss the changes when they are ready.

piotrzarzycki21 commented 3 weeks ago

@MarkProminic in file version.rb for provisioner 0.1.23 I still see version 0.1.22. Should I make PR?

piotrzarzycki21 commented 3 weeks ago

@MarkProminic does variables named DOMINO_HASH, DOMINO_FP_HASH, LEAP_HASH etc. are required to run successfully provisioner ?

MarkProminic commented 3 weeks ago

you should provide them, it was discussed that you give me that information so that I can do verification tha the included installler is indeed meant for the task we are trying to run it through.

MarkProminic commented 3 weeks ago

There will be multiple versions.rb

PLease look at the contentes of the version.rb, Notice the name of of the Module. They are different, and it will change when I am ready. I stated over the weekend, that I have not yet released 0.1.23 because Joel is waiting to get changes in.

JoelProminic commented 3 weeks ago

Currently we handle the hash and version mapping on the Super.Human.Installer side. This should have been covered already by #76 .

piotrzarzycki21 commented 3 weeks ago

Hey @MarkProminic after changing SHI I run vagrant up and this is what I'm getting. Could you please take a look.

[SHI]:
---- Hosts.yml START ----
# core_provisioner_version: 0.2.8
# provisioner_name: hcl_domino_standalone_provisioner
# provisioner_version: 0.1.22
---
hosts:
  -
    settings:
      # Identifiers
      hostname: hcl
      domain: startcloud.com
      server_id: '6062'

      # Resources
      vcpus: 2
      memory: 8G

      # Console Access
      consoleport: 6062
      consolehost: 0.0.0.0
      show_console: false ## Some people have reported issues when VBox doesn't show the Console

      # Box information
      box: 'STARTcloud/debian12-server'
      box_url: 'https://vagrantcloud.com'
      box_version: 0.0.4

      # Provider Specific Settings
      provider-type: virtualbox
      os_type: 'Debian_64'
      firmware_type: UEFI

      # Setup Variables
      setup_wait: 300

      # Vagrant Configurations
      vagrant_user_private_key_path: ./id_rsa
      vagrant_user: startcloud #  startcloud
      vagrant_user_pass: STARTcloud24@! # 'STARTcloud24@!' 
      vagrant_insert_key: true
      ssh_forward_agent: true

    networks:
      # Future iteration may omit this to skip attaching a bridged adpater, the below block will need to be template unto itself
      - type: external
        address: 192.168.2.1
        netmask: 255.255.255.0
        gateway: 
        dhcp4: true
        dhcp6: false # false
        bridge: 
        mac: auto
        dns:
          - nameserver: 1.1.1.1
          - nameserver: 1.0.0.1

    provisioning:
      shell:
        enabled: false
        scripts:
          - './scripts/aliases.sh'

      ansible:
        enabled: true
        scripts:
          - local:
              - script: ansible/generate-playbook.yml
                ansible_python_interpreter: /usr/bin/python3
                compatibility_mode: 2.0
                install_mode: pip
                ssh_pipelining: true
                verbose: false
                remote_collections: true
              - script: ansible/playbook.yml
                ansible_python_interpreter: /usr/bin/python3
                compatibility_mode: 2.0
                install_mode: pip
                ssh_pipelining: true
                verbose: false
                remote_collections: true

    folders:
      - 
        description: "Disables VBoxSF, do not enable"
        map: .
        to: /vagrant
        type: virtualbox
        disabled: true
        automount: true
      -
        description: "Directory for Ansible Scripts"
        map: ./provisioners/ansible/
        to: /vagrant/ansible/
        type: rsync
        args:
          - '--verbose'
          - '--archive'
          - '--delete'
          - '-z'
          - '--copy-links'
      -
        description: "Directory for Application Installers"
        map: ./installers/
        to: /vagrant/installers/
        type: rsync
      -
        description: "Directory for Pre-Signed SSLs"
        map: ./ssls/
        to: /secure/
        type: rsync
      -
        description: "Directory for Server and User IDs"
        map: ./id-files/
        to: /id-files/
        type: rsync
        syncback: true

    vars:
      debug_all: true
      selfsigned_enabled: true
      haproxy_ssl_redirect: true

      # Domino Configuration Variables
      domino_organization: startcloud
      safe_notes_id: safe.ids
      domino_admin_notes_id_password: password
      generate_server_id_count: 0

      # Additional server options
      is_additional_server: false

      # Genesis Variables
      genesis_packages:
        - netmonitor
        - SuperHumanPortal

      # Domino Installer Variables
      domino_hash: 
      domino_major_version: 12
      domino_minor_version: 2
      domino_patch_version: 0

      # Domino fixpack Variables
      domino_fp_hash: 
      domino_server_installer_tar: Domino_12.0.2_Linux_English.tar
      domino_installer_fixpack_install: true
      domino_fixpack_version: FP2
      domino_server_fixpack_tar: Domino_1202FP2_Linux.tar

      # Domino Hotfix Variables
      domino_hf_hash: 
      domino_installer_hotfix_install: false
      domino_hotfix_version: 
      domino_server_hotfix_tar: 

      # Leap Variables
      leap_hash: 
      leap_archive: Leap-1.0.5.zip
      leap_version: 1.0.5

      # Nomad Web Variables
      nomadweb_hash: 
      nomadweb_archive: nomad-server-1.0.11-for-domino-12.0.2-linux.tgz
      nomadweb_version: 1.0.11

      # Traveler Variables
      #traveler_hash: null
      traveler_archive: Traveler_12.0.2FP1_Linux_ML.tar.gz
      traveler_base_version: 12.0.2
      traveler_fixpack_archive: 
      traveler_fixpack_version: 

      # Verse Variables
      #verse_hash: null
      verse_archive: HCL_Verse_3.0.0.zip
      verse_base_version: 3.0.0

      # AppDev Web Pack Variables
      #appdevpack_hash: null
      appdevpack_archive: domino-appdev-pack-1.0.15.tgz
      appdevpack_version: 1.0.15

      # Domino Rest API Variables
      #domino_rest_api_hash: null
      domino_rest_api_version: 
      domino_rest_api_archive: Domino_REST_API_V1.0.10_R12_Installer.zip

    roles:
      - name: startcloud.startcloud_roles.setup
      - name: startcloud.startcloud_roles.networking
        tags: always
      - name: startcloud.startcloud_roles.hostname
      - name: startcloud.startcloud_roles.dependencies
      - name: startcloud.startcloud_roles.service_user
      - name: startcloud.startcloud_roles.sdkman_install
      - name: startcloud.startcloud_roles.sdkman_java
      - name: startcloud.startcloud_roles.sdkman_maven
      - name: startcloud.startcloud_roles.sdkman_gradle
      - name: startcloud.startcloud_roles.ssl
       #- name: startcloud.hcl_roles.domino_reset 
      - name: startcloud.hcl_roles.domino_install
      - name: startcloud.hcl_roles.domino_vagrant_rest_api 
      - name: startcloud.hcl_roles.domino_service_nash
      - name: startcloud.hcl_roles.domino_java_config
      - name: startcloud.hcl_roles.domino_java_tools
      - name: startcloud.hcl_roles.domino_updatesite
      - name: startcloud.hcl_roles.domino_config 
      - name: startcloud.hcl_roles.domino_genesis
      - name: startcloud.hcl_roles.domino_genesis_applications
      - name: startcloud.hcl_roles.domino_cross_certify
      #- name: startcloud.hcl_roles.domino_java_app_example ## Uncomment Me to build your own Domino Java Servlet
      - name: startcloud.hcl_roles.domino_leap #startcloud.hcl_roles.domino_leap 
      - name: startcloud.hcl_roles.domino_nomadweb
      - name: startcloud.hcl_roles.domino_traveler 
      - name: startcloud.hcl_roles.domino_traveler_htmo 
      - name: startcloud.hcl_roles.domino_verse 
      - name: startcloud.hcl_roles.domino_appdevpack 
      - name: startcloud.hcl_roles.domino_rest_api ## Note to SHI devs, This should be called ROLE_DOMINO_RESTAPI, as this is different than startcloud.hcl_roles.domino_vagrant_rest_api
      - name: startcloud.hcl_roles.domino_vagrant_readme

      - name: startcloud.startcloud_roles.quick_start # - name: startcloud_quick_start
        tags: always
      - name: startcloud_haproxy
      - name: startcloud_vagrant_readme
      - name: startcloud.startcloud_roles.lockdown

---- Hosts.yml END ----
[SHI]: VirtualBox VM: { virtualBoxId => 6062--hcl.startcloud.com, serverId => 6062 }
[SHI]: Executing 'vagrant up' (provision:false)
[SHI]: 'vagrant up' started
Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
an invalid or undefined variable.

Path: /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/core/Hosts.rb
Line number: 0
Message: undefined method `each'

            host['provisioning']['ansible']['playbooks'].each do |playbooks|
                                                        ^^^^^
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time: 00:00:02
MarkProminic commented 3 weeks ago

Change it to something like

  ansible:
    enabled: true
    playbooks:
      - local:
          -
            description: "This generates a Ansible Playbook on the VM with all the variables in Hosts.yml"
            playbook: ansible/generate-playbook.yml
            ansible_python_interpreter: /usr/bin/python3
            compatibility_mode: 2.0
            install_mode: pip
            ssh_pipelining: true
            verbose: false
            callbacks: profile_tasks
            run: always
            remote_collections: false
            collections: []
          -
            description: "This generates Runs the previously generated playbook, This playbook configures the machine"
            playbook: ansible/playbook.yml
            ansible_python_interpreter: /usr/bin/python3
            compatibility_mode: 2.0
            install_mode: pip
            ssh_pipelining: true
            verbose: false
            callbacks: profile_tasks
            run: once
            remote_collections: false
            collections:
              - startcloud.startcloud_roles
              - startcloud.hcl_roles
          -
            description: "This Playbook is a special provisioner that will always run, ie vagrant up, vagrant reload"
            playbook: ansible/always-playbook.yml
            ansible_python_interpreter: /usr/bin/python3
            compatibility_mode: 2.0
            install_mode: pip
            ssh_pipelining: true
            verbose: false
            callbacks: profile_tasks
            run: not_first
            remote_collections: false
            collections:
              - startcloud.startcloud_roles
piotrzarzycki21 commented 3 weeks ago

playbooks:

  • local:

        description: "This generates a Ansible Playbook on the VM with all the variables in Hosts.yml"
        playbook: ansible/generate-playbook.yml
        ansible_python_interpreter: /usr/bin/python3
        compatibility_mode: 2.0
        install_mode: pip
        ssh_pipelining: true
        verbose: false
        callbacks: profile_tasks
        run: always
        remote_collections: false
        collections: []
      -
        description: "This generates Runs the previously generated playbook, This playbook configures the machine"
        playbook: ansible/playbook.yml
        ansible_python_interpreter: /usr/bin/python3
        compatibility_mode: 2.0
        install_mode: pip
        ssh_pipelining: true
        verbose: false
        callbacks: profile_tasks
        run: once
        remote_collections: false
        collections:
          - startcloud.startcloud_roles
          - startcloud.hcl_roles
      -
        description: "This Playbook is a special provisioner that will always run, ie vagrant up, vagrant reload"
        playbook: ansible/always-playbook.yml
        ansible_python_interpreter: /usr/bin/python3
        compatibility_mode: 2.0
        install_mode: pip
        ssh_pipelining: true
        verbose: false
        callbacks: profile_tasks
        run: not_first
        remote_collections: false
        collections:
          - startcloud.startcloud_roles

@MarkProminic That help move forward. Now I have following error:

[SHI]: Starting server...
[SHI]: Copying Vagrant files to /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062 (not required, skipping)...
[SHI]: Copying installers to /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062...
[SHI]: Leap-1.0.5.zip exists with same size, skipping...
[SHI]: Domino_12.0.2_Linux_English.tar exists with same size, skipping...
[SHI]: Domino_1202FP2_Linux.tar exists with same size, skipping...
[SHI]: HCL_Verse_3.0.0.zip exists with same size, skipping...
[SHI]: nomad-server-1.0.11-for-domino-12.0.2-linux.tgz exists with same size, skipping...
[SHI]: domino-appdev-pack-1.0.15.tgz exists with same size, skipping...
[SHI]: Domino_REST_API_V1.0.10_R12_Installer.zip exists with same size, skipping...
[SHI]: Traveler_12.0.2FP1_Linux_ML.tar.gz exists with same size, skipping...
[SHI]: Setting working directory to /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062...
[SHI]: Copying Notes Safe ID from /Users/piotrzarzycki/Dev/prominic/DominoVagrant/demo-v1.1/dist-id-files/safe.ids to /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/safe-id-to-cross-certify/safe.ids...
[SHI]:
---- Hosts.yml START ----
# core_provisioner_version: 0.2.8
# provisioner_name: hcl_domino_standalone_provisioner
# provisioner_version: 0.1.22
---
hosts:
  -
    settings:
      # Identifiers
      hostname: hcl
      domain: startcloud.com
      server_id: '6062'

      # Resources
      vcpus: 2
      memory: 8G

      # Console Access
      consoleport: 6062
      consolehost: 0.0.0.0
      show_console: false ## Some people have reported issues when VBox doesn't show the Console

      # Box information
      box: 'STARTcloud/debian12-server'
      box_url: 'https://vagrantcloud.com'
      box_version: 0.0.4

      # Provider Specific Settings
      provider-type: virtualbox
      os_type: 'Debian_64'
      firmware_type: UEFI

      # Setup Variables
      setup_wait: 300

      # Vagrant Configurations
      vagrant_user_private_key_path: ./id_rsa
      vagrant_user: startcloud #  startcloud
      vagrant_user_pass: STARTcloud24@! # 'STARTcloud24@!' 
      vagrant_insert_key: true
      ssh_forward_agent: true

    networks:
      # Future iteration may omit this to skip attaching a bridged adpater, the below block will need to be template unto itself
      - type: external
        address: 192.168.2.1
        netmask: 255.255.255.0
        gateway: 
        dhcp4: true
        dhcp6: false # false
        bridge: 
        mac: auto
        dns:
          - nameserver: 1.1.1.1
          - nameserver: 1.0.0.1

    provisioning:
      shell:
        enabled: false
        scripts:
          - './scripts/aliases.sh'

      ansible:
        enabled: true
        playbooks:
          - local:
              -
                description: "This generates a Ansible Playbook on the VM with all the variables in Hosts.yml"
                playbook: ansible/generate-playbook.yml
                ansible_python_interpreter: /usr/bin/python3
                compatibility_mode: 2.0
                install_mode: pip
                ssh_pipelining: true
                verbose: false
                callbacks: profile_tasks
                run: always
                remote_collections: false
                collections: []
              -
                description: "This generates Runs the previously generated playbook, This playbook configures the machine"
                playbook: ansible/playbook.yml
                ansible_python_interpreter: /usr/bin/python3
                compatibility_mode: 2.0
                install_mode: pip
                ssh_pipelining: true
                verbose: false
                callbacks: profile_tasks
                run: once
                remote_collections: false
                collections:
                  - startcloud.startcloud_roles
                  - startcloud.hcl_roles
              -
                description: "This Playbook is a special provisioner that will always run, ie vagrant up, vagrant reload"
                playbook: ansible/always-playbook.yml
                ansible_python_interpreter: /usr/bin/python3
                compatibility_mode: 2.0
                install_mode: pip
                ssh_pipelining: true
                verbose: false
                callbacks: profile_tasks
                run: not_first
                remote_collections: false
                collections:
                  - startcloud.startcloud_roles

    folders:
      - 
        description: "Disables VBoxSF, do not enable"
        map: .
        to: /vagrant
        type: virtualbox
        disabled: true
        automount: true
      -
        description: "Directory for Ansible Scripts"
        map: ./provisioners/ansible/
        to: /vagrant/ansible/
        type: rsync
        args:
          - '--verbose'
          - '--archive'
          - '--delete'
          - '-z'
          - '--copy-links'
      -
        description: "Directory for Application Installers"
        map: ./installers/
        to: /vagrant/installers/
        type: rsync
      -
        description: "Directory for Pre-Signed SSLs"
        map: ./ssls/
        to: /secure/
        type: rsync
      -
        description: "Directory for Server and User IDs"
        map: ./id-files/
        to: /id-files/
        type: rsync
        syncback: true

    vars:
      debug_all: true
      selfsigned_enabled: true
      haproxy_ssl_redirect: true

      # Domino Configuration Variables
      domino_organization: startcloud
      safe_notes_id: safe.ids
      domino_admin_notes_id_password: password
      generate_server_id_count: 0

      # Additional server options
      is_additional_server: false

      # Genesis Variables
      genesis_packages:
        - netmonitor
        - SuperHumanPortal

      # Domino Installer Variables
      domino_hash: 
      domino_major_version: 12
      domino_minor_version: 2
      domino_patch_version: 0

      # Domino fixpack Variables
      domino_fp_hash: 
      domino_server_installer_tar: Domino_12.0.2_Linux_English.tar
      domino_installer_fixpack_install: true
      domino_fixpack_version: FP2
      domino_server_fixpack_tar: Domino_1202FP2_Linux.tar

      # Domino Hotfix Variables
      domino_hf_hash: 
      domino_installer_hotfix_install: false
      domino_hotfix_version: 
      domino_server_hotfix_tar: 

      # Leap Variables
      leap_hash: 
      leap_archive: Leap-1.0.5.zip
      leap_version: 1.0.5

      # Nomad Web Variables
      nomadweb_hash: 
      nomadweb_archive: nomad-server-1.0.11-for-domino-12.0.2-linux.tgz
      nomadweb_version: 1.0.11

      # Traveler Variables
      #traveler_hash: null
      traveler_archive: Traveler_12.0.2FP1_Linux_ML.tar.gz
      traveler_base_version: 12.0.2
      traveler_fixpack_archive: 
      traveler_fixpack_version: 

      # Verse Variables
      #verse_hash: null
      verse_archive: HCL_Verse_3.0.0.zip
      verse_base_version: 3.0.0

      # AppDev Web Pack Variables
      #appdevpack_hash: null
      appdevpack_archive: domino-appdev-pack-1.0.15.tgz
      appdevpack_version: 1.0.15

      # Domino Rest API Variables
      #domino_rest_api_hash: null
      domino_rest_api_version: 
      domino_rest_api_archive: Domino_REST_API_V1.0.10_R12_Installer.zip

    roles:
      - name: startcloud.startcloud_roles.setup
      - name: startcloud.startcloud_roles.networking
        tags: always
      - name: startcloud.startcloud_roles.hostname
      - name: startcloud.startcloud_roles.dependencies
      - name: startcloud.startcloud_roles.service_user
      - name: startcloud.startcloud_roles.sdkman_install
      - name: startcloud.startcloud_roles.sdkman_java
      - name: startcloud.startcloud_roles.sdkman_maven
      - name: startcloud.startcloud_roles.sdkman_gradle
      - name: startcloud.startcloud_roles.ssl
       #- name: startcloud.hcl_roles.domino_reset 
      - name: startcloud.hcl_roles.domino_install
      - name: startcloud.hcl_roles.domino_vagrant_rest_api 
      - name: startcloud.hcl_roles.domino_service_nash
      - name: startcloud.hcl_roles.domino_java_config
      - name: startcloud.hcl_roles.domino_java_tools
      - name: startcloud.hcl_roles.domino_updatesite
      - name: startcloud.hcl_roles.domino_config 
      - name: startcloud.hcl_roles.domino_genesis
      - name: startcloud.hcl_roles.domino_genesis_applications
      - name: startcloud.hcl_roles.domino_cross_certify
      #- name: startcloud.hcl_roles.domino_java_app_example ## Uncomment Me to build your own Domino Java Servlet
      - name: startcloud.hcl_roles.domino_leap #startcloud.hcl_roles.domino_leap 
      - name: startcloud.hcl_roles.domino_nomadweb
      - name: startcloud.hcl_roles.domino_traveler 
      - name: startcloud.hcl_roles.domino_traveler_htmo 
      - name: startcloud.hcl_roles.domino_verse 
      - name: startcloud.hcl_roles.domino_appdevpack 
      - name: startcloud.hcl_roles.domino_rest_api ## Note to SHI devs, This should be called ROLE_DOMINO_RESTAPI, as this is different than startcloud.hcl_roles.domino_vagrant_rest_api
      - name: startcloud.hcl_roles.domino_vagrant_readme

      - name: startcloud.startcloud_roles.quick_start # - name: startcloud_quick_start
        tags: always
      - name: startcloud_haproxy
      - name: startcloud_vagrant_readme
      - name: startcloud.startcloud_roles.lockdown

---- Hosts.yml END ----
[SHI]: VirtualBox VM: [virtualBoxId => 6062--hcl.startcloud.com]
[SHI]: Executing 'vagrant up' (provision:false)
[SHI]: 'vagrant up' started
Bringing machine '6062--hcl.startcloud.com' up with 'virtualbox' provider...
==> 6062--hcl.startcloud.com: Running action triggers before up ...
==> 6062--hcl.startcloud.com: Running trigger...
==> 6062--hcl.startcloud.com: The command 'rsync' was not found for this trigger.
==> 6062--hcl.startcloud.com: Importing base box 'STARTcloud/debian12-server'...

Progress: 10%
Progress: 30%
Progress: 50%
Progress: 70%
Progress: 90%
==> 6062--hcl.startcloud.com: Matching MAC address for NAT networking...
==> 6062--hcl.startcloud.com: The command 'rsync' was not found for this trigger.
==> 6062--hcl.startcloud.com: Checking if box 'STARTcloud/debian12-server' version '0.0.4' is up to date...
==> 6062--hcl.startcloud.com: Setting the name of the VM: 6062--hcl.startcloud.com
==> 6062--hcl.startcloud.com: Clearing any previously set network interfaces...
==> 6062--hcl.startcloud.com: Preparing network interfaces based on configuration...
    6062--hcl.startcloud.com: Adapter 1: nat
    6062--hcl.startcloud.com: Adapter 2: bridged
==> 6062--hcl.startcloud.com: Forwarding ports...
    6062--hcl.startcloud.com: 22 (guest) => 2222 (host) (adapter 1)
==> 6062--hcl.startcloud.com: Running 'pre-boot' VM customizations...
==> 6062--hcl.startcloud.com: Booting VM...
==> 6062--hcl.startcloud.com: Waiting for machine to boot. This may take a few minutes...
    6062--hcl.startcloud.com: SSH address: 127.0.0.1:2222
    6062--hcl.startcloud.com: SSH username: startcloud
    6062--hcl.startcloud.com: SSH auth method: private key
    6062--hcl.startcloud.com: Warning: Connection reset. Retrying...
==> 6062--hcl.startcloud.com: Machine booted and ready!
==> 6062--hcl.startcloud.com: Checking for guest additions in VM...
    6062--hcl.startcloud.com: The guest additions on this VM do not match the installed version of
    6062--hcl.startcloud.com: VirtualBox! In most cases this is fine, but in rare cases it can
    6062--hcl.startcloud.com: prevent things such as shared folders from working properly. If you see
    6062--hcl.startcloud.com: shared folder errors, please make sure the guest additions within the
    6062--hcl.startcloud.com: virtual machine match the version of VirtualBox you have installed on
    6062--hcl.startcloud.com: your host and reload your VM.
    6062--hcl.startcloud.com: 
    6062--hcl.startcloud.com: Guest Additions Version: 6.0.0 r127566
    6062--hcl.startcloud.com: VirtualBox Version: 7.0
==> 6062--hcl.startcloud.com: Rsyncing folder: /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/provisioners/ansible/ => /vagrant/ansible
==> 6062--hcl.startcloud.com: Rsyncing folder: /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/installers/ => /vagrant/installers
==> 6062--hcl.startcloud.com: Rsyncing folder: /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/ssls/ => /secure
==> 6062--hcl.startcloud.com: Rsyncing folder: /Users/piotrzarzycki/Library/Application Support/SuperHumanInstallerDev/servers/demo-tasks/6062/id-files/ => /id-files
==> 6062--hcl.startcloud.com: Running provisioner: ansible_local...
    6062--hcl.startcloud.com: Running ansible-playbook...
[WARNING]: Error getting vault password file (default): The vault password file
/vagrant/ansible/git_vault_password was not found
ERROR! The vault password file /vagrant/ansible/git_vault_password was not found
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time: 00:01:20
MarkProminic commented 3 weeks ago

find ansible.cfg and comment out this line: 24

vault_password_file = /vagrant/ansible/git_vault_password

https://github.com/STARTcloud/hcl_domino_standalone_provisioner/blob/main/hcl_domino_standalone_provisioner/provisioners/ansible/ansible.cfg

piotrzarzycki21 commented 3 weeks ago

@MarkProminic here is the results:

TASK [Dynamically generating playbook] *****************************************
changed: [2639--hcl.startcloud.com]

PLAY RECAP *********************************************************************
2639--hcl.startcloud.com   : ok=4    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

==> 2639--hcl.startcloud.com: Running provisioner: ansible_local...
    2639--hcl.startcloud.com: Running ansible-playbook...
ERROR! the role 'startcloud_haproxy' was not found in /vagrant/ansible/roles:/vagrant/ansible:/vagrant/ansible

The error appears to be in '/vagrant/ansible/playbook.yml': line 101, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    -
      role: startcloud_haproxy
      ^ here
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time: 00:02:17
MarkProminic commented 3 weeks ago

The name of the role is wrong,

Please see: https://github.com/STARTcloud/hcl_domino_standalone_provisioner/issues/3

should be startcloud.haproxy

MarkProminic commented 3 weeks ago

Sorry I typo'd and corrected, It should be startcloud.haproxy

piotrzarzycki21 commented 3 weeks ago

I'm moving forward @MarkProminic . It looks like id file changed it's location towards 0.1.22 ?

TASK [startcloud.hcl_roles.domino_config : Copying Safe ID for One Touch Additional Server setup] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [5118--hcl.startcloud.com]: FAILED! => changed=false 
  msg: |-
    Could not find or access '/id-files/user-safe-ids/safe.ids' on the Ansible Controller.
    If you are using a module and expect the file to exist on the remote, see the remote_src option
[5118--hcl.startcloud.com] TASK: startcloud.hcl_roles.domino_config : Copying Safe ID for One Touch Additional Server setup (debug)> Use exit() or Ctrl-D (i.e. EOF) to exit
[5118--hcl.startcloud.com] TASK: startcloud.hcl_roles.domino_config : Copying Safe ID for One Touch Additional Server setup (debug)> User interrupted execution
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time: 00:13:55
MarkProminic commented 3 weeks ago

Correct, to make the code look more like the hcl_domino_additional_provisioner

piotrzarzycki21 commented 3 weeks ago

@MarkProminic I'm at the end I believe. I got some warnings. Not sure why they were treated as errors.

Screenshot 2024-06-12 at 22 44 14
piotrzarzycki21 commented 3 weeks ago

Server is running but with errors, so welcome page initially is not displayed until I click the button for that. After successful server run we are automatically displaying welcome page, but due to errors/warnings it doesn't work anymore.

JoelProminic commented 3 weeks ago

While testing this issue on Super.Human.Installer Development v0.10.1, I noticed that SHI was not generating the minor version correctly. For example, Domino 12.0.2 had domino_minor_version == 2, and 12.0.1 hadshowd domino_minor_version == 1. Both should be 0:

  domino_major_version: 12 # "12"
  domino_minor_version: 2 # "0"
  domino_patch_version: 2 # "2"

@piotrzarzycki21 reported that this may already be fixed in this issue.

MarkProminic commented 3 weeks ago

@piotrzarzycki21 For some reason your instance didn't get an IP, which is really bizzare since I redid some of the networking. I will need to see your instance to be able to determine why you are not getting a proper IP.

piotrzarzycki21 commented 2 weeks ago

@MarkProminic If that's how it looks like it is an old bug. I'm considering than with your mentioned modification above SHI has been updated with provisioner 0.1.23. I'm waiting than for official release so I could build development version of SHI.