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.
|
- # frozen_string_literal: true
-
- control 'diaspora configuration' do
- title 'should match desired lines'
-
- describe file('/srv/diaspora/config/database.yml') do
- it { should be_file }
- it { should be_owned_by 'diaspora' }
- it { should be_grouped_into 'root' }
- its('mode') { should cmp '0600' }
- its('content') do
- should include '# This file is managed by Salt! Do not edit by hand!'
- end
- end
-
- describe file('/srv/diaspora/config/diaspora.yml') do
- it { should be_file }
- it { should be_owned_by 'diaspora' }
- it { should be_grouped_into 'root' }
- its('mode') { should cmp '0600' }
- its('content') do
- should include '# This file is managed by Salt! Do not edit by hand!'
- end
- its('content') { should include 'rails_environment: production' }
- end
- end
|