| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | cdist(1) | 
					
						
							|  |  |  | ======== | 
					
						
							|  |  |  | Nico Schottelius <nico-cdist--@--schottelius.org> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | NAME | 
					
						
							|  |  |  | ---- | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | cdist - Usable Configuration Management | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SYNOPSIS | 
					
						
							|  |  |  | -------- | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | cdist [-h] [-d] [-v] [-V] {banner,config,shell} ... | 
					
						
							| 
									
										
										
										
											2011-09-13 22:48:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | cdist banner [-h] [-d] [-v] | 
					
						
							| 
									
										
										
										
											2011-09-13 22:48:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-11-30 13:48:34 +01:00
										 |  |  | cdist config [-h] [-d] [-V] [-c CONF_DIR] [-i MANIFEST] [-p] [-s] host [host ...] | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | cdist shell [-h] [-d] [-v] [-s SHELL] | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DESCRIPTION | 
					
						
							|  |  |  | ----------- | 
					
						
							|  |  |  | cdist is the frontend executable to the cdist configuration management. | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | cdist supports different subcommands as explained below. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | GENERAL | 
					
						
							|  |  |  | ------- | 
					
						
							| 
									
										
										
										
											2014-04-29 21:33:18 +02:00
										 |  |  | All commands accept the following options: | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -d, --debug:: | 
					
						
							|  |  |  |     Set log level to debug | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-13 22:48:14 +02:00
										 |  |  | -h, --help:: | 
					
						
							|  |  |  |    Show the help screen | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-29 21:34:03 +02:00
										 |  |  | -v, --verbose:: | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  |     Set log level to info, be more verbose | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | -V, --version:: | 
					
						
							|  |  |  |    Show version and exit | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | BANNER | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | ------ | 
					
						
							|  |  |  | Displays the cdist banner. Useful for printing | 
					
						
							|  |  |  | cdist posters - a must have for every office. | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CONFIG | 
					
						
							|  |  |  | ------ | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | Configure one or more hosts | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | -h, --help:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Show the help screen | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-11-30 13:48:34 +01:00
										 |  |  | -c CONF_DIR, --conf-dir CONF_DIR:: | 
					
						
							|  |  |  |     Add a configuration directory. Can be specified multiple times. | 
					
						
							|  |  |  |     If configuration directories contain conflicting types, explorers or | 
					
						
							|  |  |  |     manifests, then the last one found is used. Additionally this can also | 
					
						
							|  |  |  |     be configured by setting the CDIST_PATH environment variable to a colon | 
					
						
							|  |  |  |     delimited list of config directories. Directories given with the | 
					
						
							|  |  |  |     --conf-dir argument have higher precedence over those set through the | 
					
						
							|  |  |  |     environment variable. | 
					
						
							| 
									
										
										
										
											2011-09-12 11:18:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -i MANIFEST, --initial-manifest MANIFEST:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Path to a cdist manifest or - to read from stdin | 
					
						
							| 
									
										
										
										
											2011-09-12 11:18:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | -p, --parallel:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Operate on multiple hosts in parallel | 
					
						
							| 
									
										
										
										
											2011-09-12 11:18:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -s, --sequential:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Operate on multiple hosts sequentially | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-29 21:34:03 +02:00
										 |  |  | --remote-copy REMOTE_COPY:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Command to use for remote copy (should behave like scp) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-29 21:34:03 +02:00
										 |  |  | --remote-exec REMOTE_EXEC:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     Command to use for remote execution (should behave like ssh) | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | SHELL | 
					
						
							|  |  |  | ----- | 
					
						
							| 
									
										
										
										
											2013-08-12 12:32:58 +02:00
										 |  |  | This command allows you to spawn a shell that enables access | 
					
						
							|  |  |  | to the types as commands. It can be thought as an | 
					
						
							|  |  |  | "interactive manifest" environment. See below for example | 
					
						
							|  |  |  | usage. Its primary use is for debugging type parameters. | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -s/--shell:: | 
					
						
							|  |  |  |     Select shell to use, defaults to current shell | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | EXAMPLES | 
					
						
							|  |  |  | -------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | -------------------------------------------------------------------------------- | 
					
						
							|  |  |  | # Configure ikq05.ethz.ch with debug enabled | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | % cdist config -d ikq05.ethz.ch | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-09 14:41:50 -08:00
										 |  |  | # Configure hosts in parallel and use a different configuration directory | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | % cdist config -c ~/p/cdist-nutzung \ | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     -p ikq02.ethz.ch ikq03.ethz.ch ikq04.ethz.ch | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Use custom remote exec / copy commands | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | % cdist config --remote-exec /path/to/my/remote/exec \ | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     --remote-copy /path/to/my/remote/copy \ | 
					
						
							|  |  |  |     -p ikq02.ethz.ch ikq03.ethz.ch ikq04.ethz.ch | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Display banner | 
					
						
							|  |  |  | cdist banner | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | # Show help | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | % cdist --help | 
					
						
							| 
									
										
										
										
											2011-09-13 21:35:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Show Version | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | % cdist --version | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Enter a shell that has access to emulated types | 
					
						
							|  |  |  | % cdist shell | 
					
						
							|  |  |  | % __git | 
					
						
							|  |  |  | usage: __git --source SOURCE [--state STATE] [--branch BRANCH] | 
					
						
							|  |  |  |              [--group GROUP] [--owner OWNER] [--mode MODE] object_id | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-12 11:18:18 +02:00
										 |  |  | -------------------------------------------------------------------------------- | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-18 21:04:23 +02:00
										 |  |  | ENVIRONMENT | 
					
						
							|  |  |  | ----------- | 
					
						
							| 
									
										
										
										
											2011-09-19 08:31:14 +02:00
										 |  |  | TMPDIR, TEMP, TMP:: | 
					
						
							| 
									
										
										
										
											2014-01-20 20:30:37 +01:00
										 |  |  |     Setup the base directory for the temporary directory. | 
					
						
							|  |  |  |     See http://docs.python.org/py3k/library/tempfile.html for | 
					
						
							|  |  |  |     more information. This is rather useful, if the standard | 
					
						
							|  |  |  |     directory used does not allow executables. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CDIST_LOCAL_SHELL:: | 
					
						
							|  |  |  |     Selects shell for local script execution, defaults to /bin/sh | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CDIST_REMOTE_SHELL:: | 
					
						
							|  |  |  |     Selects shell for remote scirpt execution, defaults to /bin/sh | 
					
						
							| 
									
										
										
										
											2011-09-18 21:04:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-12 20:20:18 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | EXIT STATUS | 
					
						
							|  |  |  | ----------- | 
					
						
							|  |  |  | The following exit values shall be returned: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 0:: | 
					
						
							|  |  |  |     Successful completion | 
					
						
							|  |  |  | 1:: | 
					
						
							| 
									
										
										
										
											2012-05-22 15:06:04 +02:00
										 |  |  |     One or more host configurations failed | 
					
						
							| 
									
										
										
										
											2012-03-12 20:20:18 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | SEE ALSO | 
					
						
							|  |  |  | -------- | 
					
						
							|  |  |  | - cdist(7) | 
					
						
							| 
									
										
										
										
											2011-09-13 22:49:42 +02:00
										 |  |  | - cdist-reference(7) | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | COPYING | 
					
						
							|  |  |  | ------- | 
					
						
							| 
									
										
										
										
											2013-08-12 11:42:00 +02:00
										 |  |  | Copyright \(C) 2011-2013 Nico Schottelius. Free use of this software is | 
					
						
							| 
									
										
										
										
											2011-09-12 10:58:10 +02:00
										 |  |  | granted under the terms of the GNU General Public License version 3 (GPLv3). |