1

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.

Thanks

3

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.

  • 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
  • 1
    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 clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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