LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2020, 02:08 AM   #1
Grainman
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
Question Single Machine Automated Configuration Management


G'day,

I'm trying to see if I can find a simple configuration management system what would be suitable for a single host without the typical master-slave arrangement you see with tools like Puppet or Chef.

The primary use-case I'm currently seeing is a client I have who provides their app on Raspberry Pis. Updating them to the latest configuration has been a mix of, posting SD cards, sharing multi-GB SD card images online, and/or emailing custom shell scripts, all of which are somewhat painful.

I'd love to get this to the point of making the install process something like:

Install the latest Raspbian image, and then run:
Code:
$ sudo apt-get install FOO
$ git clone https://github.com/my_client/FOO_conf
$ FOO /path/to/git/clone/of/FOO_conf
And updates as something like:
Code:
$ cd /path/to/git/clone/of/FOO_conf
$ git pull
$ FOO
But I'm not aware of any tool that would work as "FOO" in that.

Does anyone know of any tool that would be suitable for something like this?
 
Old 01-29-2020, 09:09 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Your question is a bit confusing. You want configuration management on a single host, but then your client uses Raspberry Pis (plural).

If your configuration is simple, you can just ship the configuration files. But that doesn't seem to be the case here.

Thus, back to configuration management systems. Puppet and Chef have a steep learning curve and might be overkill. Ansible is simpler and works without special server software - all you need on the target system is the ssh server and Python. You still have to invest a few hours learning, but I would say it's an order of magnitude simpler than Puppet (I have no experience with Chef).
 
Old 02-02-2020, 10:30 PM   #3
Grainman
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
I mean single-host in the sense that Solitaire is a single-player game; yes, lots of people play Solitaire, but they don't interact with each other while doing so.

Ansible with SSH isn't really likely to work for this unfortunately because the Pis are small devices that move around (between various countries in Africa and Europe), so there's no way to predict which ones will be turned on or connected to the internet, or what IP addresses or hostnames they will have when they are on.

Thanks for your reply anyway. I'll have to keep looking though, or maybe write my own.
 
Old 02-02-2020, 11:50 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Grainman View Post
Ansible with SSH isn't really likely to work for this unfortunately because the Pis are small devices that move around (between various countries in Africa and Europe), so there's no way to predict which ones will be turned on or connected to the internet, or what IP addresses or hostnames they will have when they are on.
That actually sounds perfect for puppet which uses a pull model. When the machines are up and have network, regardless of where or when, they can automatically pull whatever configuration seetings are needed from the master.

Evo2.
 
Old 02-03-2020, 12:27 AM   #5
Grainman
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
That actually sounds perfect for puppet which uses a pull model.
Yeah, Puppet is a better choice (and I believe Chef also uses a pull model), and I've used it before.

It seems overkill though to set up a whole server (obviously I'd actually use a VPS) for this, partially for the cost, but more importantly for the SysAdmin time. I'm hoping to avoid having to maintain Yet Another Server just to copy a few configuration files, install a few .debs, and clone a git repository.

There's also considerations like key management and the process of adding new Raspberry Pis. (I would love my client to be able to spool up another half-a-dozen Pis tomorrow without having to call me to edit the manifests)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux alternative to MacOS Hazel with GUI for automated file management? b.horn Linux - Software 3 12-29-2019 10:18 AM
Automated BLFS using package management Johnburrell Linux From Scratch 0 05-21-2012 10:05 AM
Automated Configuration Nom Linux - Enterprise 1 01-22-2010 01:44 AM
LXer: Automated user management with Expect LXer Syndicated Linux News 0 09-26-2007 02:50 PM
Automated install based off of current machine? MHouse Fedora - Installation 4 06-25-2004 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration