Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've built my Centos server several times, and am still learning.

I've used tutorials, books, and forums to come up with what I think is correct.

I document all the steps in a word document, and then copy a line from the word document, and past it into the shell.

Am I able to create some sort of batch file (shell script, right?) to automate the process? I am not talking about the initial Centos install, but adding packages, etc. If the answer is "yes", I have a couple of specific questions:

  1. How am I able to have the shell script edit a file (for instance, add "max_input_vars=10000" to php.ini)?
  2. How do I use the shell script to importing and checking a RPM key work.


share|improve this question
up vote 3 down vote accepted

Build a server to your tastes, then reverse-engineer into a POSIX shell script using Blueprint. ;)

Anything beyond that, and you need to explore configuration management frameworks: Puppet, Chef, Saltstack, Ansible, etc.

share|improve this answer
Thanks ewwhite. Sounds like a great idea. Sounds like you recommend using Blueprint over the other configuration management frameworks, correct? Am I able to show someone the outputted POSIX shell script (or some other outputted document) and have them critique my configuration? – user1032531 Mar 16 '14 at 17:16
I recommend proper configuration management, actually... but Blueprint is a convenient way to obtain a server's configuration. And yes, you can preview the script. – ewwhite Mar 16 '14 at 17:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.