Most Popular

1500 questions
5
votes
1 answer

Cannot configure node group in new EKS cluster due to no Node IAM role found

I've created a new EKS cluster, and am trying to add a new node group to it. I'm stuck on selecting a Node IAM Role from the dropdown. I followed the link, and created all options for roles I could see fit, still none appear in the dropdown. Note:…
Mugen
  • 153
  • 1
  • 5
5
votes
1 answer

How to buy more Azure DevOps pipelines build minutes?

As mentioned on the Azure DevOps official pricing page, the plan provides 1 Free Microsoft-hosted CD/CI parallel job with up to 1800 minutes per month and 1 Free Self-hosted CD/CI parallel job with unlimited minutes per month. When we exceed the…
sithumc
  • 272
  • 2
  • 11
5
votes
1 answer

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. As {{ inventory_hostname }} contains dots, I'm…
5
votes
2 answers

What is the way to update images in a configuration git repository when doing gitops?

i'm trying to do gitops I have a Configuration repo containing k8 manifests and different app repos. 1) App repo's CI build docker images and pushes into registry. 2) App repo's CI commits into Configuration repo with newly built image tags. A…
Slim Shady
  • 153
  • 4
5
votes
1 answer

Why do I need tools like minikube or microk8s to run k8s locally?

I'm just getting started on k8s and got stuck on running k8s locally (it's running, but I don't understand exactly) Pretty much all the tutorials on running k8s locally use minikube and I'm a little bit puzzled. Isn't docker + k8s combination…
Moon
  • 153
  • 3
5
votes
2 answers

How to version control shared database?

We have several C# applications using a shared monolithic database (on-premise SQL server) using Stored Procedures as an exclusive interface. The C# code repositories include only Stored Procedures that are relevant to them, which means a single…
Zikato
  • 153
  • 4
5
votes
2 answers

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: - "5001:9000" volumes: - ../www1:/var/www …
5
votes
2 answers

Ansible warning that host key has changed, even though I've taken multiple steps to prevent this warning

I've followed the recommendations I could find to prevent this from happening. I am using Vagrant, but once the boxes are spun, I'd like to do things with the ansible command sometimes. $ grep host_key /etc/ansible/ansible.cfg …
5
votes
1 answer

How to remove a non-existing GitHub Ansible role from Galaxy?

According to this documentation it is possible to remove a role from Galaxy, but the following fails: ansible-galaxy login succeeded ansible-galaxy delete 030 https://github.com/030/ansible-firewall resulted in: ERROR! Galaxy user 030 does not…
030
  • 13,235
  • 16
  • 74
  • 173
5
votes
1 answer

How do I dynamically take variables from previous plays in Ansible?

Example, I have 3 tasks, which are registered ec21, ec22 and ec23. ec22 runs when ec21 fails, and ec23 runs when ec22 fails. Now, I have another task below it which is : - name: Add new instance to host group add_host: hostname: "{{…
Dawny33
  • 2,816
  • 3
  • 23
  • 62
5
votes
1 answer

How to keep many servers (5000+) up-to-date?

Initially asked here: https://stackoverflow.com/questions/60674502/how-to-keep-many-servers-5000-up-to-date-with-git-and-its-rate-limits The initial post: We're making a php service that will run on many servers, think 5000+. We host our code on…
5
votes
2 answers

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.server.com Based on what I'm reading online, it…
Lucky The Rabbit
  • 95
  • 1
  • 1
  • 5
5
votes
2 answers

Jenkins trigger build if shared library changes

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "common" } triggers { pollSCM("H/2 * *…
Nilesh
  • 203
  • 4
  • 9
5
votes
2 answers

How to `terraform destroy` an `aws_instance` without also destroying its `aws_ebs_volume` (separate resource)

$ terraform -version Terraform v0.12.21 + provider.aws v2.34.0 Given a terraform configuration for one set of single aws_instance, aws_ebs_volume and aws_volume_attachment resources, each named, say,foo; How would one terraform destroy…
cueedee
  • 151
  • 6
5
votes
2 answers

Ansible temp dir change

Ansible version 2.9.2 Is it possible to change ansible temp dir for one playbook only? I have VMs with r/o root. So, the playbook fails. Even if I run my playbook under root user on target VM it can't create ansible temp files that it creates in…