Questions tagged [devops]
The devops tag has no usage guidance.
50
questions
-1
votes
0
answers
15
views
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection
I am stuck to configure publish over ssh on Jenkins, Jenkins container to ansible container in CLI. I am able to do SSH via Private key, but the same private key when I am using publish over ssh in ...
0
votes
1
answer
23
views
Using S3 Objects in Terraform Function Path Parameters
I am trying to move all my configuration files to S3 storage, and access them directly from Terraform while provisioning. However, I was not able to point to S3 object directly similar to giving a ...
0
votes
1
answer
76
views
Deploying monorepo without SSH
Full Disclosure: I'm a DevOps noob.
I am running a MERN mono repo on an EC2 instance. Originally, I would always SSH into my machine, pull from the repository, and build again. But there are problems ...
1
vote
0
answers
64
views
Amazon OpenSearch Service stably or less downtime?
Can anyone point out, What is the best way for the elastic search to run stably? We frequently get messages about it requiring updates and that an update requires some downtime.
Could we have 2 ...
0
votes
0
answers
9
views
What process manager is suitable for multiple instances of the same service?
I am working on an app which can start and stop a service (lnd) with different options for different users:
Service Instance 1 for Alice using config 1
Service Instance 2 for Bob using config 2
...
0
votes
1
answer
70
views
AWS Policy to Read/write RDS
In my scenario , I want a policy that will allow reading and writing of abc-database-backups/rds/postgresql-backup on S3? We'll want the my servers to have that access added.
Is creating a role and ...
0
votes
1
answer
107
views
Hashicorp Vault How Do I Login Headless From STDIN Using Bash Shell?
Given a Bash Shell say in a Docker container running on Gitlab, for example, how would I get the password to get passed in?
When I login with this:
$ vault login -method=ldap username=myusername
It ...
0
votes
1
answer
128
views
Can not redirect https with upstream directive
With such config a I get redirecting to google.com
server {
listen 80;
proxy_ssl_server_name on;
rewrite_log on;
location / {
proxy_pass https://google.com;
}
}
but if I ...
0
votes
1
answer
982
views
Jenkins Shell script not working. Yarn: command not found
I am running jenkins to build a react app and executing shell commands to build the app automatically. I following are the bash commands
cd /var/www/FarmGroWeb
sudo git reset --hard
sudo git pull ...
0
votes
0
answers
47
views
Individual Local Accounts on AWS
I'm my scenario, Currently, we have all developers connect to ec2 instances using the ec2-user account. Is there a better way to do this so we can see which actions developers take on the machines?
I'...
1
vote
1
answer
51
views
Puppet manifest configuration for docker image verification
I’m quite new to devops/ci/cd, so bear with me.
Currently, I’m getting a puppet manifest configuration set up for docker image verification. Let me try to layout it out:
I have a puppet master server ...
0
votes
0
answers
26
views
Protect staging / pre-prod environments
I'm trying to secure some microservices environments. The problem is about distributed services, because some of them are SaaS products or in different clouds, serverless, PaaS, Kubernetes and so on.. ...
0
votes
1
answer
95
views
Terraform: How to Detect and Branch on Operating System?
Given this block of pseudo code from Terraform:
resource "null_resource" {
provisioner "local-exec" {
command = "echo hello"
interpreter = local.os == ...
1
vote
0
answers
382
views
How to tag docker image with git commit code short id, in azure devops?
I saw few links where I can tag my docker image using ${Build.SourceVersion} in azure devops pipeline.
But it is using the complete ID of the commit.
But I want to use only the short ID.
I mean this (...
0
votes
0
answers
31
views
redirect to http depending on the condition
I use nginx
Assume that url hello.test.example.com, hello example of dynamically subdomain, how can i redirect to hello.test2.example.com when hello file existing in specific directory path
...
0
votes
1
answer
106
views
Ansible playbook - defining var based on condition
I want to create a var based on condition so I created the below :
hosts: test
vars: vtarget_backup_folder_in_progress: "{{ "{{ folder }}/{{ target }}/test{{ hostvars['localhost']['tstamp']....
0
votes
0
answers
100
views
Red Hat OpenShift Failed to push image
I'm trying to create a new container in RH OpenShift, but I keep getting the following error:
error: build error: Failed to push image: error copying layers and metadata from "containers-storage:[...
0
votes
2
answers
790
views
How to enable local image registry on OpenShift Single Node Cluster installation
I've recently completed an installation of a Single Node Cluster using OpenShift 4 but I'm running into issues when trying to spin up some of the example container / projects they have available. I ...
0
votes
1
answer
125
views
Best solutions for auto deployment of multiple server applications
I'm still a newbie to devops and overall sysadmin, and a few days ago I wanted to completely reinstall everything on my server and properly setup services and deployment for apps, now my problem is ...
0
votes
0
answers
35
views
deciding on docker architecture setup and performance
I will need to virtualize a jenkins software architecture and I don't know which architcture will be more efficient.
I need :
a jenkins server
an opensuse server for c/c++ 64 bits compilation
an ...
0
votes
0
answers
133
views
AWS cdk environment strategy: one per branch, one per developer, or only dev/staging/prod?
we're currently setup with a dev, staging, and prod environments on aws. We're finding it hard to do QA properly, since often many commits happen in a short span of time, and are all included in a ...
0
votes
2
answers
1k
views
Ansible task output to a file in ansible server
I'm writing a playbook that will check the application version on different hosts and write the output to a Ansible variable.
My requirement is I want to output the ansible variable to a file output....
1
vote
1
answer
153
views
how to configure ingress controller in kubernetes cluster over bare metal system?
Is there any way to assign static IP to Kubernetes cluster, in which any user can able to access its application over static IP only.
for an example, I have set up a cluster over 192.168.0.131 (master)...
0
votes
1
answer
444
views
System-wide Docker login?
Is there any way to log a whole machine / Docker daemon into a registry?
Everything I see about docker login and various proprietary credentials helpers uses ~/.docker/config.json, i.e. is per-user.
I ...
-1
votes
1
answer
91
views
Are names of groups of users better as singular or plural? [closed]
Intuition says to name a group with the plural noun (13 accountants are in the accountants group). However, intuition often isn't reliable. In SQL databases, for example, a plural table name (e.g. ...
1
vote
1
answer
442
views
How to win_ping to hosts with inventory and group_vars files?
I'm trying to write a correct command line that will ping to all hosts that are detailed in my inventory file
my dockerfile:
FROM centos:7
RUN yum check-update; \
yum install -y gcc libffi-devel ...
0
votes
1
answer
235
views
What are common variables to mention in an inventory ansible yaml file?
I try to build a pipe-line to install my product.
My product is installed in a lab with at least 8 machines (on-prem lab).
I have several labs on-prem, several labs on cloud
Each machine has a role, ...
1
vote
1
answer
119
views
how to monitor a secure lab's machine and product's log files from my organization laptop?
I'm trying to find a solution that will help me to monitor the product's machines and log files in each one of them. here are some fact about my working environment:
I have a product that's installed ...
-1
votes
3
answers
1k
views
Adobe Reader DC automated install using PowerShell
I wanted to automate the installation of Adobe Reader DC using an existing executable file (AcroRdrDC1501020060_en_US.exe) present in my local computer with a PowerShell script in non-interactive ...
1
vote
1
answer
44
views
How to check application responding in Kubernetes
I have a .net framework application written in C# running in K8s orchestration. I simply want to check in fixed interval (lets say in every 300sec) that my application which is running inside pod is ...
2
votes
2
answers
372
views
How to get the nearest subdirectory of a file as output in PowerShell?
I need to get only the nearest subdirectory and file name from the file path as follows.
Ex:-
(1)E:\Dump\DumpText-1.txt - Dump\DumpText-1.txt
(2)E:\Dump\SubDump1\DumpText-1.txt - SubDump1\DumpText-1....
-1
votes
1
answer
155
views
OpenShift internal docker registry inaccessible
I am trying to connect with the internal docker registry of an openshift cluster with
/bin/docker login -u user -p password` `oc get svc -n default | grep docker-registry `:5000
Getting the following ...
1
vote
0
answers
51
views
Open shift internal registry lost connection with the cluster
As a result getting image pull error while submitting the deployment to the kube API. Even the docker registry pod IP is in connection but VIRTUAL IP of docker registry lost connection with the ...
0
votes
1
answer
2k
views
Ansible to rename a file only if exists
I need to rename /jp/Test to /jp/test only if /jp/Test exists , otherwise i dont need to perform this task. if Both exists i need to merge both into /jp/test
I get below error
{"msg": "...
1
vote
1
answer
21
views
Unsure how to proceed from DigitalOcean droplets and CircleCI deployments to just automating the whole setup
I work within a small dev team and our current infrastructure is setup with GitHub for code, CircleCI to deploy these to our DigitalOcean Ubuntu droplets whenever something is merged into the develop ...
1
vote
0
answers
44
views
What is the standard way to install jdk for wildfly on production?
There are options like, install from repo, install from rpm and install from tar/zip/etc archive
What are the pros and cons?
One con of installing from archive is, you don't get security updates. Is ...
0
votes
1
answer
101
views
Is it good practice to out MySQL or Apache in /opt/ folder?
So at my company they want to put all the application software in The /opt/application folder. This strikes me as odd because they consider server daemon like Apache and MySQL as application ...
0
votes
1
answer
63
views
what number of azure subscriptiions is too many?
My organisation has 50 azure subscriptions at the moment and is planning to grow to well over 500 for several reasons: each application will have its own subscription, techies have their own ...
0
votes
2
answers
1k
views
Jenkins Integration with Android studio
Descrip : I created a jenkins job to integrate jenkins with Android studio for generating artifacts,
While building the project in Android studio, The build is successfull..
But When i build the same ...
0
votes
1
answer
234
views
converting nginx from http to https
i am hosting a website on aws lighsail server. it is single server and i am running 4 docker container on it. 1-nginx , 2-node js, 3- spring bot, 4 - mysql.
As for now my website is loading great with ...
4
votes
1
answer
6k
views
Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement
I am running this template in cloud formation to create auto scaling in ubuntu-18.04 machine and it will rollback the all instances automatically that is created by this template and giving such error ...
0
votes
1
answer
153
views
Parsing Command Response in Bash Script
I need a bash script that takes the output of a shell command and parses that output to pull out the state. If the State is: Bad, an email should be sent.
~$ bucardo status
PID of Bucardo MCP: 2074
...
0
votes
1
answer
795
views
Should I use kubeadm reset every time I reboot my master (or worker) node of kuberenetes cluster?
I am new in DevOps. Recently I bought two raspberry pi devices and setup one as master and the another as worker node. When I reboot the device the docker containers (api server etc.) don't up.
What ...
0
votes
1
answer
126
views
Migrate to Azure DevOps
My Dev team has created an Azure DevOPS on their own personal account and want to move it to our centralized Azure Tenant. I have access to the the Azure Tenant where I wish to host the devops. note ...
1
vote
2
answers
145
views
Why doesn't everyone just use the cheapest servers when using kubernetes?
Recently, I have been learning a lot about Kubernetes and learned that Kubernetes can horizontally auto-scale your containers and add servers to your node pool when needed (the cloud provider should ...
0
votes
1
answer
250
views
How to reduce "RAM Cache + Buffer" size due to scrapy
I am running a couple of spiders in parallel by scrapyd 1.2. Each process will raise the Buffer during the crawl significantly as seen in the chart. What is this value and how can I reduce the ...
1
vote
1
answer
590
views
parsing debug information from ansible k8s_info module
I'm testing the ansible k8s_info module and having a challenge parsing the result in a register variable.
The playbook gets pods from all namespaces. My objective is to print only the spec.containers ...
0
votes
1
answer
310
views
Linux/Ubuntu - Use AD groups in Ansible before the computer is on the domain
TL;DR How do I reference an AD group for folder permissions before my computer has joined the domain?
I'm setting up an Ubuntu system to interface with the orgs Active Directory. I've read that ...
0
votes
1
answer
243
views
nginx dynamic ssl for SaaS application
my SaaS application create subdomain for each customer customer.myapp.com. in my nginx i configured wildcard ssl certificate. (*.myapp.com) and it works.
how can I allow my customer to connect their ...
20
votes
3
answers
2k
views
Managing cluster of linux computers behind firewalls
My company's product is essentially a Linux box (Ubuntu) sitting in somebody else's network running our software. Up to now we had less than 25 boxes in the wild and used TeamViewer to manage them.
...