2015-06-21 15:06:04 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# copyright: 2015, Vulcano Security GmbH
|
|
|
|
# license: All rights reserved
|
2015-08-28 18:49:21 +00:00
|
|
|
require 'vulcano/plugins'
|
2015-06-21 15:06:04 +00:00
|
|
|
|
|
|
|
module Vulcano
|
|
|
|
class Resource
|
2015-08-28 17:10:03 +00:00
|
|
|
def self.registry
|
|
|
|
@registry ||= {}
|
|
|
|
end
|
2015-06-21 15:06:04 +00:00
|
|
|
end
|
2015-08-28 17:10:03 +00:00
|
|
|
|
|
|
|
def self.resource(version)
|
2015-08-28 18:49:21 +00:00
|
|
|
if version != 1
|
|
|
|
raise "Only resource version 1 is supported!"
|
|
|
|
end
|
|
|
|
Vulcano::Plugins::Resource
|
2015-08-28 17:10:03 +00:00
|
|
|
end
|
|
|
|
end
|
2015-08-29 23:08:17 +00:00
|
|
|
|
|
|
|
require 'resources/apache_conf'
|
|
|
|
require 'resources/audit_policy'
|
|
|
|
require 'resources/auditd_conf'
|
|
|
|
require 'resources/auditd_rules'
|
|
|
|
require 'resources/command'
|
2015-09-01 08:55:28 +00:00
|
|
|
require 'resources/directory'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/env'
|
|
|
|
require 'resources/etc_group'
|
|
|
|
require 'resources/file'
|
|
|
|
require 'resources/group_policy'
|
|
|
|
require 'resources/inetd_conf'
|
|
|
|
require 'resources/limits_conf'
|
|
|
|
require 'resources/login_def'
|
|
|
|
require 'resources/mysql'
|
|
|
|
require 'resources/mysql_conf'
|
|
|
|
require 'resources/mysql_session'
|
|
|
|
require 'resources/ntp_conf'
|
|
|
|
require 'resources/parse_config'
|
|
|
|
require 'resources/passwd'
|
|
|
|
require 'resources/postgres'
|
|
|
|
require 'resources/postgres_conf'
|
|
|
|
require 'resources/postgres_session'
|
|
|
|
require 'resources/processes'
|
|
|
|
require 'resources/registry_key'
|
|
|
|
require 'resources/security_policy'
|
|
|
|
require 'resources/ssh_conf'
|