Commit 7c189606 authored by Jonathan Hartman's avatar Jonathan Hartman Committed by Ben Abrams
Browse files

Remove the timestamp from the user.properties template

This template, as used in the [sumologic_collector provider](https://github.com/SumoLogic/sumologic-collector-chef-cookbook/blob/master/providers/default.rb#L47),
triggers a restart notification. The presence of a timestamp means the file
content changes and a new restart notification is sent for every Chef run.
parent de402459
###########################################################
# Generated by Chef #
# on #
# <%= Time.now.to_s %> #
###########################################################
# Installer mode true to fool SumoLogic
installerMode=true
# Authentication
<% if not @resource.sumo_access_id.nil? %>
accessid=<%= @resource.sumo_access_id %>
accesskey=<%= @resource.sumo_access_key %>
<% end %>
<%= "url=#{@resource.collector_url}" unless @resource.collector_url.nil? %>
<% unless @resource.proxy_host.nil? %>
# Proxy Settings
proxyHost=<%= @resource.proxy_host %>
proxyPort=<%= @resource.proxy_port %>
<% unless @resource.proxy_user.nil? %>
proxyUser=<%= @resource.proxy_user %>
proxyPassword=<%= @resource.proxy_password %>
<% end %>
<%= "proxyNtlmDomain=#{@resource.proxy_ntlmdomain}" unless @resource.proxy_ntlmdomain.nil? %>
<% end %>
# Other Settings
name=<%= @resource.collector_name %>
<%= "sources=#{@resource.sources}" unless @resource.sources.nil? %>
<%= "syncSources=#{@resource.sync_sources}" unless @resource.sync_sources.nil? %>
<%= "ephemeral=#{@resource.ephemeral}" unless @resource.ephemeral.nil? %>
<%= "clobber=#{@resource.clobber}" unless @resource.clobber.nil? %>
<%= "disableScriptSource=#{@resource.disable_script_source}" unless @resource.disable_script_source.nil? %>
############################################################
# Generated by Chef for
# <%= @resource.collector_name || node['fqdn'] %>
############################################################
# Installer mode true to fool SumoLogic
installerMode=true
# Authentication
<% if not @resource.sumo_access_id.nil? %>
accessid=<%= @resource.sumo_access_id %>
accesskey=<%= @resource.sumo_access_key %>
<% end %>
<%= "url=#{@resource.collector_url}" unless @resource.collector_url.nil? %>
<% unless @resource.proxy_host.nil? %>
# Proxy Settings
proxyHost=<%= @resource.proxy_host %>
proxyPort=<%= @resource.proxy_port %>
<% unless @resource.proxy_user.nil? %>
proxyUser=<%= @resource.proxy_user %>
proxyPassword=<%= @resource.proxy_password %>
<% end %>
<%= "proxyNtlmDomain=#{@resource.proxy_ntlmdomain}" unless @resource.proxy_ntlmdomain.nil? %>
<% end %>
# Other Settings
name=<%= @resource.collector_name %>
<%= "sources=#{@resource.sources}" unless @resource.sources.nil? %>
<%= "syncSources=#{@resource.sync_sources}" unless @resource.sync_sources.nil? %>
<%= "ephemeral=#{@resource.ephemeral}" unless @resource.ephemeral.nil? %>
<%= "clobber=#{@resource.clobber}" unless @resource.clobber.nil? %>
<%= "disableScriptSource=#{@resource.disable_script_source}" unless @resource.disable_script_source.nil? %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment