describe file('/etc/postgresql/9.1/main/pg_hba.conf') do its('content') { should match /Please observe the GDPR regulations/ } control do impact 'critical' title 'Verify GDPR hint exists in /etc/motd' desc 'Control tests MOTD for GDPR hint and sends out alarm if missing' tag 'gdpr' inspec exec inspec exec Example --key-files $HOME/.ssh/id_rsa --target ssh://root@10.42.0.1 - name: basics-profile path: /home/inspec/profiles/basics