Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. amarantha
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    amarantha

    @amarantha

    0
    Reputation
    29830
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    amarantha Follow

    Best posts made by amarantha

    This user hasn't posted anything yet.

    Latest posts made by amarantha

    • Rename Terraform template script

      In the example below if I were to rename "script1.ps1" to a new name this would normally result in the destruction and recreation of server1.

      data "template_file" "server1" {
          template = file("${path.module}/script1.ps1")
          vars = {}
      }
      

      Is it possible to update the script name without recreating the server?

      posted in Continuous Integration and Delivery (CI
      A
      amarantha
    • How can you validate that registries.yaml is set properly?

      I've set up my /etc/rancher/k3s/registries.yaml, how can I confirm it works without doing

      k3s kubectl run c1 --image docker.io/perl:5.30
      k3s kubectl logs --follow=true c1
      sleep 1
      k3s kubectl delete pod c1
      

      Is there a more efficient way to test registry authentication for images than having to use k3s run?

      posted in Continuous Integration and Delivery (CI
      A
      amarantha
    • RE: Rebooting node at end of Jenkins pipeline

      Quick answer:

      Changing sudo reboot to sudo shutdown -r +m5 or what ever time delay needed, would prevent the pipeline from failing. It forks the reboot process to the system and lets the Jenkins agent finish this pipeline cleanly.

      Longer (preventing potential conflicts answer):

      Depending on how the system is configured, it should prevent new logins to the server while the reboot is scheduled.

      If the agents are configured to launch via ssh,

      launch agents via ssh

      and configured to be brought offline if not in use,

      take offline when idle

      Provided the agent times out, Jenkins should be unable to start a new pipeline on that agent until the reboot completes.

      From the man page for shutdown (on one of my servers)

      If the time argument is used, 5 minutes before the system goes down the
      /run/nologin file is created to ensure that further logins shall not be
      allowed.
      
      posted in Continuous Integration and Delivery (CI
      A
      amarantha
    • RE: How can I set let's encrypt certificates with Ansible?

      There were a couple mistakes in my tasks, but this one works:

      ---
      

      Create the directories required by letsencrypt to store keys and certificates.

      • name: "Create required directories in /etc/letsencrypt"
        become: yes
        file:
        path: "/etc/letsencrypt/{{ item }}"
        state: directory
        owner: root
        group: root
        mode: u=rwx,g=x,o=x
        with_items:
        • account
        • certs
        • csrs
        • keys

      https://docs.ansible.com/ansible/2.9/modules/acme_certificate_module.html#acme-certificate-module

      • name: Generate let's encrypt account key
        become: yes
        openssl_privatekey:
        path: "{{ letsencrypt_account_key }}"

      https://docs.ansible.com/ansible/latest/collections/community/crypto/openssl_privatekey_module.html#openssl-privatekey-module

      • name: Generate let's encrypt private key with the default values (4096 bits, RSA)
        become: yes
        openssl_privatekey:
        path: "{{letsencrypt_keys_dir}}/{{ domain_name }}.key"

      https://docs.ansible.com/ansible/latest/collections/community/crypto/openssl_csr_module.html#openssl-csr-module

      • name: Generate an OpenSSL Certificate Signing Request
        become: yes
        community.crypto.openssl_csr:
        path: "{{letsencrypt_csrs_dir}}/{{ domain_name }}.csr"
        privatekey_path: "{{letsencrypt_keys_dir}}/{{ domain_name }}.key"
        common_name: "{{domain_name}}"

      Create letsencrypt challenge.

      • name: Create a challenge for {{domain_name}} using a account key file.
        become: yes
        community.crypto.acme_certificate:
        acme_directory: "{{acme_directory}}"
        acme_version: "{{acme_version}}"
        account_email: "{{acme_email}}"
        terms_agreed: yes
        account_key_src: "{{letsencrypt_account_key}}"
        csr: "{{letsencrypt_csrs_dir}}/{{domain_name}}.csr"
        dest: "{{letsencrypt_certs_dir}}/{{domain_name}}.crt"
        remaining_days: "{{remaining_days}}"
        register: acme_challenge

      Create the directory to hold the validation token.

      • name: "Create .well-known/acme-challenge directory"
        become: yes
        file:
        path: "{{project_path}}/.well-known/acme-challenge"
        state: directory
        owner: root
        group: root
        mode: u=rwx,g=rx,o=rx

      Copy the necessary files for the http-01 challenge.

      • name: "Implement http-01 challenge files"
        become: yes
        copy:
        dest: "{{project_path}}/{{ acme_challenge['challenge_data'][item]['http-01']['resource'] }}"
        content: "{{ acme_challenge['challenge_data'][item]['http-01']['resource_value'] }}"
        with_items:
        • "{{ domain_name }}"
          when: acme_challenge is changed and domain_name|string in acme_challenge['challenge_data']

      Execute letsencrypt challenge.

      • name: Let the challenge be validated and retrieve the cert and intermediate certificate
        become: yes
        community.crypto.acme_certificate:
        account_key_src: "{{letsencrypt_account_key}}"
        csr: "{{letsencrypt_csrs_dir}}/{{domain_name}}.csr"
        cert: "{{letsencrypt_certs_dir}}/{{domain_name}}.crt"
        acme_directory: "{{acme_directory}}"
        acme_version: "{{acme_version}}"
        account_email: "{{acme_email}}"
        challenge: "{{acme_challenge_type}}"
        fullchain: "{{letsencrypt_certs_dir}}/{{domain_name}}-fullchain.crt"
        chain: "{{letsencrypt_certs_dir}}/{{domain_name}}-intermediate.crt"
        remaining_days: "{{remaining_days}}"
        data: "{{ acme_challenge }}"
        when: acme_challenge is changed

      The corresponding Nginx config file is:

      upstream {{project_name}} {
          server unix:{{socket_location}};
      }
      

      server {
      listen 80;
      location /.well-known/acme-challenge/ {
      root {{project_path}};
      }
      server_name {{domain_name}} www.{{domain_name}} {{web_server_ip}};
      return 301 https://{{domain_name}}$request_uri;
      }

      server {

      listen 443 ssl;
      ssl_certificate /etc/letsencrypt/certs/{{domain_name}}-fullchain.crt;
      ssl_certificate_key /etc/letsencrypt/keys/{{domain_name}}.key;
      
      charset utf-8;
      client_max_body_size 4M;
      
      # Serving static files directly from Nginx without passing through uwsgi 
      location /app/static/ {
          alias {{project_path}}/app/static/;
      }
      
      location /.well-known/acme-challenge/ {
          root {{project_path}};
      }
      
      location / {
          # kill cache
          add_header Last-Modified $date_gmt;
          add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
          if_modified_since off;
          expires off;
          etag off;
          uwsgi_pass {{project_name}};
          include {{project_path}}/uwsgi_params;
      }
      

      }

      posted in Continuous Integration and Delivery (CI
      A
      amarantha
    • RE: How to set the Virtual Machine name using Azure Image Builder?

      Use the following configuration key:

      .
      .
      "temp_compute_name": "",
      .
      .
      

      Note: Try to keep name short.

      posted in Continuous Integration and Delivery (CI
      A
      amarantha
    • RE: Can I end a Stunt Run or Road Rage mission early?

      Yes. You can end a mission early by stopping the car and sitting still for around 5 seconds. Ending a Stunt Run or Road Rage mission early after meeting the requirements will count as a win.

      Note: Stunt Run missions will not end if you have an active combo. You can either wait for the combo to run out or end the combo by wrecking your car.

      posted in Game Testing
      A
      amarantha
    • How can I use my save files for TBOI after switching to other Steam account?

      It's the same PC, so all save files must be the same, but the game doesn't recognize it and treats it as a complete undone game.
      What can I do for my new account to "see" those files?

      posted in Game Testing
      A
      amarantha
    • RE: Can Murch deliver gears with unlocked ability slots if I order them from a player who has them?

      As far as I know, when ordering Murch merch, you will always be able to buy the basic version of the item, like if it showed up in the shop.

      So any upgrades/changes made to the item you do not get for free.

      posted in Game Testing
      A
      amarantha
    • RE: What is the OST that plays during the O & P cinematic battle scene?

      We don't know most of the game's OST yet, but luckily I believe you picked one we do: https://www.xenoserieswiki.org/wiki/The_Weight_of_Life .

      posted in Game Testing
      A
      amarantha
    • RE: Are Sheldon Licenses Infinite?

      Seeing how you can accumulate 1 per gun by getting them to the first level of fresh its not infinite but there wont be a moment where you can't buy weapons anymore because of a lack of licences.

      Since whenever you get a weapon to Freshness 1, and thats the cost to get a weapon you have the level for, then its impossible to get to a point where you cannot earn a new licence and you still have weapons to buy (since you can always get a new licence from the latest weapon you bought.)

      posted in Game Testing
      A
      amarantha