42 votes
Accepted

Is Configuration Management useable for a small number of servers?

Nope, it's not defeating the purpose. I, in fact, use Ansible to set up single servers for hobby/side-project use quite frequently. It allows me to keep a version-controlled, repeatable, self-...
ceejayoz's user avatar
  • 33.2k
10 votes

Configuration management for 'single server multiple admins'

Just spin up a test/staging VM that you can use to validate your changes. Your current method of performing changes manually first is hopelessly broken and doomed to failure. You and your team need to ...
EEAA's user avatar
  • 110k
10 votes

Is Configuration Management useable for a small number of servers?

I have to disagree with the current consensus. In no way can it be reasonable to learn any CM system for a pool of 2 servers, unless you simply want an excuse to learn that CM system. The amount of ...
Jim B's user avatar
  • 24.1k
10 votes
Accepted

How to split out Prometheus config files?

The Prometheus config file (and other config files in the ecosystem) explicitly do not support any form of templating. Instead this is left up to your configuration management system to handle. ...
brian-brazil's user avatar
  • 3,952
9 votes

Kubernetes, Docker and vm.max_map_count

The setting for vm.max_map_count can be changed on the host level. Your can read the current value like this: sysctl vm.max_map_count. To change it run: sudo sysctl -w vm.max_map_count=262144. This ...
webwurst's user avatar
  • 392
8 votes

How to do a git pull/push using ansible

It should be like:- tasks: - name: pull from git git: repo: [email protected]:xyz.git dest: /root/Development/abc update: yes version: master Note: Here the ...
Souvik Haldar's user avatar
8 votes
Accepted

How to remember/cache or specify private key passphrase for Ansible

The feature is called ssh-agent: $ eval `ssh-agent` # you might have agent already running so this might not be needed $ ssh-add /etc/ansible/private_keys/confman.crt now ansible should be able to ...
Jakuje's user avatar
  • 10.1k
8 votes
Accepted

Is there any way to see the group_vars, host_vars, etc. available to a host in ansible?

Found an answer, from here. ansible all -m debug -a "var=hostvars[inventory_hostname]"
Luis F Hernandez's user avatar
7 votes
Accepted

Ansible - use host IP as a variable for file copies

Yes, you can do that with Ansible. Ansible geathers facts of the system before every run. You can check these facts about the system with the setup module like this: ansible hostname -m setup Check ...
Henrik Pingel's user avatar
6 votes

Configuration management for 'single server multiple admins'

Perhaps due to our inexperience, we're of course never able to type out a set of ansible tasks exactly the way we need it to be in one go, also because configuration is a bit of a trial and error ...
Xiong Chiamiov's user avatar
5 votes
Accepted

backup mx vs. second dedicated mail server

Do you have a need for two mail servers? SMTP is a store and forward protocol, and is normally quite resilient to outage of up to one or two days. I am not sure why you have four MX servers in ...
BillThor's user avatar
  • 28k
5 votes

From pet to cattle: compare /etc/rsyslog.d/local.conf 100 times

Look at your old question Compare 20 files with diff, not 2. Your solution together with parts of mine will easily show you the number of files for each unique version: md5sum tmp/crontab-* | cut -d ...
Sven's user avatar
  • 99.5k
5 votes

Using Ansible ini_file with nested dict?

I don't know of a way to do this with ansible by default other than using your "flattened" version. Fortunately you can have the best of both worlds and write your own filter plugin for ...
Vasi Márk's user avatar
5 votes

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

AFAIK you cannot just use docker-compose down without a corresponding docker-compose.yml. However, your idea with the tagging is not so far from reality either: When invoking docker-compose up, ...
linux-fan's user avatar
  • 336
4 votes

How to handle SSH port changes with Ansible?

Is it possible to automate this by having Ansible fallback to a specified port if the connection could not be established to the default SSH port? I also needed similar functionality, so I forked ...
crlb's user avatar
  • 41
4 votes
Accepted

ansible dynamic inventory not working properly

