SuperTux88's Diaspora Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
808B

  1. # frozen_string_literal: true
  2. control 'diaspora configuration' do
  3. title 'should match desired lines'
  4. describe file('/srv/diaspora/config/database.yml') do
  5. it { should be_file }
  6. it { should be_owned_by 'diaspora' }
  7. it { should be_grouped_into 'root' }
  8. its('mode') { should cmp '0600' }
  9. its('content') do
  10. should include '# This file is managed by Salt! Do not edit by hand!'
  11. end
  12. end
  13. describe file('/srv/diaspora/config/diaspora.yml') do
  14. it { should be_file }
  15. it { should be_owned_by 'diaspora' }
  16. it { should be_grouped_into 'root' }
  17. its('mode') { should cmp '0600' }
  18. its('content') do
  19. should include '# This file is managed by Salt! Do not edit by hand!'
  20. end
  21. its('content') { should include 'rails_environment: production' }
  22. end
  23. end