Skip to content
This repository was archived by the owner on Oct 11, 2020. It is now read-only.

Commit 0ee8a05

Browse files
author
Your Name
committed
m
1 parent fe9b043 commit 0ee8a05

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

grafana_database/grafana.db

0 Bytes
Binary file not shown.

start_saltstack.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os
2+
from yaml import load
3+
4+
5+
os.system('docker exec -it master service salt-master start')
6+
os.system('docker exec -it minion1 service salt-minion start')
7+
8+
f=open('variables.yml', 'r')
9+
devices_list = load(f.read())['junos']
10+
f.close()
11+
for item in devices_list:
12+
print 'starting salt proxy for device ' + item['name']
13+
shell_cmd = 'docker exec -it minion1 salt-proxy -d --proxyid=' + item['name']
14+
os.system(shell_cmd)
15+
16+
17+

0 commit comments

Comments
 (0)