2015-06-21 15:06:04 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# copyright: 2015, Vulcano Security GmbH
|
|
|
|
# license: All rights reserved
|
2015-10-06 16:55:44 +00:00
|
|
|
# author: Dominik Richter
|
|
|
|
# author: Christoph Hartmann
|
|
|
|
|
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
|
2015-09-03 21:24:42 +00:00
|
|
|
fail 'Only resource version 1 is supported!'
|
2015-08-28 18:49:21 +00:00
|
|
|
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'
|
2015-09-03 15:10:08 +00:00
|
|
|
require 'resources/bond'
|
2015-10-09 13:07:03 +00:00
|
|
|
require 'resources/bridge'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/command'
|
2015-09-01 08:55:28 +00:00
|
|
|
require 'resources/directory'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/etc_group'
|
|
|
|
require 'resources/file'
|
2015-09-08 22:11:42 +00:00
|
|
|
require 'resources/gem'
|
2015-10-06 12:13:11 +00:00
|
|
|
require 'resources/group'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/group_policy'
|
2015-10-09 17:10:10 +00:00
|
|
|
require 'resources/host'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/inetd_conf'
|
2015-10-07 21:47:57 +00:00
|
|
|
require 'resources/interface'
|
2015-09-21 07:51:00 +00:00
|
|
|
require 'resources/json'
|
2015-09-20 16:32:50 +00:00
|
|
|
require 'resources/kernel_module'
|
2015-09-20 16:33:43 +00:00
|
|
|
require 'resources/kernel_parameter'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/limits_conf'
|
|
|
|
require 'resources/login_def'
|
|
|
|
require 'resources/mysql'
|
|
|
|
require 'resources/mysql_conf'
|
|
|
|
require 'resources/mysql_session'
|
2015-09-08 22:12:25 +00:00
|
|
|
require 'resources/npm'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/ntp_conf'
|
2015-09-10 11:35:15 +00:00
|
|
|
require 'resources/oneget'
|
2015-09-20 21:55:00 +00:00
|
|
|
require 'resources/os'
|
2015-09-05 18:09:55 +00:00
|
|
|
require 'resources/os_env'
|
2015-09-08 22:05:05 +00:00
|
|
|
require 'resources/package'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/parse_config'
|
|
|
|
require 'resources/passwd'
|
2015-09-08 22:13:08 +00:00
|
|
|
require 'resources/pip'
|
2015-09-23 13:19:48 +00:00
|
|
|
require 'resources/port'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/postgres'
|
|
|
|
require 'resources/postgres_conf'
|
|
|
|
require 'resources/postgres_session'
|
|
|
|
require 'resources/processes'
|
|
|
|
require 'resources/registry_key'
|
2015-10-07 11:04:40 +00:00
|
|
|
require 'resources/script'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/security_policy'
|
2015-09-14 13:01:33 +00:00
|
|
|
require 'resources/service'
|
2015-08-29 23:08:17 +00:00
|
|
|
require 'resources/ssh_conf'
|
2015-10-03 11:32:19 +00:00
|
|
|
require 'resources/user'
|
2015-09-20 15:42:09 +00:00
|
|
|
require 'resources/windows_feature'
|
2015-09-06 15:01:28 +00:00
|
|
|
require 'resources/yum'
|
2015-09-21 08:31:31 +00:00
|
|
|
|
|
|
|
# file formats, depend on json implementation
|
|
|
|
require 'resources/json'
|
|
|
|
require 'resources/yaml'
|
|
|
|
require 'resources/csv'
|