@@ -36,6 +36,7 @@ class ConsulConfig < Chef::Resource
36
36
attribute ( :acl_default_policy , kind_of : String )
37
37
attribute ( :acl_down_policy , kind_of : String )
38
38
attribute ( :acl_master_token , kind_of : String )
39
+ attribute ( :acl_replication_token , kind_of : String )
39
40
attribute ( :acl_token , kind_of : String )
40
41
attribute ( :acl_ttl , kind_of : String )
41
42
attribute ( :addresses , kind_of : [ Hash , Mash ] )
@@ -57,6 +58,7 @@ class ConsulConfig < Chef::Resource
57
58
attribute ( :datacenter , kind_of : String )
58
59
attribute ( :dev_mode , equal_to : [ true , false ] , default : false )
59
60
attribute ( :disable_anonymous_signature , equal_to : [ true , false ] , default : false )
61
+ attribute ( :disable_compression , equal_to : [ true , false ] , default : false )
60
62
attribute ( :disable_remote_exec , equal_to : [ true , false ] , default : false )
61
63
attribute ( :disable_update_check , equal_to : [ true , false ] , default : false )
62
64
attribute ( :dns_config , kind_of : [ Hash , Mash ] )
@@ -68,9 +70,13 @@ class ConsulConfig < Chef::Resource
68
70
attribute ( :leave_on_terminate , equal_to : [ true , false ] , default : false )
69
71
attribute ( :log_level , equal_to : %w( INFO DEBUG WARN ) , default : 'INFO' )
70
72
attribute ( :node_name , kind_of : String )
73
+ attribute ( :performance , kind_of : [ Hash , Mash ] )
71
74
attribute ( :ports , kind_of : [ Hash , Mash ] )
72
75
attribute ( :protocol , kind_of : String )
76
+ attribute ( :reconnect_timeout , kind_of : String )
77
+ attribute ( :reconnect_timeout_wan , kind_of : String )
73
78
attribute ( :recursor , kind_of : String )
79
+ attribute ( :recursor_timeout , kind_of : String )
74
80
attribute ( :recursors , kind_of : Array )
75
81
attribute ( :retry_interval , kind_of : String )
76
82
attribute ( :retry_interval_wan , kind_of : String )
@@ -79,6 +85,7 @@ class ConsulConfig < Chef::Resource
79
85
attribute ( :rejoin_after_leave , equal_to : [ true , false ] , default : true )
80
86
attribute ( :server , equal_to : [ true , false ] , default : true )
81
87
attribute ( :server_name , kind_of : String )
88
+ attribute ( :session_ttl_min , kind_of : String )
82
89
attribute ( :skip_leave_on_interrupt , equal_to : [ true , false ] , default : false )
83
90
attribute ( :start_join , kind_of : Array )
84
91
attribute ( :start_join_wan , kind_of : Array )
@@ -88,6 +95,7 @@ class ConsulConfig < Chef::Resource
88
95
attribute ( :telemetry , kind_of : [ Hash , Mash ] )
89
96
attribute ( :syslog_facility , kind_of : String )
90
97
attribute ( :translate_wan_addrs , equal_to : [ true , false ] , default : false )
98
+ attribute ( :udp_answer_limit , kind_of : Integer , default : 3 )
91
99
attribute ( :ui , equal_to : [ true , false ] , default : false )
92
100
attribute ( :ui_dir , kind_of : String , default : '/var/lib/consul/ui' )
93
101
attribute ( :unix_sockets , kind_of : [ Hash , Mash ] )
@@ -99,7 +107,7 @@ class ConsulConfig < Chef::Resource
99
107
# Transforms the resource into a JSON format which matches the
100
108
# Consul service's configuration format.
101
109
def to_json
102
- for_keeps = %i{ acl_datacenter acl_default_policy acl_down_policy acl_master_token acl_token acl_ttl addresses advertise_addr advertise_addr_wan atlas_acl_token atlas_infrastructure atlas_join atlas_token atlas_endpoint bind_addr bootstrap bootstrap_expect check_update_interval client_addr data_dir datacenter disable_anonymous_signature disable_remote_exec disable_update_check dns_config domain enable_debug enable_syslog encrypt leave_on_terminate log_level node_name ports protocol recursor recursors retry_interval retry_interval_wan retry_join retry_join_wan rejoin_after_leave server server_name skip_leave_on_interrupt start_join start_join_wan statsd_addr statsite_addr statsite_prefix telemetry syslog_facility translate_wan_addrs ui ui_dir verify_incoming verify_outgoing verify_server_hostname watches dev_mode unix_sockets }
110
+ for_keeps = %i{ acl_datacenter acl_default_policy acl_down_policy acl_master_token acl_replication_token acl_token acl_ttl addresses advertise_addr advertise_addr_wan atlas_acl_token atlas_infrastructure atlas_join atlas_token atlas_endpoint bind_addr bootstrap bootstrap_expect check_update_interval client_addr data_dir datacenter disable_anonymous_signature disable_compression disable_remote_exec disable_update_check dns_config domain enable_debug enable_syslog encrypt leave_on_terminate log_level node_name performance ports protocol reconnect_timeout reconnect_timeout_wan recursor recursor_timeout recursors retry_interval retry_interval_wan retry_join retry_join_wan rejoin_after_leave server server_name session_ttl_min skip_leave_on_interrupt start_join start_join_wan statsd_addr statsite_addr statsite_prefix telemetry syslog_facility translate_wan_addrs udp_answer_limit ui ui_dir verify_incoming verify_outgoing verify_server_hostname watches dev_mode unix_sockets }
103
111
for_keeps << %i{ ca_file cert_file key_file } if tls?
104
112
for_keeps = for_keeps . flatten
105
113
0 commit comments