Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel. Use this tag for questions about DevOps practices, processes and tools in Linux environments.

Filter by
Sorted by
Tagged with
0
votes
2answers
18 views

How to Save and Restore the Iptables rule and configuration from file?

I want to save the current iptables configuration to a file and restore it from a file. I have a lot of rules and modifying the rules really hard for me. So, how can i do that?!
1
vote
1answer
37 views

GitHub Actions Runner execute commands with sudo GitHub Actions

I have a GitHub action set on self hosted Ubuntu VPS on Linode. I ran sudo ./svc.sh install and then ./svc.sh start. The runner is up and working but I have a command in my yaml file that needs to run ...
2
votes
0answers
49 views

Remote connection from Docker container by FTP

I built my docker image and run it: docker run --rm -P -d test:latest Then I entered the command and opened connection: ftp open XXX I successfully connected and entered user data. After that I ...
3
votes
1answer
38 views

Porting a docker container to a different Linux host OS

I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me : For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
0
votes
1answer
42 views

What are the daily job duties of a devops? [duplicate]

I have been working for linux management over 10 years. In the last 5 years, I have added a lot of coding experience through software development like php, ruby, go, etc. I wanna be a devops, but I ...
1
vote
2answers
51 views

How to sync two directories on same host using Ansible?

I am using the below playbook for mounting partitions on another EBS volumes while provisioning instance on AWS --- - name: Mounting necessary partitions hosts: localhost become: ...
0
votes
1answer
40 views

How comes a GitLab CI/CD job cant' find its artifacts?

In the Open Source ventilator project, we aim to provide those who focus on testing with a ready-to-go flash file for the Arduino controller board. While the binaries seem to be there, for some ...
1
vote
1answer
18 views

How do I package a jar and a Linux VM to run in Windows? [closed]

I'm new to DevOps so please forgive my ignorance. I have inherited a Win10 Java app that is currently run by pressing play in NetBeans. It makes API calls to a server running in a Linux VM. What I'd ...
0
votes
1answer
58 views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
2
votes
0answers
32 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
0
votes
1answer
34 views

Which Jenkins file is responsible for Enable cache setting

I want to know how can I modify the below setting from Jenkins server and not UI: http://XXXXX:YYYYY/configureSecurity/
0
votes
2answers
33 views

How to run Ansible command to update imunify360 settings

How can I use Ansible to run the following CloudLinux Imunify360 commands properly on CloudLinux 7 (similar to CentOS7)? I tried different ways to "escape" the colons in the commands and it doesn't ...
1
vote
0answers
42 views

How to get alert for LDAP issues

I want to run some script which checks for LDAP issue, and in case it found something, it sent me alert. I thought using ssh command with some generic user, but I'm not sure what is the response I'm ...
0
votes
1answer
211 views

Running a command as a specific user on an ec2 using ssm

Background I want to automatically configure an EC2 via a build, using the aws cli and ssm. The (manual) setup for the container looks something like this: Create an EC2 Run a shell script as root ...
1
vote
0answers
26 views

How can I modify Jenkins Configuration Global Security from linux server?

In Jenkins UI, I have the below section under http://XXXXXX:YYYY/configureSecurity/ where can I find this definition in Server (Linux RHEL)? I tried to grep for it in jenkins-production folder but ...
2
votes
1answer
293 views

how to prevent Ansible from showing output on screen?

I have this in my playbook which execute a command on remote server and enters its log on local server. - name: run script shell: runuser -l testuser -c "/tmp/test.sh" register: myshell_output ...
1
vote
1answer
118 views

How to determine which packaged pip to install in order to run the Ansible pip module?

I am struggling to find a reasonable method to detect which of python-pip or python3-pip I should install depending on the contents of the ansible_python fact. This is on Debian and Ubuntu. Looking ...
0
votes
1answer
22 views

Where is Puppet's enviroments directory on Amazon Linux2?

