You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
468 B
16 lines
468 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
ip4=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||
|
ip6=$(/sbin/ip -o -6 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||
|
|
||
|
echo "[service]" > /project/courses/fluentd/inventory.yml
|
||
|
/project/bin/swarmlab-nmap >> /project/courses/fluentd/inventory.yml
|
||
|
|
||
|
|
||
|
# include master or not
|
||
|
echo $ip4 >> /project/courses/fluentd/inventory.yml
|
||
|
|
||
|
|
||
|
ansible-playbook -u docker -i inventory.yml fluentd-test-mongo-free.yml -f 5 --ask-pass --ask-become-pass
|