first round of absent/present changes
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								5a64c89c8e
							
						
					
				
			
			
				commit
				
					
						242ce6dfd2
					
				
			
		
					 8 changed files with 40 additions and 33 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
cdist-type__user(7)
 | 
					cdist-type__package(7)
 | 
				
			||||||
===================
 | 
					======================
 | 
				
			||||||
Steven Armstrong <steven-cdist--@--armstrong.cc>
 | 
					Steven Armstrong <steven-cdist--@--armstrong.cc>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,8 @@ It dispatches the actual work to the package system dependant types.
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   The state the package should be in, either "installed" or "removed"
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					@ -40,13 +41,13 @@ EXAMPLES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
# Install the package vim on the target
 | 
					# Install the package vim on the target
 | 
				
			||||||
__package vim --state installed
 | 
					__package vim --state present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Same but install specific version
 | 
					# Same but install specific version
 | 
				
			||||||
__package vim --state installed --version 7.3.50
 | 
					__package vim --state present --version 7.3.50
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Force use of a specific package type
 | 
					# Force use of a specific package type
 | 
				
			||||||
__package vim --state installed --type __package_apt
 | 
					__package vim --state present --type __package_apt
 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,8 @@ manage packages.
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					@ -31,13 +32,13 @@ EXAMPLES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
# Ensure zsh in installed
 | 
					# Ensure zsh in installed
 | 
				
			||||||
__package_apt zsh --state installed
 | 
					__package_apt zsh --state present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# In case you only want *a* webserver, but don't care which one
 | 
					# In case you only want *a* webserver, but don't care which one
 | 
				
			||||||
__package_apt webserver --state installed --name nginx
 | 
					__package_apt webserver --state present --name nginx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Remove obsolete package
 | 
					# Remove obsolete package
 | 
				
			||||||
__package_apt puppet --state removed
 | 
					__package_apt puppet --state absent
 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
cdist-type__package_luarocks(7)
 | 
					cdist-type__package_luarocks(7)
 | 
				
			||||||
==============================
 | 
					===============================
 | 
				
			||||||
Christian G. Warden <cwarden@xerus.org>
 | 
					Christian G. Warden <cwarden@xerus.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,8 @@ LuaRocks is a deployment and management system for Lua modules.
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,8 @@ packages.
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					@ -49,5 +50,5 @@ SEE ALSO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPYING
 | 
					COPYING
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
Copyright \(C) 2011 Nico Schottelius. Free use of this software is
 | 
					Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
 | 
				
			||||||
granted under the terms of the GNU General Public License version 3 (GPLv3).
 | 
					granted under the terms of the GNU General Public License version 3 (GPLv3).
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,8 @@ This type is usually used on OpenBSD to manage packages.
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,8 @@ Rubygems is the default package management system for the Ruby programming langu
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,8 @@ slightly confusing error message "Error: Nothing to do".
 | 
				
			||||||
REQUIRED PARAMETERS
 | 
					REQUIRED PARAMETERS
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
state::
 | 
					state::
 | 
				
			||||||
   Either "installed" or "removed".
 | 
					    The state the package should be in, either "present" or "absent"
 | 
				
			||||||
 | 
					    (the old values "installed" or "removed" will be removed in cdist 2.1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OPTIONAL PARAMETERS
 | 
					OPTIONAL PARAMETERS
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue