mirror of
				https://github.com/saltstack-formulas/openssh-formula.git
				synced 2025-10-31 16:31:32 +01:00 
			
		
		
		
	* ci(kitchen): use `openssh.config` as `state_top` * Semi-automated using https://github.com/myii/ssf-formula/pull/33 * test(pillar): remove deprecated option and disabled method * https://travis-ci.org/myii/openssh-formula/jobs/585340845#L1811-L1813: * test(pillar): use same SSH options as used by Travis * Using existing options locks out after `kitchen converge` (before `verify`) * https://travis-ci.org/myii/openssh-formula/jobs/585356835#L2957-L2965: * test(inspec): add tests based on existing Serverspec tests * Follows on from #166
		
			
				
	
	
		
			16 lines
		
	
	
		
			292 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			292 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # Overide by Platform
 | |
| service_name = 'sshd'
 | |
| if platform[:family] == 'debian'
 | |
|   service_name = 'ssh'
 | |
| end
 | |
| 
 | |
| control 'openssh service' do
 | |
|   impact 0.5
 | |
|   title 'should be running and enabled'
 | |
| 
 | |
|   describe service(service_name) do
 | |
|     it { should be_enabled }
 | |
|     it { should be_running }
 | |
|   end
 | |
| end
 |