Most Popular

1500 questions
11
votes
3 answers

ansible: difference between a variable and a fact

While I'm using Ansible for quite some time, I'm not sure I really understand the differences between a variable and a fact. Would it be any difference doing - set_fact: nginx_ssl: /etc/nginx/ssl nginx_conf_file: /etc/nginx/nginx.conf or …
11
votes
3 answers

What is a reasonable level of coding expertise expected of an SRE?

SREs and coding is a contentious topic. In most situations, SREs end up spending a lot of time on operational tasks, even while being efficiency and automation focused. This means that SREs don't spend as much time coding as a full time developer,…
codeforester
  • 381
  • 1
  • 5
  • 28
11
votes
2 answers

How to track changes to AWS settings?

Is there a way to track changes we make to the AWS system? For example, changes to a subnet setting, from using nat to iwg - these display a message, and then disappear. Is there a way to get AWS to create a log so that one can track which changes…
Danny Schoemann
  • 451
  • 5
  • 19
11
votes
2 answers

Can I rename an RDS instance?

I have inherited a collection of RDS MySQL instances with random (useless) DB Instance names. I often have to dig into the tags section to find out which project they belong to. One of the settings I can modify in an RDS is the DB Instance…
Danny Schoemann
  • 451
  • 5
  • 19
11
votes
1 answer

Jenkins Pipeline job; proper quoting for slackSend step

This is probably 100% user error, but I can't get a pipeline job to use a variable as the channel name in a slackSend step. This uses both the Slack plugin and the Build User Vars Plugin. I'm trying to use BUILD_USER_FIRST_NAME to identify which…
Alex
  • 4,512
  • 6
  • 27
  • 47
11
votes
1 answer

How to upgrade job-dsl files to Jenkins 2 pipelines?

Is there a common practice for migrating a large repository of Jenkins job-dsl to Jenkins2 pipelines? I am looking for ways to test the behaviour of builds, that go a little further than comparison of generated artifact from same code base. Actually…
ᴳᵁᴵᴰᴼ
  • 1,163
  • 10
  • 22
11
votes
3 answers

What are the pros and cons of Azure Artifacts vs. Artifactory?

We have a requirement where we need to develop a custom product where the software component life cycle needs to be managed i.e. upload, download, recall etc. one option is to go with Custom API leveraging Azure Artifacts and the other option is to…
shri
  • 211
  • 1
  • 2
  • 6
11
votes
1 answer

Assertions and constraints

I'm constructing a template to build a configuration file, and the service that consumes this file places constraints on identifier lengths. If an identifier is longer than, say, 6 characters, the service will get part-way through applying the…
Michael Mol
  • 1,045
  • 1
  • 8
  • 19
10
votes
5 answers

What is self hosted version control system?

What is self hosted version control system and how is it different from github? I mean if I use self-hosted VCS then where does my code go? I mean: does it get uploaded to the server, or it is saved on my local machine? If it is uploaded to the…
Qasim Arthuna
  • 101
  • 1
  • 5
10
votes
5 answers

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local directory is mounted as a volume: volumes: …
Bruce Becker
  • 3,573
  • 4
  • 19
  • 40
10
votes
2 answers

Why does chown not work in RUN command in Docker?

I have the following docker-compose file: version: '2' networks: default: driver: bridge services: yii2-app: build: context: . dockerfile: ./Dockerfile-app ports: - "80:80" networks: - default …
Log
  • 271
  • 1
  • 2
  • 7
10
votes
5 answers

Debug Docker caching issues

I am trying to improve CI/CD performance and part of that is improving the caching behaviour of Docker builds. I find myself trying to debug what exactly invalidates the cache. Are there any ways to query the Docker build process to get more…
Torque
  • 201
  • 2
  • 3
10
votes
3 answers

Why could the encrypted Ansible files not be decrypted although the vault password file has been set?

Follow-up to this Q&A. According to this and this documentation it should be possible to define a default vault password file by specifying vault_password_file = ~/.vault_pass.txt in one of the following files: * ANSIBLE_CONFIG (an environment…
030
  • 13,235
  • 16
  • 74
  • 173
10
votes
3 answers

Bitbucket Pull Request Builder Configuration Jenkins

I need to integrate BitBucket with Jenkins, so that whenever a PR is opened in BitBucket, it will trigger a build in Jenkins. Can someone help describe the exact configuration step that I should follow in BitBucket and Jenkins to achieve this? This…
kumar
  • 109
  • 1
  • 1
  • 5
10
votes
1 answer

When would I use docker-compose's "--service-ports" flag?

Docker-compose's run reference includes the "--service-ports" flag. --service-ports Run command with the service's ports enabled and mapped to the host. Source: https://docs.docker.com/compose/reference/run/ The…
Worp
  • 679
  • 4
  • 10
  • 19