|
| 1 | +require 'chef/resource/lwrp_base' |
| 2 | + |
| 3 | +class Chef |
| 4 | + class Resource |
| 5 | + class AppDynamicsPHPAgent < Chef::Resource::LWRPBase |
| 6 | + provides :appdynamics_php_agent |
| 7 | + |
| 8 | + self.resource_name = :appdynamics_php_agent |
| 9 | + actions :install |
| 10 | + default_action :install |
| 11 | + |
| 12 | + attribute :dest, kind_of: String, required: true |
| 13 | + attribute :version, kind_of: String, regex: /^\d+\.\d+.\d+.\d+/, required: true |
| 14 | + attribute :source, kind_of: [String, NilClass], default: nil |
| 15 | + attribute :checksum, kind_of: [String, NilClass], default: nil |
| 16 | + |
| 17 | + attribute :app_name, kind_of: String, required: true |
| 18 | + attribute :tier_name, kind_of: String, required: true |
| 19 | + attribute :node_name, kind_of: String, required: true |
| 20 | + |
| 21 | + attribute :controller_host, kind_of: String, required: true |
| 22 | + attribute :controller_port, kind_of: [String, Integer], default: 443 |
| 23 | + attribute :controller_ssl, kind_of: [TrueClass, FalseClass], default: true |
| 24 | + attribute :account, kind_of: String, default: 'customer1' |
| 25 | + attribute :accesskey, kind_of: String, required: true |
| 26 | + |
| 27 | + attribute :http_proxy_host, kind_of: [String, NilClass], default: nil |
| 28 | + attribute :http_proxy_port, kind_of: [String, Integer, NilClass], default: nil |
| 29 | + attribute :http_proxy_user, kind_of: [String, NilClass], default: nil |
| 30 | + attribute :http_proxy_password_file, kind_of: [String, NilClass], default: nil |
| 31 | + |
| 32 | + attribute :owner, kind_of: [String, Integer, NilClass], default: nil |
| 33 | + attribute :group, kind_of: [String, Integer, NilClass], default: nil |
| 34 | + end |
| 35 | + end |
| 36 | +end |
0 commit comments