Changes between Version 2 and Version 3 of cfgen


Ignore:
Timestamp:
07.06.2011 20:42:09 (10 years ago)
Author:
dozzie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cfgen

    v2 v3  
    55== Description == 
    66 
    7 Config generator that uses templates 
    8 ([http://www.template-toolkit.org/ Template::Toolkit]) parametrized with 
    9 [http://www.yaml.org/ YAML] files filled with values for each host. 
     7Imagine that you have many servers. Imagine that each of the server holds 
     8similar set of services, among the other tasks. These services could be not 
     9a critical ones from business point of view, but very useful for you as 
     10an administrator. Examples of such services include SSH daemon, mail system 
     11(crontab logs anyone?), syslog, backup agent, cron entries or sudo. 
     12 
     13Now imagine that you want these services configured similarly across your 
     14servers; that the configs on each server are almost-identical. Almost. 
     15Differences will probably consist of very few variables, like hostname, LDAP 
     16server address and stuff like that. It would be great if you had a sort of 
     17template that gets filled with host's parameters just before being used as 
     18a config. 
     19 
     20This is the place where ''cfgen'' appears on the scene. 
     21 
     22Main ''cfgen's'' use is to mix config templates with host-dependent variables 
     23and produce ready-to-use configs, separate one for each known host. 
     24 
     25Template system used for this is 
     26[http://www.template-toolkit.org/ Template::Toolkit], and host-dependent 
     27variables are stored in [http://www.yaml.org/ YAML] files. 
    1028 
    1129== How to download == 
     
    2139== How to use == 
    2240 
     41=== Full-blown generator environment === 
     42 
    2343'''TODO''' 
     44 
     45=== Quick run === 
     46 
     47This way of running ''cfgen'' is not that quick in the long run, but if you 
     48want just to check if your Template::Toolkit construction works, it's good 
     49enough, yet you don't have to prepare full build environment. 
     50 
     51'''TODO'''