Skip to content

Instantly share code, notes, and snippets.

@n10o
n10o / main.yml
Created August 15, 2014 06:53
td-agent(fluentd) setting for ansible
---
- name: add td-agent repository
copy: src=td.repo dest=/etc/yum.repos.d/td.repo
- name: install td-agent
yum: name=td-agent state=present
- name: install fluent plugins use fluent-gem
gem: name=fluent-plugin-{{ item }} state=present executable=/usr/lib64/fluent/ruby/bin/fluent-gem
with_items:
import crypt
with open("pwdstringlist.txt") as f:
for line in f:
print crypt.crypt(line.rstrip(), "$1$SomeSalt$")
from passlib.hash import sha512_crypt
with open("pwdstringlist.txt") as f:
for line in f:
print sha512_crypt.encrypt(line.rstrip())