Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync tool not included with download? #5

Open
MikeAllenSqrrl opened this issue Jul 25, 2016 · 1 comment
Open

sync tool not included with download? #5

MikeAllenSqrrl opened this issue Jul 25, 2016 · 1 comment

Comments

@MikeAllenSqrrl
Copy link

MikeAllenSqrrl commented Jul 25, 2016

This project looks very promising, but seems like something is fundamentally missing. When I follow the instructions and do a

go get github.com/reconquest/orgalorg

I get the orgalorg binary built, no problem, but then executing a sync command like

./orgalorg -o 192.168.111.111 -o 192.168.111.101 -x -S /home/mallen/my-big-set-of-files

results in an error:

192.168.111.101 bash: /usr/lib/orgalorg/sync: No such file or directory
192.168.111.111 bash: /usr/lib/orgalorg/sync: No such file or directory
2016-07-25 18:42:57 [FATAL] failed to run sync command
└─ failed to finish sync tool command
└─ commands are exited with non-zero exit code on all 2 nodes
└─ code 127 (2 nodes)

It's not entirely clear to me what I have to do to make this part of it work.

@seletskiy
Copy link
Member

@MikeAllenSqrrl: Thanks for the feedback!

The reason that sync tool is not provided in the orgalorg repo is that it's intended to be different in one's infrastructure. There is beta-version of sync tool based on gunter & guntalina: orgalorg-bottlebreaker#dev, and it allow not only copy files as is between nodes, but copy template files and compile them on target hosts with different data, which is must-have feature for configuration.

You're right that error message is very ambiguous and I will make it more clear.

-S mode is intended to run some synchronous post action on all nodes after files are uploaded onto each of nodes.

If you want to just upload files, you can use -U mode instead (target directory for upload should be specified with flag -r in that case). -U does not require any sync tool to present.

Also, sync tool can be overriden via -n flag in case you want to run service reload after files sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants