Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
verifier: | ||
name: inspec | ||
driver: | ||
flavor_ref: 'm1.medium' | ||
provisioner: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
describe file('/data/backup') do | ||
it { should be_directory } | ||
its('mode') { should cmp 0700 } | ||
its('owner') { should eq 'root' } | ||
its('group') { should eq 'root' } | ||
end |
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...egration/client/serverspec/client_spec.rb → .../integration/client/inspec/client_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
describe file('/etc/nagios/mysql.cnf') do | ||
its('content') { should match(/user = monitor/) } | ||
its('content') { should match(/password = ToJzwUyqQmyV4GgMVpz0/) } | ||
its('mode') { should cmp 0600 } | ||
its('owner') { should eq 'nrpe' } | ||
its('group') { should eq 'nrpe' } | ||
end | ||
|
||
%w( | ||
innodb | ||
pidfile | ||
processlist | ||
replication-delay | ||
).each do |p| | ||
describe file("/etc/nagios/nrpe.d/pmp-check-mysql-#{p}.cfg") do | ||
its('content') do | ||
should match(%r{command\[pmp-check-mysql-#{p}\]=\/usr/lib64/nagios/plugins/pmp-check-mysql-#{p}}) | ||
end | ||
end | ||
describe command("/usr/lib64/nagios/plugins/pmp-check-mysql-#{p}") do | ||
its('stdout') { should match(/^OK/) } | ||
its('exit_status') { should eq 0 } | ||
end | ||
end | ||
|
||
describe file('/etc/munin/plugin-conf.d/mysql') do | ||
its('content') { should match(/env.mysqluser monitor/) } | ||
its('content') { should match(/env.mysqlpassword ToJzwUyqQmyV4GgMVpz0/) } | ||
its('mode') { should cmp 0600 } | ||
its('owner') { should eq 'munin' } | ||
its('group') { should eq 'munin' } | ||
end | ||
|
||
# bin_relay_log | ||
# is excluded from here since it doesn't work | ||
# for a single-node mysql installation | ||
%w( | ||
commands | ||
connections | ||
innodb_bpool | ||
innodb_bpool_act | ||
innodb_semaphores | ||
qcache | ||
qcache_mem | ||
queries | ||
slow | ||
slowqueries | ||
table_locks | ||
threads | ||
tmp_tables | ||
).each do |p| | ||
describe command("/usr/sbin/munin-run mysql_#{p}") do | ||
its('exit_status') { should eq 0 } | ||
end | ||
end | ||
|
||
describe command('/usr/local/libexec/mysql-accounting') do | ||
its('exit_status') { should eq 0 } | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.