did not find expected key while parsing a block mapping at line ... for Arabic lang file of Rails project

it is the usual did not find expected key while parsing a block mapping at line xx column yy error for Rails language YML files. In this file, I have Arabic language. Here are the facts: This...

How to resolve Prometheus Error 'role missing (one of: pod, service, endpoints, node)'

I am trying to apply kubernetes to my minikube cluster for the first time. I have limited experience with cluster management and have never worked with prometheus before so I apologize for noob...

ScannerError: mapping values are not allowed here

Using Tavern and trying to run tavern-ci against this yaml: test_name: tavern poc - name: list request: url: https://xxx.xxx.xxx.us/api/v3/institutions/ method: GET ...

How to fix "expected a single document in the stream, but found more" error when running yamllint command

I need to check yaml file in my local machine by running command yamllint -d "{extends: relaxed, rules: {line-length: {max: 800}}}" application.yml However it always return error as below: ✖...

Fix linting errors in yaml files

I wanted to fix the errors that yamllint gives. Like autotpep8 automatically formats python code to PEP8 style, do we have something similar for yaml files? Or is there any plugins available in...

How to Install Dependencies from a Local Python Repository with Tox?

Introduction I would like to install some dependencies (local-package1 and local-package2) into a virtualenv using Tox. Those dependencies are packages that only exist on my local Python Package...

Molecule complaining about "[703] Should change default metadata: description" while running the basic test

I couldn't run the molecule test command as it throws below error, while I can run individual commands without any errors ( Also provided --debug o/p below) [701] Role info should contain...

How to lint a yaml and ignore multiple "depends_on"?

I wrote a script that creates a local development environment using a docker-compose.yml file. When running the script, I want to use a yaml linter command to validate that the file is a valid...

run yamllint command line using python

I want to run yamllint(yaml_file) using subprocess module in python . I know there is another module to call yamllint in python , but I want to do it using subprocess ...

How to use pseudo parameters in aws cdk?

Hi I am working on AWS CDK in python. I am creating policy document. Previously I writtten cloud formation template for the same policy and it was working fine. Below is cloud formation...

How to create hosted zone in AWS CDK?

Hi I am working on AWS CDK for creating hosted zone for my application deployed using ELB and ECS. I am familiar with cloud formation and below is my sample cloud formation...

How do I SSH to molecule instance without molecule login

I'm using molecule and vagrant to deploy centos7 instance. For some reasons, I need to use ssh command access molecule instance, instead of molecule login. The ssh informations will then paste...

override defaults/main.yml variables with molecule

I have the problem where my default values are normally stored in defaults/main.yml for running ansible scripts but I have not found a way to override them. I am using molecule to test, and I want...

Symfony update fails with YAML errors

I have a web application currently running on Symfony 4.3.5 without any problems. I call "php composer.phar update" in my project directory. Composer starts to download and upgrade packages to...

Git Pre-commit hooks

I need to set up a series of Gitlab hooks within a Docker image that will be triggered on pre-commit. I have a Docker file and a pre-commit-config.yaml which builds successfully with the exception...

git pre-commit not working with git commit

I have the following snippet saved in .git/hooks/pre-commit. When running git commit, it works as expected. However, when running with git commit -a -m. it bypasses the hook, any...

How to use molecule with Openstack

I use molecule a lot with the docker driver. There are a few cases where docker is not the right tool to test ansible roles against, so I'd like to spin up a vm in openstack. I've created an...

Is there any good examples for molecule roles that uses kvm? so far getting {'lint': ['must be of string type']} error

I've being trying to run find good repositories or examples of using molecule with kvm. But so far all of them gets this. {'lint': ['must be of string type']} I have no clue how to fix this. Like...

Ansible molecule using docker - how to specify memory limit

I have a molecule test which spins up 2 Docker containers, for testing 2 application versions at once. dependency: name: galaxy driver: name: docker lint: name: yamllint platforms: - name:...

error validating data: [ValidationError(Deployment): unknown field "\u00a0 name" during `kubectl apply -f myfile.yaml`

I was facing the issue during deployment: # kubectl apply -f myfile.yaml error: error validating "myfile.yaml": error validating data: [ValidationError(Deployment): unknown field "\u00a0 name" in...

Is it possible to run hostnamectl in ArchLinux Docker container?

I want to create a role for Ansible to configure my network. I'm also trying to test my role with molecule in an Arch Linux Docker container. Inside my role I'm using Ansible's hostname module....

pre-commit works fine, but git commit fails

so in my project, there are serveral pre-commit hooks to make sure our codes meet team standard, but whenever i try to commit changes, there is always an error saying executable was not found....

How to design maven-checkstyle-plugin for YAML file validation?

I have been searching on the webs for YAML file validation chedestyle plugin but there are not any such plugin. there are many online YAML validation tools such as YAMLLINT which requires you to...

Jenkins-pipeline fail : No such DSL method 'androidLint' found among steps

I get a failure for the stage 'Static analysis' during my jenkins-pipeline. Here is my Jenkinsfile : pipeline { agent any stages { stage('Compile') { steps { // Compile the...

airflow error "dag_id could not be found" when running airflow on KubernetesExecutor

I am using this helm chart to deploy airflow https://github.com/apache/airflow/tree/master/chart Apache Airflow version: 2.0.0 Kubernetes version: v1.19.4 What happened: I get this error when try...

YAML, linting - syntax error - unknown escape character '

Hello Developer Community! I would like to ask for some help about the following, I have the following YAML data: --- # yamllint disable rule:indentation rule:empty-lines ...

grumphp not working correclty with custom directory structure

For some reason grumphp not working for me as expected. First of all my project directory structure is: .git/ devops/ app/ src/ confing/ bin/ vendor/ grumphp.yml phpcs.xml ...

S3 bucket policy IAM role showing up as API key

I have an S3 bucket on which I am trying to apply the bucket policy via CloudFormation. I want to allow two IAM roles to access the bucket and is achieved by specifying the ARN of the roles in the...

How to set connections and variables in airflow using docker-compose file

I'm creating a dev environment to use airflow for testing. I'm using the docker-compose.yaml file available on Airflow website. I would like to know if it is possible to set my connections and...

"key cannot contain a space" error while running docker compose

I am trying to deploy my django app to app engine using dockerfile and for that after following a few blogs such as these, I created a docker-compose.yml file but when I run the "docker compose...