Reddit DevOps
277 subscribers
69 photos
32.2K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Splitting tests by timing in circleci

Hi all,

I'm trying to work out how to split tests by timing in circle. I have the following in my config:

`- run: gotestsum --junitfile /tmp/test-results/go-test/$(echo $RANDOM).xml $(go list ./... | circleci tests split --split-by=timings)`

`- store_test_results:`
`path: /tmp/test-results/`

The thought with the $RANDOM was that since we are splitting the tests and each container writes a new file, that it would read in all the files and combine them when it read the test results on run. That clearly isn't happening. Does anyone have a good example on how to properly split go tests by timing in circleci?

https://redd.it/eyxxnr
@r_devops
Terraform creating EC2 with AWS launch template

Hi all,

Asked my coworker about wanting to use Terraform to create a new EC2 instance and have it consume an existing launch template... but it didn't look like Terraform cloud could consume an existing launch template. So when I asked if that was the case, I was asked to define what a launch config was for, and the next response I get is "define what terraform is, and then smack yourself in the back of the head". And I don't know why it was a dumb question.

We have user data in the launch template that bootstraps the ec2 to our chef server and then assigns the node a role, which has a runlist assinged to that role.

I wanted to have Terraform create the new ec2, and use the launch template since it has the existing user data needed for the chef bootstrapping, role, runlist, etc.

I guess that wasn't a feasible or logical thing to suggest. Anyone have the patience to explain to me why?

Thanks!

https://redd.it/ez0r5i
@r_devops
Just laid off. What should my next steps be?

I've been working at a small company for 5 years as its sole IT/DEVOPS person until it was acquired last summer. Things were looking good, was moved to an SRE team based out of the new parent company and promoted, the works. We spent 6 months on refactoring the old app to make way for directives from the top, and boom, this morning they called me in to lay me off.

I could use advice on what to do to shop myself around to other local tech companies, and how to represent my experience. I'm self taught, my skills are python, SaltStack, AWS cloud, and process architecture. I'd like to be making a move to something similar to my current, erm, former role, but I got there by starting as a junior programmer and moving up as opportunity came. Any thoughts would be appreciated.

https://redd.it/eytrr0
@r_devops
Getting ready for first DevOps job

Hello fellow redditors,

I am turning here for your help to get ready for my first, ever, DevOps job interview. I've found articles here and there talking about general DevOps culture, some differencies between Dev, Ops and so. However - I would need some help from you - experts and get some advices on specific topics.

First - to line up topics that were mentioned:
\- coding/scripting
\- infrastructure
\- scaling
\- running applications

Also they mentioned, they are in process of migrating services to containers, so Docker and k8s might be in question.

Second - I was told to bring my laptop with working coding env.


So I would like to get help from all of you experts in here, to line up some questions that might apear in regards of topics above and also, some of the scripting/coding excercisses they might be asking.

Third - any general advice for technical interview, feel free to share your knowledge with me (pretty please).

https://redd.it/eyz80e
@r_devops
Technical Interview with a seemingly Non-Technical person?

I have a 1 hour long technical tomorrow with a big company for a DevOps Intern role. I looked up the person who will be interviewing me according to the email I received and it appears that they don't really have any technical experience, not even a STEM degree from college. Anyone know what kind of questions I could expect, considering it is a "technical"? Also if anyone has any advice for prepping for a devops role, please share I could use it! I've just been brushing up on the things they asked in the HackerRank and learning about what DevOps actually is lol. I appreciate any insight y'all have, I'm super nervous, thanks!

https://redd.it/eyx8as
@r_devops
Any suggestions how to establish the devops for my application?

Hi reddit!

I've recently worked on a product that manages orders of a Café company from their supplier.

I need help understanding how to run the devops side of it. I'm using a standard MERN setup (MongoDB, Express, React, Nodejs).

Currently, I'm using Heroku (which is amazing but a bit expensive for the current state of the product), Mongo ATLAS (Not having any issue with the free tier at the moment)

My product is quite simple. There are 3 types of roles:

