Module: Chef::Resource::SslCertificate::Chain

Included in:
Chef::Resource::SslCertificate
Defined in:
libraries/resource_ssl_certificate_chain.rb

Overview

ssl_certificate Chef Resource cert related methods.

Constant Summary collapse

ATTRS =
%w(
  chain_path
  chain_name
  chain_dir
  chain_source
  chain_bag
  chain_item
  chain_item_key
  chain_encrypted
  chain_secret_file
  chain_content
  chain_combined_path
  chain_combined_name
).freeze
SOURCES =
%w(
  attribute
  data_bag
  chef_vault
  file
  self_signed
).freeze

Instance Method Summary collapse

Instance Method Details

#chain_bag(arg = nil) ⇒ Object


84
85
86
# File 'libraries/resource_ssl_certificate_chain.rb', line 84

def chain_bag(arg = nil)
  set_or_return(:chain_bag, arg, kind_of: String)
end

#chain_combined_name(arg = nil) ⇒ Object


108
109
110
111
112
# File 'libraries/resource_ssl_certificate_chain.rb', line 108

def chain_combined_name(arg = nil)
  set_or_return(
    :chain_combined_name, arg, kind_of: String, required: false
  )
end

#chain_combined_path(arg = nil) ⇒ Object


114
115
116
117
118
# File 'libraries/resource_ssl_certificate_chain.rb', line 114

def chain_combined_path(arg = nil)
  set_or_return(
    :chain_combined_path, arg, kind_of: String, required: false
  )
end

#chain_content(arg = nil) ⇒ Object


104
105
106
# File 'libraries/resource_ssl_certificate_chain.rb', line 104

def chain_content(arg = nil)
  set_or_return(:chain_content, arg, kind_of: String)
end

#chain_dir(arg = nil) ⇒ Object


72
73
74
# File 'libraries/resource_ssl_certificate_chain.rb', line 72

def chain_dir(arg = nil)
  set_or_return(:chain_dir, arg, kind_of: String)
end

#chain_encrypted(arg = nil) ⇒ Object


96
97
98
# File 'libraries/resource_ssl_certificate_chain.rb', line 96

def chain_encrypted(arg = nil)
  set_or_return(:chain_encrypted, arg, kind_of: [TrueClass, FalseClass])
end

#chain_item(arg = nil) ⇒ Object


88
89
90
# File 'libraries/resource_ssl_certificate_chain.rb', line 88

def chain_item(arg = nil)
  set_or_return(:chain_item, arg, kind_of: String)
end

#chain_item_key(arg = nil) ⇒ Object


92
93
94
# File 'libraries/resource_ssl_certificate_chain.rb', line 92

def chain_item_key(arg = nil)
  set_or_return(:chain_item_key, arg, kind_of: String)
end

#chain_name(arg = nil) ⇒ Object


68
69
70
# File 'libraries/resource_ssl_certificate_chain.rb', line 68

def chain_name(arg = nil)
  set_or_return(:chain_name, arg, kind_of: String, required: false)
end

#chain_path(arg = nil) ⇒ Object


76
77
78
# File 'libraries/resource_ssl_certificate_chain.rb', line 76

def chain_path(arg = nil)
  set_or_return(:chain_path, arg, kind_of: String, required: false)
end

#chain_secret_file(arg = nil) ⇒ Object


100
101
102
# File 'libraries/resource_ssl_certificate_chain.rb', line 100

def chain_secret_file(arg = nil)
  set_or_return(:chain_secret_file, arg, kind_of: String)
end

#chain_source(arg = nil) ⇒ Object


80
81
82
# File 'libraries/resource_ssl_certificate_chain.rb', line 80

def chain_source(arg = nil)
  set_or_return(:chain_source, arg, kind_of: String)
end

#initialize_chain_defaultsObject


64
65
66
# File 'libraries/resource_ssl_certificate_chain.rb', line 64

def initialize_chain_defaults
  initialize_attribute_defaults(Chain::ATTRS)
end