File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ class ElasticsearchCookbook::ConfigureProvider < Chef::Provider::LWRPBase
92
92
shell_template = template 'elasticsearch.in.sh' do
93
93
path node [ 'platform_family' ] == 'rhel' ? '/etc/sysconfig/elasticsearch' : '/etc/default/elasticsearch'
94
94
source new_resource . template_elasticsearch_env
95
- cookbook 'elasticsearch'
95
+ cookbook new_resource . cookbook_elasticsearch_env
96
96
mode 0755
97
97
variables ( params : params )
98
98
action :nothing
@@ -105,7 +105,7 @@ class ElasticsearchCookbook::ConfigureProvider < Chef::Provider::LWRPBase
105
105
logging_template = template 'logging.yml' do
106
106
path "#{ new_resource . path_conf [ es_install . type ] } /logging.yml"
107
107
source new_resource . template_logging_yml
108
- cookbook 'elasticsearch'
108
+ cookbook new_resource . cookbook_logging_yml
109
109
owner es_user . username
110
110
group es_user . groupname
111
111
mode 0755
@@ -127,7 +127,7 @@ class ElasticsearchCookbook::ConfigureProvider < Chef::Provider::LWRPBase
127
127
yml_template = template 'elasticsearch.yml' do
128
128
path "#{ new_resource . path_conf [ es_install . type ] } /elasticsearch.yml"
129
129
source new_resource . template_elasticsearch_yml
130
- cookbook 'elasticsearch'
130
+ cookbook new_resource . cookbook_elasticsearch_yml
131
131
owner es_user . username
132
132
group es_user . groupname
133
133
mode 0755
Original file line number Diff line number Diff line change @@ -40,8 +40,13 @@ class ElasticsearchCookbook::ConfigureResource < Chef::Resource::LWRPBase
40
40
} )
41
41
42
42
attribute ( :template_elasticsearch_env , kind_of : String , default : 'elasticsearch.in.sh.erb' )
43
+ attribute ( :cookbook_elasticsearch_env , kind_of : String , default : 'elasticsearch' )
44
+
43
45
attribute ( :template_elasticsearch_yml , kind_of : String , default : 'elasticsearch.yml.erb' )
46
+ attribute ( :cookbook_elasticsearch_yml , kind_of : String , default : 'elasticsearch' )
47
+
44
48
attribute ( :template_logging_yml , kind_of : String , default : 'logging.yml.erb' )
49
+ attribute ( :cookbook_logging_yml , kind_of : String , default : 'elasticsearch' )
45
50
46
51
attribute ( :logging , kind_of : Hash , default : { } )
47
52
You can’t perform that action at this time.
0 commit comments