https://github.com/paxa/server-compare
Compare remote servers configuration and save it to the git
https://github.com/paxa/server-compare
Last synced: over 1 year ago
JSON representation
Compare remote servers configuration and save it to the git
- Host: GitHub
- URL: https://github.com/paxa/server-compare
- Owner: Paxa
- Created: 2015-10-23T18:18:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T03:39:31.000Z (about 9 years ago)
- Last Synced: 2025-01-28T15:16:28.528Z (over 1 year ago)
- Language: Ruby
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Server Compare
Collect remote servers configuration and store it in a git repository.
*Currently it works only with CentOS, this is still alfa version*
After you create `servers.yml`, collect infromation from servers:
```
./bin/sc-collect :my_server_a
./bin/sc-collect :my_server_b
# or all servers in config
./bin/sc-collect :all
# or manually
./bin/sc-collect root@hostname --password=123123 --pem=./server_key.pem
```
Then push it to remote server
```
./bin/sc-push
./bin/sc-push-config
```
### `servers.yml` format
```yml
repo_dir: ./servers_data
repo_url: git@bitbucket.org:yourname/my-servers-tracks.git
servers:
server_a:
user: root
host: 123.123.123.123
pem: ~/.ssh/pems/server_a.pem
preserve_files:
- /opt/nginx/conf/nginx.conf
- /etc/init.d/nginx
- /etc/bashrc
server_b:
user: root
host: 123.123.123.124
pem: ~/.ssh/pems/server_b.pem
server_c:
user: root
host: 123.123.123.125
pem: ~/.ssh/pems/server_c.pem
```
TODO:
* users' .profile & .bashrc
* open network ports (eg 21, 22, 80 etc.)