I am using Puppet version 3.8.7 on Amazon Linux2, trying to find the directory containing the Puppet environments. I tried to find it with the find command looking for files named "production" or ...
1
vote
1answer
27 views

Is there a way to clone an ec2 from inside the ec2 terminal?

I want to be able to back up my linux accadamy lab servers but they don't provide a way to to this. I'm wondering if it's posible to clone my EC2 lab server from inside the EC2 to get round this?
2
votes
1answer
813 views

Consul: how to remove dead client nodes quickly

Background: When running Consul client-mode in AWS, EC2s are constantly getting replaced, which results in a lot of dead client nodes when looking at the Consul UI or via consul members. Already ...
3
votes
1answer
466 views

Azure DevOps Artifact.zip folder structure for .NET Core 3.0 application

I have an ASP.NET Core 3.0 application for which I have a full CI/CD setup in Azure DevOps. The Application is hosted on a Ubuntu 18.04 server machine. In the Build Pipeline, the solution is built ...
0
votes
1answer
41 views

PowerShell command to automate Azure Linux VM [closed]

I am looking for some PowerShell command which can check if any update/patch need to be applied to existing Azure Linux VM and then apply the patch if required. I will then use this PowerShell ...
0
votes
1answer
43 views

Run command from Jenkins to Linux Server

I have a HAProxy server setup in Azure Linux Machine. How can I run a HAProxy start/stop command from Jenkins to multiple Linux server?
2
votes
1answer
214 views

How to resolve the dependencies while installing locally downloaded packages?

I have simple playbook where trying to install the Debian packages downloaded locally in my server. This playbook runs on localhost and install the Debian packages in the same system. But this ...
1
vote
1answer
80 views

Create User Using Ansible with Authenticate Pem File

Community, I am creating a user on the client machine using Ansible but the issue is it creates a user and add authenticate file but getting an error while SSH to that machine using created, User. ...
1
vote
2answers
439 views

Ansible resetting swap linux

I am newbie to Ansible, i failed using ansible via command that way : ansible host -a "/sbin/swapoff -a && /sbin/swapon -a" Only this worked ansible host -a "/sbin/swapoff -a ansible host ...
2
votes
0answers
29 views

Issue building deb package using Docker/Windows

I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for *nix so I've written a few batch scripts which are ...
0
votes
2answers
13 views

How to analyze the file activities due to process?

I need to analyze the file i/o operations caused due to a process. So I would like to know, which all files are affected by this program. Is there a tool for this particular use case?. One of our ...
4
votes
4answers
4k views

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 ...
1
vote
2answers
3k views

using copy module with wildcards

I need to copy a database backup file from a primary server to a standby server. Since I can't use synchronize, I was following this method: copy file to local ansible server from primary, then, copy ...
2
votes
2answers
60 views

reboot server during Ansible tasks

I have 3 scripts that must be run on server one by one. for example: - name: find config shell: /data/scripts/config1 become: yes become_user: root tags: find_config - name: change config ...
0
votes
2answers
255 views

copy contents of file on ansible server to another file on remote servers

I have a bash script on about 70 severs in /opt/zservice/etc/config that i want to change its content with ansible. the new content is on ansible server in this path /data/new_config. how i can use ...
1
vote
2answers
48 views

Which Users Should I Create With Terraform And Which With Ansible?

I am creating some Ubuntu VMs in Azure with Terraform. I am then configuring the VMs with ansible. When terraform creates the VM it creates an admin user resource "azurerm_virtual_machine" "main" { ...
2
votes
1answer
192 views

Azure Security Center with Ubuntu 19

Has anyone successfully gotten the Azure Security Center agent to work with Ubuntu 19? My omsconfig.log is full of messages like This event indicates that failure happens when LCM is trying to get ...
0
votes
2answers
47 views

What is the most common server permission policy for web application deployment?

I have a server with Ubuntu with a web server (Apache or Nginx) running a PHP application. The application consists of the following parts: An executable code that handles HTTP requests (say in the /...
1
vote
1answer
379 views

How to make PM2 as a autostart service?

I want to make my PM2 as a startup service, because for example when my server loses power or something happens to it, it does not automatically restart the PM2 service.
0
votes
1answer
39 views

how to give a user privilege to run Ansible commands or just an specific tag?

for example, I have a tag named 'installagent' and i want to run this command ansible -playbook -i /path agent.yml --tags installagent from another server via ssh on my Ansible server with user '...
0
votes
1answer
66 views

how to run an Ansible command for specific number of hosts

I am new to Ansible and i have a question about limitting hosts in a host group at running commands.I have these host groups in my inventory: [primary] host1 host2 [standby] host3 host4 ...
0
votes
1answer
1k views

How can I access the console of a booting EC2 instance in AWS?

I'm new to AWS and am looking for a way to access my EC2's console so I can triage issues such: boot to single user mode view console output as system boots gain console access to debug GRUB issues
-1
votes
1answer
26 views

Utilise AWS IoT on non-supported hardware

Before I dig in too far, is there any way I can use any of the AWS IoT core functions on non-supported hardware? I can use the AWS Node.js libraries that are available (for my hardware), but I don't ...
0
votes
1answer
300 views

docker swarm init made docker go corrupted

I started learning docker recently and I set up a virtual machine (VirtualBox) with Lubuntu image: Linux verion: Linux 4.18.0-10-generic i686 Docker version: 18.06.1-ce, API-version: 1.38, Go version:...
1
vote
1answer
95 views

How can container user and host user both have access to same files in volume?

I'm using Docker namespaces in an effort to allow files created within a volume to be arbitrarily read and written to by both the container user and the host user (please let me know if this is even a ...
0
votes
1answer
134 views

Install minimal dependencies with apt

I have a simple Dockerfile which looks like the following FROM debian:stretch-slim as builder COPY . my_project/ RUN apt-get update && apt-get install -y build-essential libpqxx-dev libtbb-...
-3
votes
2answers
665 views

How can CaaS, PaaS, and FaaS users know if the operating system of their server environment is of the newest release?

Please consider this chart a moment; it shows the different hosting models common today: From the chart I learn that CaaS, PaaS and FaaS are three hosting-models by which a user can't control the OS ...
3
votes
2answers
141 views

Is there a system which automates everything (OS release, and above) to host websites on?

This is not really a DevOps question but more of a System Automation question (which DevOps covers only a part of, by popular opinion, so I hope it's okay). I feel like some 5 USD IaaS VPS with ...
1
vote
1answer
62 views

How frequently do PaaS:VPS agencies upgrade OS_release in comparison to PaaS:shared-webserver?

I know that in a In PaaS:shared-webserver service a user could have the OS of its server environment release_upgraded in 8 or 12 years or so ! For example, I host a few sites on a particular host that ...
0
votes
1answer
21 views

What is the common term for Apache virtual hosts or Nginx block systems?

A webserver environment as with Apache or Nginx includes a type of file (or a file system) that I can call a webserver substrate; In Apache it is called a Virtual host and in Nginx I can call it a "...
1
vote
1answer
48 views

Why are IaaS hosting services are usually fixed-priced and PaaS are usually dynamically-priced?

Basic plans in IaaS host-providers like DigitalOcean and Linode are usually fixed-priced and basic plans in PaaS host-providers like Microsoft Azure or Amazon Web Services are usually dynamically-...
0
votes
2answers
46 views

What Ansible does in cases there's a conflict between OS version and some software Ansible manages?

Say I use an IaaS cloud on which I installed Ubuntu 18.04 manually via the cloud company's OS installation tool and I ought to establish an all-ansible LAMP environment that will include some more ...
-1
votes
1answer
63 views

A cloud technology with automatic upgrades of my OS-release and web server release?

I desire a cloud technology that will redund my need of using Vagrant to continuously integrate OS release upgrades (say from Ubuntu 18.04 to 20.04 including all software installed by apt-get --- ...