Skip to content

Commit

Permalink
Remove extra-white spaces in generated server.cnf file
Browse files Browse the repository at this point in the history
  • Loading branch information
bigon committed Mar 6, 2012
1 parent d79e9ba commit e443a5a
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions templates/server.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ topicprefix = /topic/
libdir = <%= libdir %>
logfile = /var/log/mcollective.log
loglevel = info
<% if @operatingsystem == 'Ubuntu' %>
<% if @operatingsystem == 'Ubuntu' -%>
daemonize = 0
<% else %>
<% else -%>
daemonize = 1
<% end %>
<% end -%>

# Plugins

<% ! if has_variable?("mcollective::psk") %>
<% ! if has_variable?("mcollective::psk") -%>
securityprovider = psk
plugin.psk = <%= scope.lookupvar("mcollective::psk") %>
<% end -%>
<% ! if has_variable?("mcollective::stomp_host") %>
<% ! if has_variable?("mcollective::stomp_host") -%>
connector = stomp
plugin.stomp.host = <%= scope.lookupvar("mcollective::stomp_host") %>
plugin.stomp.port = <%= scope.lookupvar("mcollective::stomp_port") %>
Expand All @@ -24,8 +24,8 @@ plugin.stomp.password = <%= scope.lookupvar("mcollective::stomp_password") %>
<% end -%>

# Facts
<% ! if has_variable?("mcollective::factsource") %>
factsource = <%= scope.lookupvar("mcollective::factsource") -%>
<% ! if has_variable?("mcollective::factsource") -%>
factsource = <%= scope.lookupvar("mcollective::factsource") %>
<% else -%>
factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml
Expand All @@ -35,12 +35,9 @@ plugin.yaml = /etc/mcollective/facts.yaml
# Puppet setup
classesfile = /var/lib/puppet/<%= scope.lookupvar("::puppetversion") =~ /^0\.24\./ ? "state" : "" %>/classes.txt
<% end -%>
<% ! if has_variable?("mcollective::nrpe_conf_dir") %>
<% ! if has_variable?("mcollective::nrpe_conf_dir") -%>
plugin.nrpe.conf_dir = <%= scope.lookupvar("mcollective::nrpe_conf_dir") %>
<% end -%>
<% ! if has_variable?("mcollective::filemgr_touch_file") %>
<% ! if has_variable?("mcollective::filemgr_touch_file") -%>
plugin.filemgr.touch_file = <%= scope.lookupvar("mcollective::filemgr_touch_file") %>
<% end -%>

<% end -%>

0 comments on commit e443a5a

Please sign in to comment.