The ec2.py dynamic inventory uses boto to make API calls to AWS. So you might want to check if boto can connect to AWS by running: python >>> import boto >>> s3 = boto.connect_s3() ...
Henrik Pingel's user avatar
4 votes
Accepted

How to make Rudder set different config for each node?

There is several ways to do that - and you are right that building a rule for each node is not the correct one :) Depending of the more general context, follows a list of possibilities: Node ...
fanf42's user avatar
  • 251
4 votes
Accepted

Ansible: how to manage hosts if they are not always online?

if they are available for an update, it's always a hassle to determine which tweaks I still have to deploy on that machine... That is not the way to use Ansible. Your playbooks should be written in a ...
Sven's user avatar
  • 99.5k
3 votes

Configuration Management tools failover behaviour

I will comment only on the ones i have experience with, that means Puppet and Ansible. And I'm omitting some details. Both can be setup to run agentless or local only if needed. To use them local ...
Fredi's user avatar
  • 2,277
3 votes

Is there a way to rename a chef cookbook?

I just realized what to do. (And that my question was improperly using the word recipe instead of cookbook) So, my current state is that I have a cookbook called (for example) cookbook_name and I ...
jorfus's user avatar
  • 785
3 votes

How can I manage hundreds of IPMI BMCs?

I'm surprised nobody mentioned MAAS (http://maas.io/), which does exactly what you are looking for. It can autoconfigure and manage BMCs, and in addition deploy any OS onto the nodes you have enlisted ...
kiko's user avatar
  • 261
3 votes
Accepted

How to upgrade all nodes packages with Rudder

I think the best way to achieve this is to create a technique with the technique editor and with a "command execution result" with "/usr/bin/apt-get update && /usr/bin/apt-get upgrade -y" with ...
Vincent Membré's user avatar
3 votes
Accepted

Is there a way to manage QLogic fiber switches on Windows 10 using a GUI?

You should probably update your QLogic SANBox 5800v firmware. Check your firmware version: From the GUI, namely QuickTools: Switch Data Window > Firmware group > Firmware Version. From CLI: SANbox #&...
Esa Jokinen's user avatar
  • 49.8k
3 votes

Ansible: how to manage hosts if they are not always online?

This might be a good use-case for ansible-pull. Hosts which are not permanent online could be configured to run ansible-pull when connected to the office network. However that doesn't change the need ...
Henrik Pingel's user avatar
2 votes

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

Change privilage escalation in ansible.cfg: [privilege_escalation] become_exe='sudo su -' Documentation here
Josh Zhang's user avatar
  • 169
2 votes

Configuration Manager (SCCM) Clients not updating their status

To build on Mark's answer, you can this: Invoke-Command -ComputerName $ComputerName -AsJob {(New-Object -ComObject Microsoft.CCM.UpdatesStore).RefreshServerComplianceState()}
CircaLucid's user avatar
2 votes

Configuration management: push versus pull based topology

This is an old post, but interestingly enough history repeats itself. Now embedded IoT devices need configuration management and the infrastructure / network topology seems to be even more complex ...
Carsten's user avatar
  • 21
2 votes

backup mx vs. second dedicated mail server

The pros and cons, and how to weigh them really depends on the business application. This question is also a bit more difficult to answer becuase there can be redundancy and load balancing at ...
Josh Richards's user avatar
2 votes
Accepted

Auto-Retry Config Push with Ansible or Saltstack?

Salt runs in a pull model from the nodes to the master. You can issue global commands from the master like salt 'api*.domain.com` state.highstate That will run a highstate on all hosts that has a id(...
Mike's user avatar
  • 22.5k
2 votes

Auto-Retry Config Push with Ansible or Saltstack?

I can only answer this for Ansible. Ansible itself does not handle hosts which are not reachable. It will try to connect and once and if this is not possible the host is thrown out of the current ...
udondan's user avatar
  • 2,099

Only top scored, non community-wiki answers of a minimum length are eligible