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 @@ -3137,7 +3137,8 @@ external_url 'GENERATED_EXTERNAL_URL'
3137
3137
# consul['configuration'] = {
3138
3138
# 'client_addr' => nil,
3139
3139
# 'datacenter' => 'gitlab_consul',
3140
- # 'enable_script_checks' => true,
3140
+ # 'enable_script_checks' => false,
3141
+ # 'enable_local_script_checks' => true,
3141
3142
# 'server' => false
3142
3143
# }
3143
3144
# 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