Most Popular

1500 questions
37
votes
4 answers

What is the purpose of AssumeRolePolicyDocument in IAM?

I'm confused as to what the purpose of AssumeRolePolicyDocument is. It seems like to create a role all you need is a parent name that you can attach policies to. It seems like AssumeRolePolicyDocument is that parent name but somehow there's more to…
Dr. Chocolate
  • 605
  • 1
  • 6
  • 9
37
votes
4 answers

docker-compose invalid type, it should be a string

I have the following environment variable configured in a docker-compose.yml file: version: '3' services: server: ports: - 13045:3000 environment: - NODE_CONFIG: '{"DATABASE_URL":"http://db:5984"}' When trying to run…
Tri Nguyen
  • 471
  • 1
  • 4
  • 5
37
votes
5 answers

How to avoid interactive dialogs when running "apt-get upgrade -y" in Ubuntu 16.04 when packaging with Packer?

I'm using Packer to create an AWS AMI based on an Ubuntu 16.04 image. In the beginning, I'm doing an upgrade: sudo apt-get update sudo apt-get upgrade -y Here is the relevant part of my provisioners section: "provisioners": [ { "type":…
Philipp Claßen
  • 1,675
  • 3
  • 18
  • 30
36
votes
4 answers

How to remove directories and files in another layer using Docker?

Why this question? The reason for posting this Q&A is that sometimes certain software is required to compile software in a docker image. Once compiled, these packages are superfluous and should be removed in order to reduce the image size. In some…
030
  • 13,383
  • 17
  • 76
  • 178
36
votes
5 answers

How to properly achieve dynamic parallel action with a declarative pipeline?

Currently, I'm going to need an implementation that must find all files within a directory and start a parallel task for every file found. Is it possible to achieve this using declarative pipelines? pipeline { agent any stages { …
thclpr
  • 871
  • 1
  • 7
  • 9
35
votes
3 answers

Who is this Chaos Monkey and why did he crash my server?

I had a perfect server, it was so pretty and rock solid and so I named it Petra. It was perfect in every way, everything was configured and tuned just right, it had perfect 100% service record and 753 days of uptime. I've spent a lot of time and…
Jiri Klouda
  • 5,867
  • 1
  • 22
  • 54
35
votes
9 answers

How to get kubernetes pod network CIDR

I have a running k8s cluster initialized with kubeadm. On initialization, I did not pass the option --pod-network-cidr How do I get the CIDR of the pod network I tried Looking at the /etc/kubernetes/manifests/kube-apiserver.yaml which seems to be…
Tran Triet
  • 879
  • 3
  • 11
  • 21
35
votes
4 answers

How can I force Docker Compose to rebuild containers when dockerfile changes?

I am using docker-compose to start 2 containers using the following docker-compose.yaml. version: '2.4' services: myservice1: container_name: mycontainername build: context: . dockerfile: ./my-dockerfolder/Dockerfile …
bnieland
  • 465
  • 1
  • 4
  • 6
35
votes
9 answers

How to install Certbot plugins?

I installed Certbot by following this tutorial: sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-nginx And now I want to set up my cert, but I need the dns-digitalocean plugin: # certbot certonly…
mpen
  • 601
  • 1
  • 6
  • 10
35
votes
3 answers

Is DevOps compatible with ITIL?

In my career, I have been both a software developer and ITIL practitioner in an operations role. Thus DevOps was a natural progression for me. However, I have always struggled with the highly specialised language that ITIL introduces and making that…
Richard Slater
  • 11,747
  • 7
  • 43
  • 82
34
votes
4 answers

Why is the AWS EC2's spot price greater than the on-demand price?

I was trying to provision spot instances via Ansible yesterday, and almost all my requests failed, even when I put my spot price == the on-demand price of that instance. So, when I had a look at the spot pricing graph, I found something very…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
34
votes
2 answers

What is a good strategy to keep my site online when S3 goes offline?

What is a good strategy to keep my site online when S3 goes offline? If S3 US East 1 goes offline, how should I have my app configured/structured to prevent that taking my entire site offline? What are the best strategies to diversify in this sort…
jcolebrand
  • 1,275
  • 10
  • 14
34
votes
7 answers

Why shouldn't I try to hire a 'DevOps Engineer'?

The idea of having a DevOps Engineer has become quite popular recently, and it seems appealing to just have a person who can slot in and provide many of the benefits of DevOps, as described in the Puppet blog: Organizations using DevOps practices…
Aurora0001
  • 1,532
  • 19
  • 34
34
votes
4 answers

Can I bypass host key checking in Ansible?

I'm running an Ansible playbook with a subtle hack to work on an arbitrary port forwarded port (so I can use one machine with no direct access to lots of machines). I've got a pre-task to change the ansible_port variable, so then when I start…
Peter Turner
  • 1,482
  • 4
  • 18
  • 39
34
votes
3 answers

Is there a way to run with_items loops in parallel in Ansible?

I'm running Ansible 2.2, but can upgrade if it helps. I saw this and was pretty excited, but it doesn't seem to be in this (or any) version of Ansible documentation. The problem I'm trying to solve is I've got 1000 users that I need to manage on a…
Peter Turner
  • 1,482
  • 4
  • 18
  • 39