Navigation

    SOFTWARE TESTING

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

    emran

    @emran

    0
    Reputation
    29656
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    emran Follow

    Best posts made by emran

    This user hasn't posted anything yet.

    Latest posts made by emran

    • Options to build a production server as a solo python developer?

      I'm new to DevOps and overwhelmed with all the options.

      I write python web applications as a solo developer, on my local machine. I have a "staging" server and I have multiple websites under different subdomains (eg. myapp.staging.mywebsite.dev). I use git on my local machine and use branches to create multiple versions of my apps and then I use git to push my code to this server so I can see how it looks on the web.

      When I'm happy with my web app I want to be able to deploy it to a separate production server, so I can get real users using my apps. I could just use git to push my code to a new server but are there any other options that will help me create a live site?

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: Ansible - Configuring Supermicro servers via Redfish API

      Supermicro offers this Redfish Reference Guide, which describes its Redfish REST API in detail.

      Right. According the documentation you've referenced, Ch. 4 "Using RESTful APIs" p. 13 ff., the structure of the REST API call seems to be

      https://${URL}/redfish/v1/${CATEGORY} ...
      

      followed by further actions, commands, tasks or payloads.

      Can someone explain how to map the API options to the Ansible modules?

      After looking up the module documentation examples and the source code

      • https://github.com/ansible-collections/community.general/blob/main/plugins/modules/redfish_config.py
      • https://github.com/ansible-collections/community.general/blob/main/plugins/modules/redfish_command.py

      it turns out that the modules using

      • https://github.com/ansible-collections/community.general/blob/main/plugins/module_utils/redfish_utils.py

      as a wrapper the utilize the REST API. It maps the REST API structure to the parameter structure of the modules (category, command, payload). For a better understanding you may have a look into the mentioned source.

      How can I use the Ansible modules to set the hostname or to provide NTP settings?

      https://github.com/ansible-collections/community.general/blob/main/plugins/module_utils/redfish_utils.py#L2729 it seems to be the manager_services for NTP. Because of the lack of the specific environment I'm not able to investigate this further and to do tests, therefore for how to use it you may also have a look into the source.

      To get familar with the Redfish RESTful API you may also have a look into https://github.com/DMTF/Redfishtool it

      was originally written during the development of the Redfish specification to help find ambiguities in the spec.

      Further Examples

      There are some explanations and a general programming example from a bigger production environment available

      • Krenn Wiki https://www-thomas--krenn-com.translate.goog/de/wiki/Redfish?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wapp

      Documentation

      • https://www.dmtf.org/sites/default/files/standards/documents/DSP2060_1.0.0.pdf
      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: What is a standard way to quickly deploy a LAMP installation with a virtual host and certbot?

      It depends on the details. What do you understand on "LAMP installation", it is a specific set on configs of apache/mysql/php, or it is a custom system image?

      Considering that it is an IaaS setting, logic dictates you have a LAMP system (as a VM image or a compressed fs) and you want to deploy it into some VM container. To my best knowledge, there is not even an usual way to do that. All it depends on your VM provider. Very likely, you need to get some command line interface from your provider, and you need to deploy things to it.

      Another possible interpretation of your question, that you have an actually running virtual machine, and you want to deploy your LAMP configuration to that. There, things depend on the distro, however in the current devops world, typically containers are deployed.

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • Jenkins trigger the 2nd job when the first job fails

      There is a system that periodically runs on Jenkins and that I follow with selenium. (I'm checking its performance on "manager/status" page in Tomcat). I want it to trigger the second job, which will make detailed logging (*1) only when there is an error in the job. How can I do it?

      When the first job is successful I can trigger the 2nd job but what I need is to trigger the 2nd job when the first job fails enter image description here

      (*1) I'm checking the geoserver performance. "http://serverip:port/geoserver/rest/monitor/requests.csv?order=totalTime;ASC" will download the performance values on geoserver server in "xls" format on jenkins server.

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: How do I disable ICMP echo responses within a Docker container?

      Here are the steps to change to disable ICMP echo response within Docker container:

      1. connect to the container with all privileges
          docker exec -it --privileged container_name bash
      
      1. modify the /proc/sys/net/ipv4/icmp_echo_ignore_all file via the systl conmmand, by default value is 0

      See default value :

          sysctl net.ipv4.icmp_echo_ignore_all
      

      Disable icmp echo response :

          sysctl net.ipv4.icmp_echo_ignore_all=1
      
      posted in Continuous Integration and Delivery (CI
      E
      emran
    • How to assign an ACL for each S3 Bucket in a tuple/list using Terraform?

      I have a terraform file set to create a list of S3 buckets, and I was assigning acl to each bucket the old way:

      resource "aws_s3_bucket" "this" {
          count = length(var.s3_bucket_names)
          bucket = var.s3_bucket_names[count.index]
          acl = var.acl
          tags = var.tags
      }
      

      However, I want to know how to do it using aws_s3_bucket_acl but I can't reference the bucket because it is a tuple and not a string. I've tried a lot of things but I've got nothing so far.

      This is what I want to do:

      resource "aws_s3_bucket_acl" "this_acl" {
          bucket = HERE I DON'T KNOW HOW TO REFERENCE A TUPLE OR LIST
          acl = var.acl
      }
      

      What should I do to reference a tuple since aws_s3_bucket.this.*.id doesn't work with a tuple/list?

      Thank you in advance.

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • ansible-doc command for filters & plugins

      I would like to list & read documentation from the ansible-doc command for example about ipaddr or flatten.

      Is it possible? Thanks in advance!

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: How do you a initialize a new volume without a file system or partition table?

      Cloud-init solution

      cloud-init accommodates the partitioning with https://cloudinit.readthedocs.io/en/latest/topics/examples.html#disk-setup

      disk_setup:
        /dev/vdb:
          table_type: gpt
          layout: true
      

      And the corresponding filesystem initialization with https://cloudinit.readthedocs.io/en/latest/topics/examples.html#create-partitions-and-filesystems

      fs_setup:
      - label: repo
        filesystem: ext4
        device: /dev/vdb1
        partition: auto
      
      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: How to automate docker prune commands using crontab

      You can add a new cron entry by prompting:

      sudo crontab -e

      You can then edit the file with your command and its frequency. Every three months is not a standard cron frequency (i.e. there's no built-in solution to transcribe this into cron) so you can use these frequencies:

      30 03 01 Jan,Apr,Jul,Oct *

      or else

      30 03 01 */3 *

      (Based on https://serverfault.com/a/129636/432407 by Richard Holloway on ServerFault)

      So eventually your cron entry will look like:

      30 03 01 Jan,Apr,Jul,Oct * docker image prune  --force --filter “until=2020-01-01T00:00:00”

      You can check out your new entry by prompting:

      sudo crontab -l

      Edit

      chicks's comment pointed out that the goal wasn't to automate an action to be performed every three months but rather to automatically find which objects are older than months. So guessing that you would like to perform this action everyday, I would rather go for:

      0 0 3 * * find /var/lib/docker -type f -ctime +90 -delete

      This finds all Docker files older than three months and deletes them every day at 3AM.

      posted in Continuous Integration and Delivery (CI
      E
      emran
    • RE: Where is the Moon Whistle Cave Raider for Search Quest?

      The Moon Whistle Cave Raider is located at Rock Slide Hall in a cave around 5957m. The cave has two entrances: one near the center of the wall at 5968m with a ledge sticking out of the cave, and one on the right side at 5980m that you'll need to climb into from the side.

      Entrance at 5968m

      Find either one of these entrances then head into the cave to find the Moon Whistle.

      The missing Moon whistle

      posted in Game Testing
      E
      emran