####################################################### # # Apache 2 reconfig - modelled on SuSE # ####################################################### body common control { inputs => { "$(sys.libdir)/stdlib.cf" }; bundlesequence => { apache }; } ####################################################### bundle agent apache { files: SuSE:: "/etc/sysconfig/apache2" edit_line => fixapache; } ####################################################### # For the library ####################################################### bundle edit_line fixapache { vars: "add_modules" slist => { "dav", "dav_fs", "ssl", "php5", "dav_svn", "xyz", "superduper" }; "del_modules" slist => { "php3", "jk", "userdir", "imagemap", "alias" }; insert_lines: "APACHE_CONF_INCLUDE_FILES=\"/site/masterfiles/local-http.conf\""; field_edits: ##################################################################### # APACHE_MODULES="authz_host actions alias ..." ##################################################################### # Values have the form NAME = "quoted space separated list" "APACHE_MODULES=.*" # Insert module "columns" between the quoted RHS # using space separators edit_field => quoted_var($(add_modules), "append"); "APACHE_MODULES=.*" # Delete module "columns" between the quoted RHS # using space separators edit_field => quoted_var($(del_modules), "delete"); # if this line already exists, edit it }