**Location:** Viewing, creating orders (Usually 1 order per day)

**Supplier:** Viewing orders, marking them as "shipped" (Usually entering every day)

**Owner:** The one with the "bird's-eye view", can't do anything (Entering just few times a month)

In total, I have 8 users but not all of them enter the app every day.

​

I don't have any experience with AWS but I'm up for learning whatever is needed.

I'm doing any aspect of the app (design, product, front and back end)

If anything is unclear feel free to ask me anything.

Thanks in advance!

https://redd.it/eyx3fe
@r_devops
Opinions on Jenkins X?

I'm going to be working on a Jenkins X project and was interested in people's opinions on it.

https://redd.it/eyptuy
@r_devops
Anyone familiar with github actions? I can't figure out how to install a github action to my repository.

I am trying to install this action to my repo, but I don't know yaml or actions enough to figure it out.
https://github.com/paambaati/codeclimate-action

https://redd.it/eywj6f
@r_devops
with more powerful ultrabooks, whats stopping most people from working with different VMs aside from software licence cost?

For example:

win10 host machine running vmware WKS with 3 guests:

1. one guest for office apps like email
2. one guest for development tools
3. one guest for browsing

leaving the main host to just be a transit area and VM backup storage.

the benefit I see are:

1. you can easily backup each VM and if something goes wrong or you get a virus through email or some sort; just delete the vmdk and paste a backup.
1. break one guest; and the others are isolated and unaffected.

cons:

1. battery
1. overhead of 4 OS running on the same hw
1. price of multiple software licenses that could have only been one.

thoughts?

https://redd.it/eyw0sg
@r_devops
Infrastructure as Code: Best Practices

Not sure if this is for here however I have been looking in to some IAC concepts and I was looking in to scripting the provisioning of development environments.

Currently I am using azure stack. We have environments that need spinning up weekly for our development team and this means a lot of time spent provisioning. I was looking to use the Azure ARM templates to provision the servers then PowerShell DSC to configure SQL and the Web Server. I was wondering if anyone has any tips of experience they can share on this.

What I want to provision is:

1 - SQL Server, SQL 2019 with our custom configuration

1- Web Sever, IIS/NODE/Custom Fonts

1- CRM Server

I'm looking at ways I can spin all of this up with a new naming convention and IP config for each environment and VM.

example:

WEB1TEST

SQL1TEST

CRM1TEST

​

WEB2TEST

SQL2TEST

CRM2TEST

​

WEB3TEST

SQL3TEST

CRM3TEST

​

Is there any best practices I should follow or anything to watch out for as someone doing this and planning this for the first time?

(side note, would it be good to use GIT to store and update these scripts and templates?)

https://redd.it/eyozia
@r_devops
Deployment Digital ocean

Hi, I am trying to deploy angular app with nodejs api one same droplet, I need them to communicate. What do you preffer me to do? I was thinking on some kind of loadbalancer is needed.

https://redd.it/eys9ey
@r_devops
ci and permissions

What user do you run your CI software (jenkins)? I presume you run it as a user with little access or do you run it as application user?

https://redd.it/eyoy1b
@r_devops
Create a CI/CD pipeline with Kubernetes and Jenkins

**Folks,**

CI/CD is an integral part of any modern environment that follows the Agile methodology. Taking CI/CD for granted is common for young DevOps engineers who might have not seen the “traditional” way of software release cycles.

Here is This week's Article [Create a CI/CD pipeline with Kubernetes and Jenkins.](https://www.magalix.com/blog/create-a-ci/cd-pipeline-with-kubernetes-and-jenkins)

**What's inside:**

1. What Does CI/CD Try To Solve?
2. What Is CI/CD Anyway?
3. What Is A Pipeline?
4. CI/CD Usecases & Labs.

