An open API service indexing awesome lists of open source software.

https://github.com/entraptaj/docker-volumer

Script that creates NFS Docker volumes on SSH Hosts listed in a Markdown table
https://github.com/entraptaj/docker-volumer

Last synced: about 1 year ago
JSON representation

Script that creates NFS Docker volumes on SSH Hosts listed in a Markdown table

Awesome Lists containing this project

README

          

# KristianFJones/Docker-Volumer

This is a script that SSHes into the hosts in a markdown table, and creates the volumes listed in another Markdown table.

## Usage

Create two markdown files.

Create `Volumes.md`

```
| Volume | NFS Server | Path | Notes |
| :----------: | :----------: | :----------------------------------------------------: | :---: |
| NFSDownloads | 192.168.1.21 | /mnt/site1.pool1/Site1.Pool1.Files/Files/JDownloader | |
| AriaNG | 192.168.1.21 | /mnt/site1.pool1/Site1.Pool1.Docker.KJDev1/Data/AriaNg | |
```

Create `Hosts.md`

```
| Hostname |
| ------------- |
| 192.168.1.166 |
| 192.168.1.167 |
| 192.168.1.168 |
```

Create `.env` with the ssh credentials for the hosts

```
USERNAME=user
PASSWORD=password
```

Run script

```
npm start
```