Skip to content

Wrapper cookbook template override doesn't work #89

@jshrack-ssi

Description

@jshrack-ssi

When specifying a wrapper cookbook as the template source for prometheus.yml it does not work. This appears to be due to the fact the following block is set to action :nothing-

template node['prometheus']['flags']['config.file'] do
action :nothing
cookbook node['prometheus']['job_config_cookbook_name']
source node['prometheus']['job_config_template_name']
mode '0644'
owner node['prometheus']['user']
group node['prometheus']['group']
variables(
rule_filenames: node['prometheus']['rule_filenames']
)
notifies :reload, 'service[prometheus]'
end

This would seem contrary to supporting external template control. I don't see anywhere in the cookbook that would otherwise call this code block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions