vm-tool 0.2__tar.gz → 0.5__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.5/LICENSE +21 -0
- vm_tool-0.5/PKG-INFO +34 -0
- vm_tool-0.5/README.md +28 -0
- {vm_tool-0.2 → vm_tool-0.5}/setup.py +9 -2
- vm_tool-0.5/vm_tool/__init__.py +1 -0
- vm_tool-0.5/vm_tool/cli.py +30 -0
- vm_tool-0.5/vm_tool.egg-info/PKG-INFO +34 -0
- {vm_tool-0.2 → vm_tool-0.5}/vm_tool.egg-info/SOURCES.txt +3 -0
- vm_tool-0.5/vm_tool.egg-info/entry_points.txt +2 -0
- vm_tool-0.2/PKG-INFO +0 -10
- vm_tool-0.2/README.md +0 -7
- vm_tool-0.2/vm_tool/__init__.py +0 -0
- vm_tool-0.2/vm_tool.egg-info/PKG-INFO +0 -10
- {vm_tool-0.2 → vm_tool-0.5}/setup.cfg +0 -0
- {vm_tool-0.2 → vm_tool-0.5}/vm_tool.egg-info/dependency_links.txt +0 -0
- {vm_tool-0.2 → vm_tool-0.5}/vm_tool.egg-info/requires.txt +0 -0
- {vm_tool-0.2 → vm_tool-0.5}/vm_tool.egg-info/top_level.txt +0 -0
vm_tool-0.5/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 vm-tool
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
vm_tool-0.5/PKG-INFO
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: vm_tool
|
|
3
|
+
Version: 0.5
|
|
4
|
+
Summary: A tool to setup VMs using Ansible.
|
|
5
|
+
License: MIT
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: ansible
|
|
9
|
+
Requires-Dist: ansible-runner
|
|
10
|
+
Dynamic: description
|
|
11
|
+
Dynamic: description-content-type
|
|
12
|
+
Dynamic: license
|
|
13
|
+
Dynamic: requires-dist
|
|
14
|
+
Dynamic: summary
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
This is a tool to setup VMs using Ansible.
|
|
18
|
+
|
|
19
|
+
Example usage:
|
|
20
|
+
|
|
21
|
+
from vm_tool import SetupRunner
|
|
22
|
+
|
|
23
|
+
runner = SetupRunner(
|
|
24
|
+
ssh_host='your_host', # e.g. 192.168.1.1
|
|
25
|
+
ssh_user='your_user', # e.g. root
|
|
26
|
+
ssh_password='your_password', # e.g. password
|
|
27
|
+
become_pass='your_become_pass', # e.g. password
|
|
28
|
+
github_username='your_github_username', # e.g. username
|
|
29
|
+
github_token='your_github_token', # e.g. token
|
|
30
|
+
github_project_url='your_github_project_url' # e.g. https://github.com/username/repo
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
runner.run_setup()
|
|
34
|
+
|
vm_tool-0.5/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
### Welcome to initial setup of the application
|
|
2
|
+
|
|
3
|
+
1. Connect to deployment machine using VSCode.
|
|
4
|
+
|
|
5
|
+
2. Run the following command to install the package and its dependencies:
|
|
6
|
+
```bash
|
|
7
|
+
pip install .
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
### This is a tool to setup VMs using Ansible.
|
|
11
|
+
|
|
12
|
+
## Example usage:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
from vm_tool import SetupRunner
|
|
16
|
+
|
|
17
|
+
runner = SetupRunner(
|
|
18
|
+
ssh_host='your_host', # e.g. 192.168.1.1
|
|
19
|
+
ssh_user='your_user', # e.g. root
|
|
20
|
+
ssh_password='your_password', # e.g. password
|
|
21
|
+
become_pass='your_become_pass', # e.g. password
|
|
22
|
+
github_username='your_github_username', # e.g. username
|
|
23
|
+
github_token='your_github_token', # e.g. token
|
|
24
|
+
github_project_url='your_github_project_url' # e.g. https://github.com/username/repo
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
runner.run_setup()
|
|
28
|
+
```
|
|
@@ -2,9 +2,10 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='vm_tool',
|
|
5
|
-
version='0.
|
|
5
|
+
version='0.5',
|
|
6
6
|
packages=find_packages(),
|
|
7
|
-
description=''
|
|
7
|
+
description='A tool to setup VMs using Ansible.',
|
|
8
|
+
long_description='''
|
|
8
9
|
This is a tool to setup VMs using Ansible.
|
|
9
10
|
|
|
10
11
|
Example usage:
|
|
@@ -23,9 +24,15 @@ setup(
|
|
|
23
24
|
|
|
24
25
|
runner.run_setup()
|
|
25
26
|
''',
|
|
27
|
+
long_description_content_type='text/markdown',
|
|
26
28
|
install_requires=[
|
|
27
29
|
'ansible',
|
|
28
30
|
'ansible-runner',
|
|
29
31
|
],
|
|
32
|
+
entry_points={
|
|
33
|
+
'console_scripts': [
|
|
34
|
+
'vm_tool=vm_tool.cli:main',
|
|
35
|
+
],
|
|
36
|
+
},
|
|
30
37
|
license='MIT',
|
|
31
38
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .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()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: vm_tool
|
|
3
|
+
Version: 0.5
|
|
4
|
+
Summary: A tool to setup VMs using Ansible.
|
|
5
|
+
License: MIT
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: ansible
|
|
9
|
+
Requires-Dist: ansible-runner
|
|
10
|
+
Dynamic: description
|
|
11
|
+
Dynamic: description-content-type
|
|
12
|
+
Dynamic: license
|
|
13
|
+
Dynamic: requires-dist
|
|
14
|
+
Dynamic: summary
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
This is a tool to setup VMs using Ansible.
|
|
18
|
+
|
|
19
|
+
Example usage:
|
|
20
|
+
|
|
21
|
+
from vm_tool import SetupRunner
|
|
22
|
+
|
|
23
|
+
runner = SetupRunner(
|
|
24
|
+
ssh_host='your_host', # e.g. 192.168.1.1
|
|
25
|
+
ssh_user='your_user', # e.g. root
|
|
26
|
+
ssh_password='your_password', # e.g. password
|
|
27
|
+
become_pass='your_become_pass', # e.g. password
|
|
28
|
+
github_username='your_github_username', # e.g. username
|
|
29
|
+
github_token='your_github_token', # e.g. token
|
|
30
|
+
github_project_url='your_github_project_url' # e.g. https://github.com/username/repo
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
runner.run_setup()
|
|
34
|
+
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
1
2
|
README.md
|
|
2
3
|
setup.py
|
|
3
4
|
vm_tool/__init__.py
|
|
5
|
+
vm_tool/cli.py
|
|
4
6
|
vm_tool.egg-info/PKG-INFO
|
|
5
7
|
vm_tool.egg-info/SOURCES.txt
|
|
6
8
|
vm_tool.egg-info/dependency_links.txt
|
|
9
|
+
vm_tool.egg-info/entry_points.txt
|
|
7
10
|
vm_tool.egg-info/requires.txt
|
|
8
11
|
vm_tool.egg-info/top_level.txt
|
vm_tool-0.2/PKG-INFO
DELETED
vm_tool-0.2/README.md
DELETED
vm_tool-0.2/vm_tool/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|