summaryrefslogtreecommitdiffstats
path: root/src/lib/Options.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow to run directly from a git checkout (#1037)Sol Jerome2012-03-241-381/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'fix-svn-keywords'Sol Jerome2012-03-171-1/+0
|\
| * Remove svn keywordsSol Jerome2012-02-191-1/+0
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Options: Better fix for unreadable bcfg2.confSol Jerome2012-03-171-11/+8
|/ | | | | | | We still may be glossing over a few errors in the try/except block, but this should warn properly when bcfg2 is unable to read bcfg2.conf. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Options: Inform user when unable to read bcfg2.confSol Jerome2012-02-011-1/+11
| | | | | | | | | | | | | Reported by mattikus on IRC. The real problem here is that we are glossing over a ton of potential errors with an "except: pass" block. We need to redo this so that we catch all the potential errors and pass them on to the user. The error we were seeing in this case was caused by insufficient permissions to read the bcfg2.conf file. There is an exception that is thrown, but it was glossed over in the calling try/except block. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Options: Fix paranoid = false in bcfg2.conf (#1048)Sol Jerome2011-09-141-1/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Base plugin is deprecated in 1.2.0anatoly techtonik2011-09-101-1/+0
|
* Options: Clarify interactive mode descriptionSol Jerome2011-09-101-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* New Info attribute: "sensitive"Holger Weiß2011-06-291-0/+3
| | | | | | The contents/diffs of <Path>s which are marked as "sensitive" are now omitted from the reports transmitted to the server, so that they won't end up in the statistics database.
* Correct the description of bcfg2(1)'s "-z" optionHolger Weiß2011-06-211-1/+1
| | | | | The "-z" option is for use with Independent collections instead of Bundles.
* Options: Set default encoding to UTF-8 (as per Holger Weiß's suggestion)Sol Jerome2011-06-061-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Document the "decision" option in bcfg2.conf(5)Holger Weiß2011-06-041-2/+2
| | | | | | Add documentation for the "decision" option to the bcfg2.conf(5) man page. Also, note that it can be overridden using "-l none" on the bcfg2(1) command line.
* bcfg2-server: Add the ability to listen on specific interfaces (#1013)Sol Jerome2011-06-031-0/+19
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added -t option to set client timeoutChris St. Pierre2011-06-011-0/+3
|
* allow setting whitelist/blacklist mode in bcfg2.confChris St. Pierre2011-05-241-0/+1
|
* Common: Add full PY3K compatibilitySol Jerome2011-04-271-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* A property file can now have a matching .xsd file (e.g.,Chris St. Pierre2011-04-131-0/+2
| | | | | | | | "Properties/foo.xml" and "Properties/foo.xsd") which specifies a schema for that property file. bcfg2-repo-validate will check the property file against its schema. Updated bcfg2-repo-validate man page with several new options.
* Added two flags to bcfg2-repo-validate:Chris St. Pierre2011-04-111-0/+6
| | | | | | | | | * --schema allows you to specify a custom path to the XML Schema files * --stdin allows you to specify a list of files on stdin and bcfg2-repo-validate will only validate those files. This is particularly useful to speed up validation checks in post-commit hooks (or similar).
* Minor changes acc. PEP8Fabian Affolter2011-01-051-25/+25
| | | | (cherry picked from commit e36006a033f9610382a4a0f233b14df246acd851)
* bcfg2 client: implement bundle-quick modeNarayan Desai2010-12-081-0/+2
|
* Use for both, the server and the client, '--ssl-key' Fabian Affolter2010-08-141-41/+42
| | | | | | Options membered git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6012 ce84e21b-d406-0410-9b95-82705330c041
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-221-5/+8
| | | | | | | | | | | | We currently have 'important' entries specified only inside the code for various client tools. This provides no room for growing that list outside of adding things to the code itself. With this change, users can now specify important entries via an additional attribute in their info.xml files. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5957 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-071-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5899 ce84e21b-d406-0410-9b95-82705330c041
* APT: Add support for using non-standard tool paths (Resolves Ticket #773Sol Jerome2010-03-131-0/+10
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5766 ce84e21b-d406-0410-9b95-82705330c041
* Options.py: Add configurable lockfile option (Resolves Ticket #850)Sol Jerome2010-02-201-0/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5734 ce84e21b-d406-0410-9b95-82705330c041
* SSL fingerprint is deprecatedSol Jerome2010-02-041-3/+0
| | | | | | | | | | | Removing all references to the old method of using fingerprints to verify the server you are communicating with. The new way to do this is to use the 'ca' option in bcfg2.conf along with the bcfg2 server's CA certificate. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5712 ce84e21b-d406-0410-9b95-82705330c041
* Add bcfg2.conf option so that client can always run in paranoid modeSol Jerome2009-10-141-1/+1
| | | | | | | | | | | You currently must specify the -P command line option in order to run the client in paranoid mode. In order to allow for consistent usage (as specified in ticket #763), this commit adds an option to bcfg2.conf so that the client will always be run in paranoid mode. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5482 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-4/+5
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Paranoid mode: Make paranoid mode more versatile/configurableSol Jerome2009-07-181-0/+7
| | | | | | | | | | | | | | | | | This commit adds a new [paranoid] section in bcfg2.conf. This allows you to specify a backup path other than the default as well as set a maximum number of copies to keep around. You are now allowed multiple backup copies, which are marked with a timestamp. This should help to prevent accidental deletion when running in paranoid mode multiple times. The paranoid section currently looks something like this: [paranoid] path = /my/custom/backup/path max_copies = 5 Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5345 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Add configurable metadata settings to bcfg2.conf (ticket #680)Sol Jerome2009-07-011-0/+12
| | | | | | | | | | The default settings for ConfigFile metadata were previously hardcoded in Plugin.py. This change enables setting global user-specified defaults in the [mdata] section of bcfg2.conf. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5308 ce84e21b-d406-0410-9b95-82705330c041
* Options.py: Remove unused variableSol Jerome2009-07-011-1/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5307 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: add complete profiling supportNarayan Desai2009-06-211-1/+1
| | | | | | | | | | Build uniform profiling support for both core startup and individual commands. Also ensure that single shot commands (from argv) work properly. Core profiling (for startup) can be enabled with -p, and individual commands can be profiled by prefixing the profile command, a la: > profile build ubik3 /tmp/ubik3.xml git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5290 ce84e21b-d406-0410-9b95-82705330c041
* Implement -z (for Independent entries only, a la -b) (Resolves Ticket #616)Narayan Desai2009-06-141-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5281 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implememt client-side server cN verificationNarayan Desai2009-05-191-0/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5244 ce84e21b-d406-0410-9b95-82705330c041
* Cleaned up agent mode options and added cmd line options for SSL reworkSol Jerome2009-05-121-20/+14
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5222 ce84e21b-d406-0410-9b95-82705330c041
* Add spacing for longer options in bcfg2 -hSol Jerome2009-05-061-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5200 ce84e21b-d406-0410-9b95-82705330c041
* SSL: build appropriate client optionsNarayan Desai2009-05-061-1/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5196 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Setup server optionsNarayan Desai2009-05-061-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5194 ce84e21b-d406-0410-9b95-82705330c041
* More python 2to3 updates along with pylint/code cleanupsSol Jerome2009-04-231-8/+12
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5173 ce84e21b-d406-0410-9b95-82705330c041
* Remove unused imports for pylintSol Jerome2009-04-171-1/+5
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
* Implement ssl certificate split, in preparation for SSL client cert authNarayan Desai2009-04-081-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5155 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: add option trace file option for profiling modeNarayan Desai2009-03-091-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5113 ce84e21b-d406-0410-9b95-82705330c041
* Implement profiler mode for bcfg2-infoNarayan Desai2009-03-091-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5111 ce84e21b-d406-0410-9b95-82705330c041
* Remove old vcs optionSol Jerome2009-02-191-3/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5085 ce84e21b-d406-0410-9b95-82705330c041
* Update Init.py for new bcfg2.conf layoutSol Jerome2009-02-111-6/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5073 ce84e21b-d406-0410-9b95-82705330c041
* Simplify service configuration; make all services use common restart frameworkNarayan Desai2009-01-231-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5040 ce84e21b-d406-0410-9b95-82705330c041
* Revert accidental svn keyword changes and add minor pylint fixesSol Jerome2009-01-151-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5027 ce84e21b-d406-0410-9b95-82705330c041
* Add support for alternate VCS backendsSol Jerome2009-01-131-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5023 ce84e21b-d406-0410-9b95-82705330c041
* Implement metadata connector functionalityNarayan Desai2008-12-241-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5000 ce84e21b-d406-0410-9b95-82705330c041
* Harden file monitoring option handling (Resolves Ticket #611 and reresolves ↵Narayan Desai2008-11-131-1/+1
| | | | | | #536) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4973 ce84e21b-d406-0410-9b95-82705330c041