Skip to content

VersBinarii/thesamo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thesamo

This is improved version if thesamo rewritten in Rust.

About

This tool allows to syncronize parts of the config files across remote servers. Enclose the part of config that needs to be syncronised in a "tag" and the tool will ensure that the parts of the files are similar across the machines.

Instalation

TBD

Configuration

master = true
minion = false

open_tag = "%%>"
close_tag = "<%%"

[network]
bind_port = 12345
bind_address = "127.0.0.1"

[[files]]
path = "./tests/file_one.txt"
minion_address = "127.0.0.1"
minion_port = 12345

[[files]]
path = "./tests/file_two.txt"
minion_address = "127.0.0.1"
minion_port = 12345

Then in the file one wishes to syncronise just mark the block with the specified tags:

some part of config specific to this machine

%%>
Part of config to be syncronised with other servers
<%%

Rest of the file 

Usage

On master:

# master -c <path/to/config/file>

On minion:

# minion -c <path/to/config/file>

Releases

No releases published

Packages

No packages published

Languages