Allow kwargs for template context when deploying sudoers file
This commit is contained in:
		
							parent
							
								
									d6a11908ce
								
							
						
					
					
						commit
						6cb6ddaba7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -208,7 +208,7 @@ class Deployer(object): | ||||||
|             put(c, local_path, remote_path, **kwargs) |             put(c, local_path, remote_path, **kwargs) | ||||||
| 
 | 
 | ||||||
|     def sudoers(self, c, local_path, remote_path, owner='root:', mode='0440', **kwargs): |     def sudoers(self, c, local_path, remote_path, owner='root:', mode='0440', **kwargs): | ||||||
|         self.deploy(c, local_path, '/tmp/sudoers', owner=owner, mode=mode, use_sudo=True) |         self.deploy(c, local_path, '/tmp/sudoers', owner=owner, mode=mode, use_sudo=True, **kwargs) | ||||||
|         c.sudo('mv /tmp/sudoers {}'.format(remote_path)) |         c.sudo('mv /tmp/sudoers {}'.format(remote_path)) | ||||||
| 
 | 
 | ||||||
|     def apache_site(self, c, local_path, name, **kwargs): |     def apache_site(self, c, local_path, name, **kwargs): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar