Questions tagged [configuration-management]

Configuration Management refers to establishing and maintaining standardized system configurations within an organization. This tag encompasses the process of defining the configuration profiles, and the software used to manage and deploy it.

Filter by
Sorted by
Tagged with
11 votes
2 answers
7k views

How to do docker-compose down without the config file that made the up?

When you do docker-compose up, it's based on a docker-compose.yml file. This usually brings up a network, builds and runs multiple services. If you do the up with the -d flag, the docker-compose ...
0 votes
1 answer
246 views

Salt Jinja Template concatenate strings with Looping

I am having issues concatenating strings in Salt, I want to grab a salt grain called "accesslist" which holds an array of groups to append to an access list. {% set access_filter = '(...
1 vote
2 answers
453 views

How do I stop my PC's `LongPathsEnabled` registry setting from being reset to zero?

I have enabled long file paths in Windows 11, by using regedit to set the LongPathsEnabled registry value to 1, in HKLM\SYSTEM\CurrentControlSet\Control\FileSystem. This has worked fine for years, but ...
0 votes
0 answers
15 views

Microsoft Configuration Manager Issue

I cannot join the primary site to an existing hierarchy while installing Microsoft Configuration Manager. SQL and the SCCM Server are connected. Am I doing something wrong? Problem with Configuration ...
0 votes
1 answer
37 views

Microsoft Configuration Manager Server Sharing

I have my SCCM Server connected to the SQL Server via ESXI through two different VM's. I have Microsoft Configuration Manager on my SCCM trying to get it connected to the SQL Server. How do I connect ...
-1 votes
1 answer
109 views

December Windows Update disable use of registry keys to set lockscreen image for Windows 11 Professional?

As the title says, to clarify, you can't normally set lockscreen image with GPO for Windows 11 Pro computers, as it only works for Enterprise and Education. However you could set three ...
4 votes
1 answer
6k views

SCCM Report: Update Compliance per Device in a collection

I'm trying my hand at building a custom SCCM report and could use some help from those who have more experience with the database structure than I do. What I would like is to list: Device Collection ...
0 votes
1 answer
296 views

Ansible lineinfile replace with system variable

I'm encountering an issue while using Ansible to dynamically modify a Zabbix agent configuration file. Specifically, I'm attempting to employ an ansible lineinfile module with a loop to update ...
0 votes
0 answers
17 views

Mapping versioning for config and infra corresponding to application code version

I have an application that has something like below structure Service A - application and environment configuration, infrastructure dependencies (Queue, DB etc) etc. Service B - application and ...
0 votes
1 answer
86 views

Uninstall Oracle Java JRE where misexec reports "this is only valid for products that are currently installed"

I have several end users where Oracle Java JRE 1.8.0_xxx is installed but the automation to use the UninstallString via msiexec /X is failing by saying the product isn't installed. On these machines ...
15 votes
2 answers
9k views

How to split out Prometheus config files?

Right now we're using Prometheus for our monitoring and we have a lot of config (our prometheus.yml main config file is 1400+ lines long). I would like to split this out into logical groupings (maybe ...
6 votes
1 answer
2k views

Using Ansible ini_file with nested dict?

What I am trying to achieve is the following. Suppose we have a playbook similar to the following one: --- - hosts: local tasks: - ini_file: path: test.ini create: yes ...
0 votes
0 answers
363 views

"/etc/nginx/nginx.conf is meant to be read-only" when editing with nano after upgrading Ubuntu 20.04 to Ubuntu 22.04

I am recently upgraded Ubuntu Server 20.04 to Ubuntu Server 22.04. It is a LEMP server running the latest Mainline version of Nginx. After the upgrade, when I try modifying the /etc/nginx/nginx.conf ...
1 vote
2 answers
6k views

Nginx service is running successfully but returns apache default page?

i installed nginx on server(ubuntu 16.04) which already had apache2 and, done this following configuration, ->changed apache port 80 to 8888 so nginx would listen to 80 ->restarted apache and ...
1 vote
1 answer
507 views

Practice of high frequency scheduled Ansible playbook runs

I'm fairly new to administrating servers with configuration managers such as Ansible. I plan on running playbooks automatically on a schedule (via something like Ansible Semaphore, or even just Cron) ...
-1 votes
1 answer
170 views

Immutable Infrastructure

I'm working on a cloud based solution architecture at the moment and want to take the approach of using an immutable server infrastructure (creating and then deploying new AMIs when updating software, ...
0 votes
1 answer
52 views

What's the intrinsic way to represent environments in Kong Konnect?

I've Googled many different combinations of terms to find out what concepts and features Kong Konnect expects sysadmins to use to represent different environments (e.g. staging, production) and ...
17 votes
4 answers
77k views

How to do a git pull/push using ansible

I am trying to do a git pull/push using ansible. I am running ansible on one server and want to automate or orchestrate a git pull/push on a remote host. Now since i didn't find a mmodule to do this ...
7 votes
3 answers
6k views

How to manage linux workstations with policies

I am going to be administering a small network of linux based workstations for a charity institution (not all have the same distro- some are ubuntu and some are fedora). Is there something in Linux ...
0 votes
1 answer
1k views

Saltstack - Error - No Top file or external nodes data matches found

I'm trying to configure my Saltstack Architecture. I followed all the steps, but It seems not working and I'm not able to find the problem. /etc/salt/master file_roots: base: - /srv/salt dev: - /...
0 votes
1 answer
187 views

ConfigMgr WebService API Calls

at the moment I try to connect my application via api with the ConfigMgr Webservice, but send my SOAP API request via curl I always get a 400 error. We are writting our own application to "talk&...
110 votes
7 answers
28k views

How can the little guys effectively learn and use Puppet? [closed]

Six months ago, in our not-for-profit project we decided to start migrating our system management to a Puppet-controlled environment because we are expecting our number of servers to grow ...
0 votes
1 answer
63 views

How to use DNS to reference instances of a Server

I would like to use our internal DNS server for linking names from provisioning to final use. So I imagine it like this. A server comes into our network and gets a DHCP or a static address and then ...
3 votes
2 answers
2k views

Puppet: Replacing create_resources() with hash iteration

We're migrating from Puppet 2 to 5. It seems the scoping is a little different. Before, when using create_resources() with a hiera_hash and a default hash, variables from within the calling script ...
-1 votes
1 answer
41 views

Home Server Setup Questions [closed]

I think I'm on the right Stack for this question So, I've been self-hosting a web server from my home. And recently I've started to see ;'s being included in some request. Trying to, I assume, access ...
0 votes
1 answer
417 views

Optional sysctl configuration parameters

I am working on some automation that sets linux kernel parameters using sysctl. Specifically I am creating a template that can be deployed to systems with a high amount of connections. The automation ...
31 votes
7 answers
30k views

How to handle SSH port changes with Ansible?

I'm trying to use Ansible for automating the setup process of new server instances. One of the setup tasks changes the default SSH port, therefore requiring me to update the hosts list. Is it ...
6 votes
2 answers
6k views

Why Puppet can require each package just once?

When defining dependencies in a class each Package can be globally defined just once. I have hierarchy of configuration and some packages should be installed on all machines (that goes to default ...
2 votes
1 answer
5k views

Puppet Enterprise vs. Open Source

I'm interested in learning to use Puppet. One example I see over and over again is user management. According the the Puppet website, "Configuration management – User accounts" is a feature that only ...
0 votes
1 answer
2k views

ansible Dynamic inventory Hosts value does not accept list of hosts

I am trying to create dynamic inventory for my setup. everywhere i see examples of IPs and hostname as list. but when i provide hosts value as list it error's out and says it has to be dict. Below ...
0 votes
1 answer
2k views

ANSIBLE set tags per item in with_items loop

I have this playbook to create ec2 instances and will like to target each ec2 creation by tags but not working...when i run playbook i do not get any errors but notting gets created. --- - name: ...
3 votes
2 answers
1k views

Ansible/Capistrano with fixed sudo command ("sudo su -")

I have to administer some half-managed servers (monstly CentOS 6), where we are only allowed to login as a regular user, then do "sudo su -" and type the regular user password, and then run the ...
0 votes
1 answer
77 views

Gitea under Configuration Management: Generated and Static Settings

I need to set up a Gitea server for an organization. The setup itself is easy, and I managed to bring up Gitea within an hour when installing it manually. However, my organisation uses a configuration ...
0 votes
1 answer
484 views

Implementing a CMDB [closed]

I have the need for an inventory for servers, storage, network devices, etc. and I'm thinking to have this kind of information in a CMDB. It would first be used as an inventory, but later could be for ...
1 vote
3 answers
2k views

Ansible ini_file module does not create sections when no options specified

I use Ansible to build configuration files in ini format. When I use the ini_file module with option and value pair it works as expected, for example: - name: Create configuration file ini_file: ...
13 votes
1 answer
73k views

How do I print the current hostname of a host in ansible

I wrote a role to edit the motd when user log into the machine, but I want to personalize the motd to print the hostname of the machine What variable do I use? or how do I do this? template? how? I ...
0 votes
1 answer
679 views

Back up arbitrary config files on linux servers in RANCID

I use RANCID to back up router and switch configurations. I'd also like to be able to have it take automatic backups of configuration files on my servers so I can easily see when changes occur and if ...
2 votes
1 answer
783 views

Set sysfs network option before interface is up

I want to set /sys/class/net/wwan0/qmi/raw_ip, and I don't want to do it by writing a shell script to take wwan0 down set it, then put wwan0 back up as a systemd unit. I'm trying this on Raspbian ...
1 vote
1 answer
289 views

CouchDB deleted database shards

Currently running clustered CouchDB v3.1.1 on an AWS EC2 Instance q=2 n=3 Number of Nodes: 1 I have moved the database directory to another drive on my VM. But can't find any on the documents ...
0 votes
2 answers
462 views

Improve MariaDB Execution Time

I have a database with one table and three fields (id, hash, creation time). This table got around 30 million records, the execution time for a query like SELECT * from `table` WHERE hash='...
4 votes
1 answer
508 views

Ansible variable precedence

I'm trying to understand variable precedence in Ansible - more exactly the part about host_vars and group_vars in inventory or playbook. My layout looks like this: production/ ├── inventory (alfa, ...
0 votes
0 answers
80 views

Which Type to use for creating Storage Transfer jobs via Deployment Manager

I'm trying to create and manage a TransferJob for Google Storage Transfer service via Google Deployment Manager. The aim is to copy objects from one Cloud Storage bucket to another daily. Since I can'...
1 vote
0 answers
33 views

How to handle and avoid unmanaged system state with configuration management?

When managing the state of a server using a configuration management tool (e.g. salt, puppet, ansible), one can quite easily develop 'unmanaged' state through application of successive versions of the ...
2 votes
2 answers
3k views

How can I configure exim4 with a smarthost via puppet?

I have tried to automate the exim setup via puppet. I followed the approach described here, whiched worked for me for a few packages, but for exim I had a problem: one selection was not correctly ...
1 vote
1 answer
2k views

How to do a git push using ansible

I'm using Ansible to make a pull i do this tasks: - name: pull from git git: repo: [email protected]:xyz.git dest: /root/Development/abc update: yes version: ...
0 votes
0 answers
63 views

Preventative config settings to ensure long-running PHP scripts don’t create hanging MySQL transactions and failure

I’d like to know if there is a PHP/MySQL configuration option (or combination of options) that can prevent long-running PHP scripts in a small number of places from creating hanging and sleeping MySQL ...
0 votes
1 answer
4k views

Can't Access CIMC

I have a Cisco UCS C220 M3, and it has the Flash/Java-based CIMC interface. When getting Flash, the only versions are for Chromium-based browsers and Mozilla-based browsers. However, neither of those ...
0 votes
1 answer
580 views

Salt Pillar: How to use different values for prod / dev?

I'm not sure if I am thinking about this the right way, but here is my Problem: I want to use the same Salt state and pillar configuration for production, development and test servers. The only ...
0 votes
2 answers
7k views

Config Manager 2012 Application Download stuck at 0%

We have a Config Manager 2012 R2 setup with 2 Distribution Points on remote sites. In the remote site the Applications don't get downloaded, the status remains on 'downloading (0% complete)' In the ...
0 votes
2 answers
130 views

Using Configuration management tools to synchronize large files

We are looking into using a configuration mangement tool (like Salt or Puppet) to automate what is currently a lot of manual work. One requirement is that we have to distribute rather large files / ...

1
2 3 4 5
8