Questions tagged [yaml]

YAML is a data serialization format designed for human readability. YAML is a recursive acronym for "YAML Ain't Markup Language". JSON syntax is similar to and a subset of YAML

Filter by
Sorted by
Tagged with
-1 votes
0 answers
12 views

sonarqube analysis of a frontend (javascript) and backend (.net) from same azure devops yaml pipeline

I'm utilizing Azure DevOps YAML pipelines to construct both the backend and frontend of an application. We have .NET and React housed within the same repository, and our aim is to integrate SonarQube ...
Eduard Paul Lakida's user avatar
0 votes
0 answers
51 views

How Do I Get the Information for a Minikube Cluster to Automatically Show Up in Backstage?

The problem: The information for my Minikube cluster is supposed to be showing up under the Kubernetes tab for a Backstage component similar to the following images: [2 However, I am getting the ...
Margaret's user avatar
0 votes
1 answer
224 views

Azure pipeline is publishing an empty zip file

I have an Azure pipeline for a Blazor project and I'm trying to publish the results of the build to an Azure app service. The build completes fine but the deploy task throws an error. At first I ...
Chris's user avatar
  • 1
0 votes
1 answer
118 views

Increase NGINX Client_Max_Body_Size via YAML (AKS)

TLDR: Can I utilize my existing deployment YAML (see dev-deployment.yaml snippet below) to specify a client_max_body_size to a server or servers in my nginx ingress? Some background: I recently added ...
Conan Stuart's user avatar
1 vote
0 answers
83 views

Why i cant include a .yml in CI/CD, using rules with mine variables?

Why my pipeline doesn't work? I just want include this .yml if "NATIVE_COMPILE" is "true". variables: NATIVE_COMPILE : "true" include: - project: 'pipelines/cicd' ...
Alan Michel's user avatar
0 votes
1 answer
187 views

How to specify ANY for tags in the yaml file for pipelines

In my pipeline definition, for getting resources from other pipeline, I'd like to define a default tags value to use, such as "release candidate", but allow to select to use any tags or even ...
Weishan Yang's user avatar
0 votes
1 answer
26 views

Re-using deployment stages in multiple YAMLs

We have large application we deploy from ADO using classic pipelines. In the process of converting over to yaml. The application is made up of multiple smaller apps which are deployed individually ...
Ceefla's user avatar
  • 1
0 votes
0 answers
101 views

Is it possible to declare variables in a YAML file and to recover those variables in the .gitlab-ci.yml and use them in a matrix job?

I am configuring a Gitlab C/I that will trigger several child pipelines in another project. Each one of the child projects and pipelines needs two variables (foo and bar) and I want to trigger them in ...
Admineral's user avatar
0 votes
1 answer
815 views

Terraform - No Infrastructure Changes Detected

I have deployed a Cloudwatch Log Group community module to my terraform stack (sourced from https://github.com/cloudposse/terraform-aws-components) but I have spent more than a day trying to resolve ...
Don Draper's user avatar
0 votes
0 answers
84 views

Azure DevOps: Track build status for commits in mutliple repositories pipeline

I have a multi-repo pipeline Can azure track build status for commits for repositories other than the self repo that contains the azure-pipelines.yaml file? Ie, when a commit is built in another ...
xvan's user avatar
  • 111
3 votes
1 answer
217 views

Deleted service connection in Azure DevOps and now cannot select a new one

I deleted what I thought were unused service connections in Azure DevOps, and now I cannot change the connection on existing pipelines. The build pipelines are yaml based but the service connections ...
BuildMePlease's user avatar
1 vote
1 answer
705 views

How do I refer in Azure Pipelines to an output variable defined in a previous stage for defining stage conditions and new variables?

I'm writing an Azure Pipeline where I use the targetBranchName of a pull request to define the test environment I'm going to use. Since targetBranchName has no value before execution, I created a &...
lpacheco's user avatar
  • 125
1 vote
0 answers
37 views

Store promotion path environment for use in multiple YAML pipelines (Azure DevOps)

We are trying to split out our platform in a more microservice like architecture and want to reduce code duplication in our YAML pipelines. The idea is each microservice would have its own YAML ...
Charles Webb's user avatar
1 vote
0 answers
585 views

Wildcard Branch Trigger not working for Azure Devops

I have an Azure Devops build pipeline that has multiple branch triggers. I am using a wildcard to capture changes to branches under refresh/4.*. An example of a branch that I am targeting in this case ...
Cooper Link's user avatar
0 votes
1 answer
1k views

Ansible / Jinja2 Unexpected templating type error

I am trying to take a dictionary from one or more async tasks "register: task_variable" then collecting it as a list based on its id's and running a wait task using async_status on the ...
Cyber Axe's user avatar
0 votes
0 answers
1k views

is it bad practice to store yaml pipelines in the same repo as code

I created a couple of yaml pipelines and am storing them in the gitrepo of the application that I am deploying. The issue is, Now I have a couple of tools in separate repos and often reuse the same ...
qBasicBoy's user avatar
  • 101
0 votes
1 answer
3k views

How to tell helm not to deploy a resource or remove it if a value is set to "false"?

I am working on an HPA template that will be applied only if the enabled value is set to true. Currently when setting enabled to false, it will create an empty object in yaml. This is then applied ...
QThompson's user avatar
2 votes
1 answer
2k views

How to properly escape brackets in ArgoCD?

I have an ArgoCD + Argo Workfows setup. In my manifests files, I am trying to escape double brackets since I have some helm apps, and if I manually edit the Argo workflow file with the expression ...
Abe's user avatar
  • 121
0 votes
1 answer
1k views

Cloud-config in Terraform does not work, nothing seems to happen and it fails silently

I'm currently provisioning a machine with Cloud Config in user_data (I've also tried user_data_base64). When I run my command in Terraform I have, resource "aws_instance" "web" { ...
Evan Carroll's user avatar
  • 1,950
0 votes
2 answers
1k views

Trigger different environments in one pipeline

I have a dev, uat, and prod environment for my ado project, and I just completed a pipeline deploy to dev. Is it better practice to have a second pipeline that triggers on the uat branch, or is ...
ChrisW's user avatar
  • 13
0 votes
0 answers
1k views

kustomize apply nameprefix and commonlabels to a list in path

i have this: kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization configurations: - configuration.yaml namePrefix: app-prefix- resources: - logging-output.yaml - ...
Psycho Mantys's user avatar
0 votes
1 answer
594 views

YAML based azure build pipeline to run particular tasks based on condition?

Need to create a YAML based azure build pipeline i.e, need to run particular tasks like only build step when it is PR automated and when the same pipeline manually run it should run build task along ...
nova world's user avatar
3 votes
0 answers
2k views

Jenkins Unable to Match Two Identical Strings

I have a config file that's in YAML format, which includes this relevant portion: project: protectedBranches: - master - develop - feature/something In my Jenkinsfile, the YAML file is ...
Argyle's user avatar
  • 1,018
1 vote
1 answer
1k views

How to get information about resources in an Azure Pipelines run?

I work in a platform team that builds and supports Azure Pipelines YAML templates and various custom scripting for these pipelines. People in my organisation use these YAML templates like: resources: ...
Walter Vos's user avatar
2 votes
1 answer
482 views

Ansible - Variable expansion inside hostvars declaration?

I have a hardcoded hostvars line, like so: node1_hostname={{ hostvars['192.168.0.162']['node1_hostname'] }} I have a set_fact variable from a previous play that I'd like to expand in the host section ...
synth45's user avatar
  • 71
2 votes
3 answers
2k views

Add item(s) to yaml array only if defined (ansible)

How do I write a yaml file such that it defines an array with a list of values, and it skips those values from being added to the yaml array if the given value is undefined? Specifically, I'm trying ...
Michael Altfield's user avatar
0 votes
1 answer
2k views

Retrieving project version from csproj in Azure Pipeline .NET Core CLI task

I have the following tasks in my yaml file in Azure DevOps It publishes my console application and zip it in a file - task: DotNetCoreCLI@2 inputs: command: 'publish' publishWebProjects: ...
user65248's user avatar
  • 101
2 votes
1 answer
208 views

How to test pipeline changes in Azure?

I currently have a pipeline in Azure which consists of a bunch of YAML which eventually calls some terraform script to handle the deployment side. What is the best way to handle dev testing of changes ...
CathalMF's user avatar
  • 121
6 votes
2 answers
5k views

Kubernetes configuration with yaml anchors

I have a deployment.yaml file and want to reuse the environment for all my deployments like this: apiVersion: apps/v1 kind: Deployment metadata: name: beat spec: selector: matchLabels: ...
Most Wanted's user avatar
-1 votes
1 answer
4k views

invalid base hashes in `extends` with 'include' -- gitlab-ci

I have a huge .gitlab-ci.yml file that I am trying to turn into the "main" ci file by moving some parts to another files which will then be called with the use of the "include" ...
aboitier's user avatar
  • 189
0 votes
1 answer
483 views

devops - Optomizing gitlab cicd pipeline's caching

I have a gitlab yaml I've been working on for a bit and while everything works it seems like each job takes quite a bit longer than it should. I tend to think the culprit is that npm files are fetched ...
Jacksonkr's user avatar
  • 133
6 votes
1 answer
22k views

ansible error: skipping: no hosts matched

I've tried a few variations on running ansible locally as a test case: nicholas $ nicholas $ ls ansible.cfg ansible.cfg.orig first_playbook.yml inventory.txt playbook.yml nicholas $ nicholas $ ...
Nicholas Saunders's user avatar
0 votes
2 answers
2k views

network ansible command error: "msg": "network os centos is not supported"

How do I get the ansible config for rolly below? remote: [nsaunders@rolly ~]$ [nsaunders@rolly ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: ...
Nicholas Saunders's user avatar
1 vote
2 answers
786 views

gitlab CI job fails after manual ftp deploy (lftp) command completes successfully

Scenario I'm using LFTP to deploy files via sftp. The transfer completes successfully and all files get to the destination but for some reason the job fails. Question How can I find out what is ...
Jacksonkr's user avatar
  • 133
1 vote
1 answer
254 views

How to render assets when building a static website with GitLab Pages and Jekyll

I'm using Jekyll to build a static site and deploy it with GitLab Pages. This site is compounded of posts (contained in the site/_posts folder) and refer to other HTML and Markdown documents that I ...
avazula's user avatar
  • 939
1 vote
1 answer
1k views

Azure DevOps Pipelines running on incorrect branches

I'm attempting to build different branches with different YAML configuration files in each branch. However, when I commit to a branch that should only trigger 1 pipeline it triggers both. Development ...
nulltron's user avatar
  • 121
1 vote
4 answers
2k views

Passing replicas number into container

I have a statefulset with an init container which creates openshift objects upon scaling. I need to pass it the replicas number from the same yaml definition. However the replicas filed doesn't seem ...
flowerProgrammer's user avatar
3 votes
2 answers
2k views

yaml files in jenkins pipeline

Just started out working on jenkins, among other things I'm trying to understand the role of yaml in pipelines. I understand that pipelines or declarative pipeline (do other type of pipelines exist in ...
whatever's user avatar
  • 131
5 votes
1 answer
2k views

Gitlab: Always having the possibility to launch a manual job (even if something failed before)

I'm using gitlab-ci. I have a pipeline that has the following steps : code-verification some tests deploy (manual) some more tests rollback (manual) Both the deploy and the rollback job have to ...
BelovedFool's user avatar
6 votes
1 answer
5k views

How to properly setup a multi-environment release pipeline in Azure YAML pipelines?

We have just migrated from TFS 2018 to Azure DevOps Services and we're having a hard time trying to figure out the new Azure YAML pipelines. We want to be able to: Run a build/test pipeline when a ...
empz's user avatar
  • 77
5 votes
1 answer
1k views

Ansible: Use inventory_hostname variable in lineinfile module

I'm using Ansible 2.7.9 and I'm having trouble with the regex definition in the lineinfile module. My file has the following line: host.example.com = /path/to/a/directory I want to remove that line. ...
Jonas Hüsser's user avatar
5 votes
2 answers
6k views

docker-compose multiple services in a loop

Trying to optimize definition of multiple services with docker-compose.yml Here is the original, "dumb" variant of the docker-compose.yml: version: '3' services: s1: build: . ports: - "...
Alexander Shcheblikin's user avatar
1 vote
1 answer
425 views

Ansible seems to execute infinite loop

I wrote some roles for my home lab to setup a GlusterFS cluster. But when I run it on my 2 nodes, some tasks get executed over and over again and it seems that it never ends. Here is the log output (...
dfsg76's user avatar
  • 207
3 votes
1 answer
2k views

Running two containers in a kubernetes job each with their own initContainers

In this SO article I understand that I can run a sequence of initContainers before running the containers defined in spec.template.spec.containers. https://stackoverflow.com/questions/40713573/how-...
David Parks's user avatar
5 votes
2 answers
13k views

Custom inventory file failing to parse properly

I've got the following production inventory file (playbooks/production.yaml) for Ansible: all: children: control: moriarty.server.com toby.server.com managed: sherlock....
Lucky The Rabbit's user avatar
0 votes
1 answer
349 views

Why Ansible skip items in inserafter?

I have about 10 hosts that I run a playbook for them with serial:1. in this playbook there is this code which append output of all commands in one file: - name: copy the output to a local file ...
BlackCrystal's user avatar
2 votes
1 answer
10k views

how to prevent Ansible from showing output on screen?

I have this in my playbook which execute a command on remote server and enters its log on local server. - name: run script shell: runuser -l testuser -c "/tmp/test.sh" register: myshell_output ...
BlackCrystal's user avatar
0 votes
1 answer
663 views

error validating data: couldn't find type

I have following yaml file: --- apiVersion: v1 kind: pod metadata: name: Tesing_for_Image_pull.pod spec: containers: - name: mysql image: mysql ...
PersianGulf's user avatar
11 votes
3 answers
13k views

Rename build pipeline .yml files in Azure DevOps

I have a .NET Core application that has three build pipelines. (Windows, Linux, macOS) In each of them, the application gets assembled a little different. This part works so far. Azure created for ...
Ned Flanders's user avatar
1 vote
1 answer
8k views

Error passing arguments to ansible playbook

I am trying to create a playboook that executes a python3 script with 2 parameters, name and password in localhost. However, when i try to execute the paybook with this command ansible -b --become-...
ras212's user avatar
  • 113