vm-tool 0.4__tar.gz → 0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vm_tool-0.4/vm_tool.egg-info → vm_tool-0.6}/PKG-INFO +1 -1
- {vm_tool-0.4 → vm_tool-0.6}/setup.py +6 -1
- vm_tool-0.6/vm_tool/__init__.py +1 -0
- vm_tool-0.6/vm_tool/cli.py +30 -0
- {vm_tool-0.4 → vm_tool-0.6/vm_tool.egg-info}/PKG-INFO +1 -1
- {vm_tool-0.4 → vm_tool-0.6}/vm_tool.egg-info/SOURCES.txt +2 -0
- vm_tool-0.6/vm_tool.egg-info/entry_points.txt +2 -0
- vm_tool-0.4/vm_tool/__init__.py +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/LICENSE +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/README.md +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/setup.cfg +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/vm_tool.egg-info/dependency_links.txt +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/vm_tool.egg-info/requires.txt +0 -0
- {vm_tool-0.4 → vm_tool-0.6}/vm_tool.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='vm_tool',
|
|
5
|
-
version='0.
|
|
5
|
+
version='0.6',
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
description='A tool to setup VMs using Ansible.',
|
|
8
8
|
long_description='''
|
|
@@ -29,5 +29,10 @@ setup(
|
|
|
29
29
|
'ansible',
|
|
30
30
|
'ansible-runner',
|
|
31
31
|
],
|
|
32
|
+
entry_points={
|
|
33
|
+
'console_scripts': [
|
|
34
|
+
'vm_tool=vm_tool.cli:main',
|
|
35
|
+
],
|
|
36
|
+
},
|
|
32
37
|
license='MIT',
|
|
33
38
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from vm_tool.src.setup_runner import SetupRunner
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# filepath: /Users/sunnysinha/Desktop/Projects/vm_setup/vm_tool/cli.py
|
|
2
|
+
import argparse
|
|
3
|
+
from vm_tool import SetupRunner
|
|
4
|
+
|
|
5
|
+
def main():
|
|
6
|
+
parser = argparse.ArgumentParser(description='Setup VMs using Ansible.')
|
|
7
|
+
parser.add_argument('--ssh_host', required=True, help='SSH host (e.g. 192.168.1.1)')
|
|
8
|
+
parser.add_argument('--ssh_user', required=True, help='SSH user (e.g. root)')
|
|
9
|
+
parser.add_argument('--ssh_password', required=True, help='SSH password')
|
|
10
|
+
parser.add_argument('--become_pass', required=True, help='Become password')
|
|
11
|
+
parser.add_argument('--github_username', required=True, help='GitHub username')
|
|
12
|
+
parser.add_argument('--github_token', required=True, help='GitHub token')
|
|
13
|
+
parser.add_argument('--github_project_url', required=True, help='GitHub project URL (e.g. https://github.com/username/repo)')
|
|
14
|
+
|
|
15
|
+
args = parser.parse_args()
|
|
16
|
+
|
|
17
|
+
runner = SetupRunner(
|
|
18
|
+
ssh_host=args.ssh_host,
|
|
19
|
+
ssh_user=args.ssh_user,
|
|
20
|
+
ssh_password=args.ssh_password,
|
|
21
|
+
become_pass=args.become_pass,
|
|
22
|
+
github_username=args.github_username,
|
|
23
|
+
github_token=args.github_token,
|
|
24
|
+
github_project_url=args.github_project_url
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
runner.run_setup()
|
|
28
|
+
|
|
29
|
+
if __name__ == '__main__':
|
|
30
|
+
main()
|
|
@@ -2,8 +2,10 @@ LICENSE
|
|
|
2
2
|
README.md
|
|
3
3
|
setup.py
|
|
4
4
|
vm_tool/__init__.py
|
|
5
|
+
vm_tool/cli.py
|
|
5
6
|
vm_tool.egg-info/PKG-INFO
|
|
6
7
|
vm_tool.egg-info/SOURCES.txt
|
|
7
8
|
vm_tool.egg-info/dependency_links.txt
|
|
9
|
+
vm_tool.egg-info/entry_points.txt
|
|
8
10
|
vm_tool.egg-info/requires.txt
|
|
9
11
|
vm_tool.egg-info/top_level.txt
|
vm_tool-0.4/vm_tool/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|