Questions tagged [yaml]

Use this tag for questions about the YAML data serialization format only, not for questions about programs (or examples) that happen to have their configuration in a YAML format. Questions about the CSS framework also called YAML should be tagged [yaml-css] instead.

13,106 questions
0votes
1answer
13views

How to pass multiline environment variable in docker-compose.yml

I am trying to convert this docker run command: docker run -it --rm --name logstash --net test opensearchproject/logstash-oss-with-opensearch-output-plugin:7.16.2 -e 'input { stdin { } } output { ...
0votes
0answers
10views

Is there any way to use a variable for a service connection to azure?

I have been writing some terraform and using Azure Devops to deploy the pipeline. However if I use a variable $(serviceconnection) for the service connection it fails with the following error: There ...
0votes
0answers
13views

YQ - replace all subfield of list based on list of values

Given a list in YAML, I want to dynamically replace all values of source.targetRevison's based on a input list to an input variable: replace_list=[argocd,argocd-projects] replace_to_value=v1.0.0 ...
0votes
1answer
23views

How to find a string in json output in Ansible/yaml

I have an API call that puts out the following JSON data: "data": [ { "vrfId": "1", "name": "test", "rd": null,...
0votes
0answers
18views

How to make the user choose none or one or both from enum OpenApi 3.0

I have this list and I need the client to choose none or one or both of them and include it in the body post request with OpenApi 3.0: [none, apple, banana, [apple, banana]] this is what I did so far ...
0votes
1answer
21views

Is it possible to create a YAML file of my current VPC that I built from scratch on AWS?

I created a VPC with AWS. Is it possible to use cloudformation to create a yaml file of my vpc?
1vote
1answer
19views

How to indent lines when appending to existing yaml file with yaml.dump in python

I have the following yaml file that I am opening to append to: stats: downloaded: - https://someurl.com I want to append the following 2 blocks nested under stats: pushed_to: - https://...
0votes
0answers
14views

BITBUCKET_BUILD_NUMBER is evaluating to empty string in a pipeline

Below is my YML file. When the pipeline is run on a fork's changes, the BITBUCKET_BUILD_NUMBER is coming as empty string. Wondering what the trick is to get it right. image: atlassian/default-image:3 ...
1vote
1answer
28views

How do you compare values in two Ansible lists?

I've got two lists in Ansible that I build on the fly using the find module - name: "Find all files in {{ backup_path }}" ansible.builtin.find: paths: - "{{ backup_path }}&...
  • 1,132
0votes
1answer
14views

prometheus fails to start with error on Windows

I am trying to run the prometheus for wmi exporter with below configuration. But its failing with error : ts=2022-06-27T16:04:42.665Z caller=main.go:450 level=error msg="Error loading config (--...
0votes
0answers
11views

Unable to add local user to linux server from ansible

Here my user has 2 kinds of id one is AD id and one is local id ( ex: AD id:- Z000 and local id z000, only difference is capital letter at the begining of the id). So on the server already AD id is ...
0votes
1answer
35views

Kustomize: how to apply the same patch in multiple overlays without LoadRestrictionsNone

I have a kustomize layout something like this: ├──release │ ├──VariantA │ │ └──kustomization.yaml │ │ cluster_a.yaml | └──VariantB │ └──kustomization.yaml │ cluster_b.yaml └──test ...
0votes
2answers
26views

Kubernetes deployment configuration yaml - Escaping Special Characters

I would like to set the Keycloak Admin Password in my Kubernetes deployment.yaml. To do so I have added this to my environment variables: - name: KEYCLOAK_ADMIN_PASSWORD value: 'ExamplePassword123£' ...
  • 1,799
0votes
0answers
8views

How to Install Libraries in .yaml file into data bricks cluster. I am aware of .txt to install but Yaml can only install using %conda command

I like to install Libraries into databricks using .yaml file. I am aware of .txt file where I can install the all the libraries in signal attempt I want the same method where I can install all the ...
-5votes
1answer
45views

I'm not getting the exact output i want using python

I'm unable to get the desired output I need . Tried basic method like formatting string etc, but still didn't get the output I want. from pathlib import Path eth_file = Path("/etc/netplan/01-...

153050per page