Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. %w(ansible
  4. ca-certificates
  5. curl
  6. python-lockfile
  7. python-pip
  8. python-setuptools
  9. software-properties-common
  10. unzip
  11. wget).each do |p|
  12. describe package(p) do
  13. it { should be_installed }
  14. end
  15. end
  16.  
  17. describe command('pip list') do
  18. its(:stdout) { should match 's3cmd' }
  19. end
  20.  
  21. describe file('/usr/local/bin/cfn-signal') do
  22. it { should be_executable }
  23. end
  24.  
  25. describe file('/usr/local/bin/aws') do
  26. it { should be_executable }
  27. end
  28.  
  29. describe file('/tmp/awscli-bundle*') do
  30. it { should_not exist }
  31. end
  32.  
  33. describe ppa('ansible/ansible') do
  34. it { should be_enabled }
  35. end
  36.  
  37. describe package('ansible') do
  38. it { should be_installed.with_version('2.0.0.2-2') }
  39. end
  40.  
  41. describe file('/etc/ansible/inventory') do
  42. it { should be_a_directory }
  43. end
  44.  
  45. describe file('/etc/ansible/inventory/hostgroup.py') do
  46. it { should be_executable }
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement