File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
gitlab-cookbooks/consul/libraries
spec/chef/cookbooks/consul/recipes Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3170,7 +3170,8 @@ external_url 'GENERATED_EXTERNAL_URL'
3170
3170
# consul['configuration'] = {
3171
3171
# 'client_addr' => nil,
3172
3172
# 'datacenter' => 'gitlab_consul',
3173
- # 'enable_script_checks' => true,
3173
+ # 'enable_script_checks' => false,
3174
+ # 'enable_local_script_checks' => true,
3174
3175
# 'server' => false
3175
3176
# }
3176
3177
# consul['services'] = []
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ def initialize(node)
15
15
'client_addr' => nil ,
16
16
'datacenter' => 'gitlab_consul' ,
17
17
'disable_update_check' => true ,
18
- 'enable_script_checks' => true ,
18
+ 'enable_script_checks' => false ,
19
+ 'enable_local_script_checks' => true ,
19
20
'node_name' => node [ 'consul' ] [ 'node_name' ] || node [ 'fqdn' ] ,
20
21
'rejoin_after_leave' => true ,
21
22
'server' => false ,
Original file line number Diff line number Diff line change 103
103
expect ( chef_run ) . to render_file ( consul_conf ) . with_content { |content |
104
104
expect ( content ) . to match ( %r{"datacenter":"gitlab_consul"} )
105
105
expect ( content ) . to match ( %r{"disable_update_check":true} )
106
- expect ( content ) . to match ( %r{"enable_script_checks":true} )
106
+ expect ( content ) . to match ( %r{"enable_script_checks":false} )
107
+ expect ( content ) . to match ( %r{"enable_local_script_checks":true} )
107
108
expect ( content ) . to match ( %r{"node_name":"fauxhai.local"} )
108
109
expect ( content ) . to match ( %r{"rejoin_after_leave":true} )
109
110
expect ( content ) . to match ( %r{"server":false} )
You can’t perform that action at this time.
0 commit comments