Skip to content

Instantly share code, notes, and snippets.

@arturaz
Last active August 29, 2015 14:20
Show Gist options
  • Save arturaz/ad97c690a15c0d7894b8 to your computer and use it in GitHub Desktop.
Save arturaz/ad97c690a15c0d7894b8 to your computer and use it in GitHub Desktop.
- name: link nebula44 server munin plugins
file: src={{ home }}/nebula-server/current/script/munin-plugins/{{ item.src }}
dest=/etc/munin/plugins/nebula44_{{ item.dest }}
state=link
with_items: "{{
res = ['metal', 'energy', 'zetium', 'creds']
kinds = ['rates', 'counts']
[
{
'src': 'market_.rb',
'dest': 'nebula44_market_'+kind+'_'+r1+'_'+r2'
} for kind in kinds for r1 in res for r2 in res if r1 != r2
] + [
{'src': 'counters', 'dest': 'counts'},
{'src': 'counters', 'dest': 'time'},
{'src': 'logged_in.rb', 'dest': 'logged_in'},
{'src': 'memory', 'dest': 'mem'},
{'src': 'tasks', 'dest': 'tasks'},
{'src': 'pool', 'dest': 'pool'},
]
}}"
TASK: [link nebula44 server munin plugins] ************************************
fatal: [worg.nebula44.com] => template error while templating string: expected token 'end of print statement', got '='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment