~aisrael/charms/trusty/collectd-server/trunk

« back to all changes in this revision

Viewing changes to manifests/templates/auth_file.erb

  • Committer: Clint Byrum
  • Date: 2012-09-18 17:49:58 UTC
  • Revision ID: clint@ubuntu.com-20120918174958-tapz4h0c1dy5qxfs
Fixes from testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    units = JSON.parse(`relation-list --format=json -r #{relid}`)
7
7
    for unit in units do
8
8
        username = unit.sub('/', '-') %>
9
 
<%= username %>:<%= password %>
 
9
<%= username %>:<%= @charm_collectd_password %>
10
10
<%  
11
11
    end
12
12
    system("relation-set -r #{relid} username=#{username} password=#{@charm_collectd_password} security-level=#{@config_security_level}")