[https://www.magalix.com/blog/create-a-ci/cd-pipeline-with-kubernetes-and-jenkins](https://www.magalix.com/blog/create-a-ci/cd-pipeline-with-kubernetes-and-jenkins)

https://redd.it/ez9fa9
@r_devops
AWS CodePipeline

Hello DevOps People Need your help, is there any tool that can visualise AWS CodePipeline like we see things on Jenkins Build, Deploy and failure and all.

Need tool that can give dashboard for AWS CodePipeline.
Is there anything that can help in this scenario?

https://redd.it/eymoph
@r_devops
Bash Scripting Role in Devops

Good Day Guys ..I am new into devops world (an ETL developer by profession) ..I wanted to explore the devops world and i started with Linux as step 1 ..Now iam planning to Learn bash scripting..I read from various forums about devops that shell scripting is a must have skill..so what i wanted to know was what is the use case of shell scripting in devops..i understand that scripting is used for automation ..but can anybody give me a real use case of bash scripting in DEVOPS world.. can anybody recommend me a good book ( i mean my purpose is not to know the syntax) i mean some thing close to real world examples(use cases of shell scripting)...

https://redd.it/eyj0ul
@r_devops
How VMware changed its own destiny with the rise of containers?

Smart move, but still, the vision is missing?

Once VMware ruled the virtualization world, but approached a little later when it comes to containers. VMware containers' 6% market share lags far behind leaders such as IBM's Red Hat at 44% and Docker with 23%.

VMware was a bit of hesitant to go on with containers initially until it saw the real tech moving towards containers altogether.

But wait, VMware is smart; it gradually made some moves to adjust itself with the market so it can compete with the containerization market really well and strong.

Instead of rebuilding the wall, it made a series of acquisitions, VMware acquired Heptio and bought Bitnami, both targeted towards Kubernetes market. Additionally, VMware partnered with Pivotal and then purchased it in December 2019.

What's your view on this?

https://redd.it/eylqpk
@r_devops
can with items and loop ansible create commas separator ?

i have create a task for mount point using loop and with items. I want to know if it is possible to create comma separator. If there is how can i do it , I mean this ansible output : 2.68gb, 2.35gb, 6.98gb

I tried join filter, it didn't work.

\-name: mount point

debug:

msg:

\- "{{ item.size\_total | human\_readable }}"

\- "{{ item.mount }}"

loop: "{{ ansible\_mount }}"

https://redd.it/eyjti6
@r_devops
How can I get only total size on mount point?

I use dh -f | awk {print $1} on shell command in ansible but its comes with total size and file system name. In linux command, it comes out only total size, how can i get that from ansible command?

https://redd.it/eyjnly
@r_devops
What's a good DevOps cert path: Deciding between CCNP Sec, or DevNet

I just jumped out of being Defense related (USAF, US Navy, government employee, contractor, etc) and back into technology/IT field, specifically Test and Measurement. My previous tech experience was as a SysAdmin for Sprint PCS where I managed a few hundred Solaris 8 boxes for maintenance and 3G (PCF) data service. I did also manage 2G servers for awhile but I was really glad when another group took those Windows server crap boxes off our hands. No more 3am wake ups because someone enabled screen saver which made the server stop working for some stupid reason.

Now, I support cyber testing and network (layer 2/3) transport measurement for my new employer. I was required to get a CCNA, which I completed a few weeks ago. I'm wanting to plan for the future and am trying to understand the future paths I can follow regarding certification, and how to dovetail it with my strengths, experience and interests. I believe DevOps fits, and specifically, using DevOps to automate security pre and post-testing. I see after Feb 24, 2020 there is a DevOps cert, and I specifically was thinking of taking the exam: Automating and Programming Cisco Security Solutions v1.0 300-735 [https://developer.cisco.com/certification/exam-topic-security/](https://developer.cisco.com/certification/exam-topic-security/)

However, I'm not quite sure how that works within taking the CCNP and specializing (if that's an option), or jumping off the CCNx path and over to DevOps, DevNet or whatever is the right term. In my background at Sprint, we looked to automate configuring and deploying servers. I'm hoping there are things similar to applying security across the enterprise.

If you were making this decision, which route would you follow? CCNP Security Certification or DevNet Professional Certification

https://redd.it/ezg7ub
@r_devops