Reddit DevOps
268 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Introducing: AsCode an Alternative Syntax for Terraform

Today the first stable verison of AsCode was released:
AsCode allows you to describe your infrastructure using an expressive language in Terraform without writing a single line of HCL.

https://github.com/mcuadros/ascode

https://redd.it/frogd4
@r_devops
Just use a managed service

Friends don't let friends roll their own

My [new post](https://medium.com/@alonisser/managed-services-6e205f502098?sk=d5652737b87eb780c36eea2592b6c8f9) on why you probably shouldn't role your own metrics/persistence/search etc infra

https://redd.it/frqavd
@r_devops
Do you know any good GitHub repository with an example of a perfectly well crafted devops "infrastructure" for an API?

Do you know any good GitHub repository with an example of a perfectly well crafted devops "infrastructure" for an API? It can be made using any framework/language, but preferably Node, Spring, ASP.NET or Python. Also, could you tell us why you think it's a really good repository for learning?

https://redd.it/fs4e14
@r_devops
Implementimg DevOps in the Endpoint space

I'm curious if anyone has gone down the path of implementing DevOps concepts into the Endpoint space (Desktop/Laptop/Mobile/VDI). The Endpoint space is part of infrastructure & operations, and has traditionally been a very Ops-focused role.

I understand the need for getting code into Git and to version control everything from the code side. But for enterprise Endpoint departments, most of the tools are very GUI-driven.

CI/CD works for some routine operations. Packaging software and distribution come to mind.

When talking Infrastructure as Code or Immutable Infrastructure - this becomes even harder to apply in the Endpoint space. When you have thousands of endpoints and users configure those endpoints all to their liking, it's hard to treat the fleet as "cattle" when they intrinsically pets.

In summary, for Microsoft shops that use tools like ConfigMgr/SCCM/Intune, Group Policy, and other standard management tools, how does one fully implement DevOps? All the research and practicing I've done over the years has been applicable in the Server space. I haven't seen or heard from any IT shops using DevOps in the Endpoint space. Have you?

https://redd.it/frvgsd
@r_devops
Is it good for my career to shift to devops after being a full stack web developer for 3 years?

I'm also interested in data science and artificial intelligence fields. I've been a .NET developer and wanted your opinion if I could be hurting my career growth by going into devops field. As few people told me it's not as lucrative as AI or data science.

https://redd.it/frp5s1
@r_devops
Azure Prioritizing Workloads in regions hit hard by COVID-19 related demand

Azure has announced that they will be limiting new accounts and requests for resources in regions hit hard by covid-19 induced demand. This includes many regions in the USA and Europe. In their release they mention that demand in some regions is up by 775%!

AWS has not made a similar announcement and continues to run normally. Could this be because Azure is used by government, medical and the like more than AWS?

You can learn more about this and other announcements this week at This Week in DevOps: [https://thisweekindevops.com/2020/03/30/weekly-roundup-march-30th-2020/](https://thisweekindevops.com/2020/03/30/weekly-roundup-march-30th-2020/)

Have you experienced any issues with Azure personally? If so how are you remediating them?

https://redd.it/frrt83
@r_devops
Learning more about DevOps, Container, and Cloud Solutions

Article with workshop, books, courses, lab and articles around DevOps, Cloud, container, and Kubernetes. I hope it can help to increase your knowledge on those topics, enjoy it: [https://medium.com/@fernando0stc/learning-more-about-devops-and-cloud-solutions-cfd86b4a7f43](https://medium.com/@fernando0stc/learning-more-about-devops-and-cloud-solutions-cfd86b4a7f43)

Any other recommendation share here, please

https://redd.it/frre2q
@r_devops
Rundeck and Ansible inventory management

For the people using Rundeck and Ansbile how do you manage inventory which will need different user accounts?

My inventory looks like this:

Lets say I have an inventory file like this

[webserver]
wsp01
wsp02

[webserver:vars]
ansible_user=apache

[database]
dbp01
dbp02

[database:vars]
ansible_user=postgres

When I create a project, I don't know what to put to discover the nodes because each type of server(web server & database) have a different user.

https://redd.it/frpx5p
@r_devops
Unable to run AWX on port 8080

I'v installed AWX on a server host on the google cloud platform.

When I initially installed AWX it ran on port 80 which worked fine. I then wanted it to run on port 8080 so I could later set up a reverse proxy with nginx, so i changed the inventory file and ran the playbook again but I could not connect to the app on port 8080.

docker ps output:

c95d21f1c0f9 ansible/awx\_task:9.3.0 "/tini -- /bin/sh -c…" 22 hours ago Up 22 hours 8052/tcp awx\_task

88cb561af12f ansible/awx\_web:9.3.0 "/tini -- /bin/sh -c…" 22 hours ago Up 22 hours 0.0.0.0:8080->8052/tcp awx\_web

e42db0627be7 postgres:10 "docker-entrypoint.s…" 24 hours ago Up 22 hours 5432/tcp awx\_postgres

02ee5536be70 redis "docker-entrypoint.s…" 24 hours ago Up 22 hours 6379/tcp awx\_redis

f9d017d25160 memcached:alpine "docker-entrypoint.s…" 24 hours ago Up 22 hours 11211/tcp awx\_memcached

I am confused as to why it works on port 80 but not on port 8080 after re-configuring the inventory file. am I missing something?

Thanks for the help :)

https://redd.it/frp8o5
@r_devops
Need Help with zookeeper and nifi cluster set up

Hi,

I am a noob here and have been given a task for nifi with zookeeper set up on the same machine and I am unable to wrap my head around it.

Can someone please help with some resource

https://redd.it/frp7jr
@r_devops
CloudOps Monthly Newsletter: March

I write a monthly newsletter that was originally being published directly in the email, but I've recently decided to move it to my website instead. I believe this will make it easier to share.

[https://www.thecloud.coach/newsletters/march/](https://www.thecloud.coach/newsletters/march/)

I focus on specific core technologies like Terraform, GitLab, Ansible, AWS and public Cloud in generally. I also include interesting articles and important pieces of knowledge sharing that I find.

https://redd.it/fsa1hz
@r_devops
Working From Home [Self Isolated]

I always thought working from home would be the dream, maybe it is, but not when it's forced upon you!

I'm coping with it ok but I find it hard to stay focused when it's just me in a room, any tips from those that work remote full time?

I also decided to capture just how mundane my day was yesterday in a timelapse 😂

https://youtu.be/q6AZTa-VEZI

https://redd.it/fsb01o
@r_devops
Are there any tools you find yourself using more now that you're home?

I'm not sure why, but I'm curious if there are certain things you find yourself doing more while working from home than you were doing when you were in the office?

https://redd.it/frm1en
@r_devops
Can anyone help in API implementation?

I am facing a problem with the implementation of API, it's a bit complicated thing and I'm done searching it, can anyone help?

https://redd.it/frp5ng
@r_devops
Do you decouple build logic from build server?

I'd like to get a sanity check on my approach to build servers and scripts if you will. I've been writing and maintaining build scripts in CI servers for years - Jenkins, Travis, Bitbucket Pipelines, Gitlab, etc. Each of these servers has some kind of "trigger script" (my name)- Jenkins UI scripts, Jenkinsfile, travis.yml etc what sits in source control but works only on the server it was designed for. My approach to trigger scripts is to write as little as possible in them as possible - normally just some trigger conditions (build on tag for travis for example), set env variables, etc and then I call a single "build. sh \[some args\] ".

Build. sh also lives in source control - it's a monolith script, normally written in bash. It contains \_all\_ build logic, and is written to be run by a human on a developer PC, and also by Jenkins on a build system. It has sane/safe defaults, and these can be overwritten with shell or env arguments. I use no Jenkins plugins at all, except for VCS watching and credential management. I don't use pipelines, mainly because I work in gaming where a full pipeline run could take hours and span many different machines. Instead I wrap each pipeline stage in an independent HTTP microservices and chain those together outside of the CI server, but often the CI server is responsible for triggering the first microservice in a chain.

My approach is to treat the CI server as just another user on just another host machine, and all users and hosts machines are equal. A CI server is just a cronjob & credential manager, with a UI. Running a build should always be achieved by calling a single shell script, with optional arguments to modify that.

Based on your experience, am I missing out one some fabulous new advancement in CI tech (I use containers when possible)? Is this approach over or under-engineered? Is it more error prone, or difficult to maintain by others?

https://redd.it/fschiv
@r_devops
Fetching gitlab usage information

Do you guys have any idea how to get all the information about the projects running in gitlab in term of number of commits and builds, and if such info is exposed by the api so i can write an exporter that collects them ?

https://redd.it/fs9bw5
@r_devops
Why is DevOps so hard to get right?

Check out my article and let me know what you think! What challenges does your organization face? Share your experience!
“Why is DevOps so hard to get right?” https://link.medium.com/1LUEnzS9i5

https://redd.it/fsgi73
@r_devops
Automatically generate SSH config files for AWS

I usually have to deal with more than two dozen servers on AWS with different jumphosts. I wrote a script to simplify generation of SSH config files since servers are often deleted and replaced. It's been a useful utility in my toolbelt and I hope it helps other people than me.

[https://github.com/danihodovic/generate-ssh-configs](https://github.com/danihodovic/generate-ssh-configs)

https://redd.it/fsi4vq
@r_devops
Would you take it?

I just received an offer as a Senior DevOps Engineer for a small company. The role is following DevOps practices but is maybe 15% in cloud. This role for me would be a large pay increase (\~35%) and better benefits, less hours (currently working 70-80 hours a week).

The organization is using CI/CD, Terraform, Ansible, Containers, etc..

My main question is, do you think it would be okay to move from a company that is 100% in the cloud to a company that is mainly on-prem? Though my current company is 100% in the cloud, it isn't using DevOps tooling/practices as much as I'd like (I'm the only one using Terraform, Ansible, CI/CD within my cloud engineering team).

From an organizational perspective, I'm confident in the move. I really want my life back, the people seem good to work with, and the company is doing good in the world.

https://redd.it/fsgvyx
@r_devops
Simple mail server with REST API.

Hi,

Been searching a bit, I'm looking for a simple mail server with a REST API for user creation. The use case is embedding a dedicated mail server as part of a Docker stack I'm deploying, ideally it would come with a web interface.

I looked at mailu, doesn't have a REST API and Postal which has an incomplete API (no user creation).

Any suggestions are welcome!

Thanks :)

https://redd.it/fsi35p
@r_devops