Most Popular

1500 questions
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
  • 2
  • 16
  • 30
36
votes
3 answers

How can we get the jenkins console output in a text file?

How can i get the Jenkins console output in a text file? I want to share it with someone, is there any way to do it?
Jay
  • 994
  • 2
  • 10
  • 20
35
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,235
  • 16
  • 74
  • 173
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,807
  • 1
  • 21
  • 53
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,612
  • 6
  • 41
  • 81
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
  • 23
  • 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,265
  • 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,522
  • 19
  • 34
34
votes
3 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,430
  • 4
  • 17
  • 35
34
votes
5 answers

Where to put ansible-vault password

We are planning to use ansible vault in our project to prevent leaking passwords or keys in git. The idea is to put all our sensitive data into a plain file then encrypt this file with ansible-vault using a password before pushing to git. To…
storm
  • 1,759
  • 3
  • 15
  • 34
33
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,430
  • 4
  • 17
  • 35
33
votes
5 answers

How to tag source code using gitlabCI

We got gitlab new to our environment and trying to create some CI CD pipelines using gitlab CI. I have got some better progress with running some maven goals, creating pipelines and archiving artifacts using my .gitlab-ci.yml as below. I tried to…
pandey
  • 949
  • 2
  • 9
  • 18
33
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
  • 831
  • 1
  • 7
  • 9
33
votes
3 answers

Understanding Docker layers

We have the following block in our Dockerfile: RUN yum -y update RUN yum -y install epel-release RUN yum -y groupinstall "Development Tools" RUN yum -y install python-pip git mysql-devel libxml2-devel libxslt-devel python-devel openldap-devel…
alecxe
  • 849
  • 1
  • 14
  • 36