Navigation

    SOFTWARE TESTING

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

    yajahira

    @yajahira

    0
    Reputation
    29776
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    yajahira Follow

    Best posts made by yajahira

    This user hasn't posted anything yet.

    Latest posts made by yajahira

    • Share DNS name between two k8s services deployed in aws

      I want to share the same dns name for two services exposing same port for different protocol. Earlier i was doing this with metallb with this annotation and metallb was sharing the same ip for two svc.

      metallb.universe.tf/allow-shared-ip: mykey

      In the AWS environment metallb is not there and i want to use something similar. In internet i found this link https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/annotations/ for possible annotation in aws. but didn't find any dns shared annotation. Note :- My cluster is deployed using rke2 1.24.7 on aws instances. I am not using EKS.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How to get gcp project name by project id

      Using cloud function - trying to make get call to get the project name and with the id - https://cloud.google.com/resource-manager/docs/creating-managing-projects#listing_projects

       from googleapiclient import discovery
       from oauth2client.client import OAuth2Credentials as creds
       crm = discovery.build(
           'cloudresourcemanager', 'v3', 
            http=creds.authorize(httplib2.Http()))
      

      project = crm.projects().get(name="projects/"+projectId).execute()

      `

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How should I organize a large number of unrelated Infrastructure as Code projects?

      I work at a municipal government with many departments. Teams from these departments request new servers for specific uses/applications. Our environment is currently using VMware VSphere (~1500 VMs, 2 datacenters, 50 hosts/blades) and we'll be migrating gradually to Azure over the next few years.

      I'm just starting with Terraform and can build VMs with it, one at a time. Should I create one Terraform project per server? Or is it worth it to group them somehow? Most of the requests are for one or two servers at a time; sometimes up to four at a time. Each request tends to be unrelated to any previous requests.

      Is there a source that covers the theory of organizing something on this scale? Or should I just accept that we'll have to maintain 1500 sets of TF project files?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How Can I Escape Backspace Using Set_Fact In Ansible With Jinja Conditional

      I cannot figure out how to escape an HTML closing tag, in this example, when used inside an Ansible Jinja conditional (ansible 2.9.27 in this case). Using an additional backslash does not work and neither does putting the backslash between single quotes . Anyone have an idea how I can make this work?

      Here is my entire Playbook with credentials and email addresses redacted:

      - name: GET ADMIN GROUP USERS AND COMMENT (GECOS)
        ansible.builtin.shell: "lslogins --noheadings -g adm -o USER,GECOS|sed s'/$/
      /'" register: lslogins_output # # - name: FORMAT LIST FOR HTML EMAIL ansible.builtin.set_fact: email_machine_list: |- {% for host in ansible_play_batch %} {% if hostvars[host]['lslogins_output']['stdout'] | length > 0 %} {{ hostvars[host]['ansible_hostname']|upper }}:
      {{ hostvars[host]['lslogins_output']['stdout'] }}

      {% elif hostvars[host]['lslogins_output']['stdout'] | length == 0 %} {{ hostvars[host]['ansible_hostname']|upper }}:
      NO ADMINS FOUND

      {% endif %} {% endfor %} run_once: true delegate_to: localhost # # - name: EMAIL USER LIST mail: to: Me from: Ansible subject: "Ansible Notification" subtype: html body: '

      {{ email_machine_list }}



      ' host: mail.foo.bar port: 587 secure: starttls password: mypassword username: me@foo.bar run_once: true become: false delegate_to: localhost

      The emails I receive from Ansible appear like this. The should not appear and should be interpreted as a closing HTML tag:

      HOST1:
      syslog
      user1
      

      HOST2:<\b>
      syslog
      user1

      HOST3:<\b>
      syslog
      user1

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • Convert an existing s3 bucket policy into a terraform-managed policy?

      I have a large bucket policy historically maintained by hand.

      I'd like to move it into CI/terraform (for the policy maintenance), but I don't want TF to own the bucket itself.

      Is there any way to have TF "import" the huge existing policy and generate the TF file for it? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • How to update nested arrays in mongodb database

      I have this mongodb schema:

      {
          "bsonType": "object",
          "required": [
              "group_wallet_id", "categories",
              "total_donations", "created_at"
          ],
          "properties": {
              "group_wallet_id": {
                  "bsonType": "objectId",
                  "description": "Id of the parent group"
              },
              "total_donations": {
                  "bsonType": "decimal",
                  "description": "Total donations"
              },
              "created_at": {
                  "bsonType": "date",
                  "description": "Wallet creation date"
              },
              "updated_at": {
                  "bsonType": "date",
                  "description": "Wallet update latest date"
              },
              "categories": {
                  "bsonType": "array",
                  "items": {
                      "bsonType": "object",
                      "required": [
                          "category_id", "donor_info",
                          "c_created_at", "c_updated_at"
                      ],
                      "properties": {
                          "category_id": {
                              "bsonType": "objectId",
                              "description": "Category unique id"
                          },
                          "donors_info": {
                              "bsonType": "array",
                              "items": {
                                  "bsonType": "object",
                                  "required": [
                                      "user_id", "total_balance", "d_created_date",
                                      "d_updated_date"
                                  ],
                                  "properties": {
                                      "user_id": {
                                          "bsonType": "objectId",
                                          "description": "User id"
                                      },
                                      "total_balance": {
                                          "bsonType": "decimal",
                                          "description": "Amount donated"
                                      },
                                      "d_created_at": {
                                          "bsonType": "date",
                                          "description": "The date the donation was made"
                                      },
                                      "d_updated_at": {
                                          "bsonType": "date",
                                          "description": "The latest update date"
                                      }
                                  }
      
                          }
                      },
                      "amount": {
                          "bsonType": "decimal",
                          "description": "The total amount donated for per category"
                      },
                      "c_created_at": {
                          "bsonType": "date",
                          "description": "The date the donation was made"
                      },
                      "c_updated_at": {
                          "bsonType": "date",
                          "description": "The latest update date"
                      }
                  }
              }
      
          }
      }
      

      }

      I am trying to update the categories array and after that the donors_info nested array. I have this:

      donor_3 = collection_one.update_one(
                                      {"group_wallet_id": ObjectId(data["group_wallet_id"])},
                                      {"$set": {"update_at": now}},
                                      {"$inc": {"total_donations": data["amount"]}},
                                      {"$push": {"categories": {
                                          "category_id": category_id,
                                          "categories.$.donors_info": {
                                              "user_id": ObjectId(user_id),
                                              "total_balance": convert_to_decimal128(data["amount"]),
                                              "d_created_at": now,
                                              "d_updated_at": now
                                          },
                                          "c_created_at": now, "c_updated_at": now,
                                          "amount": convert_to_decimal128(data["amount"]),
                                      }}}, session=session)
      

      I have tried this and unfortunately I am unable to do this. I using the pymongo lib in my app to access the monogodb atlas instance.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • Where can I find the default arguments supplied to the internal Kublet Service in k3s?

      If I want to find the default-arguments to the internal Kublet service, where can I find these documented?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • When and who should set a feature to "done" in Azure DevOps?

      We use Azure DevOps with the Scrum template to manage our product backlog. For each change request our customer asks for, we create a new feature with underlying PBIs (product backlog items) and tasks. Our developers set the PBIs to "done" as soon as the PBI passes the pull request.

      At the moment we don't have a standard that defines

      1. When the feature should be set to "done". That could be
      • as soon as all PBIs of the feature are set to "done"
      • as soon as the feature is deployed to the production environment
      • etc.
      1. Who is responsible for changing the status. That could be
      • the product owner
      • the developer that executes the deployment
      • etc.

      How do you manage the feature status in your teams?

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment"

      Why do I get this error with Terraform,

      The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment".

      You can see the resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/internet_gateway_attachment . The full error is,

      │ Error: Invalid resource type
      │ 
      │   on main.tf line 26, in resource "aws_internet_gateway_attachment" "example":
      │   26: resource "aws_internet_gateway_attachment" "example" {
      │ 
      │ The provider hashicorp/aws does not support resource type "aws_internet_gateway_attachment".
      ╵
      

      this is the hdl I'm using

      resource "aws_internet_gateway_attachment" "example" {
        internet_gateway_id = aws_internet_gateway.gw.id
        vpc_id              = aws_vpc.main.id
      }
      

      I'm using version 3.75.1 of the AWS provider.

      posted in Continuous Integration and Delivery (CI
      Y
      yajahira
    • RE: Use /execute data get on all players and set their spawnpoints

      Should be able to do something like this:

      execute as @a[nbt=!{SpawnX}] run spawnpoint @s 39 257 -16
      

      execute as @a[nbt=!{SpawnX}] run tp @s 39 257 -16

      In two repeating command blocks. Not 100% certain if the NBT format is valid but it’s a start

      posted in Game Testing
      Y
      yajahira