Commit Graph

61 Commits

Author SHA1 Message Date
Xabi bd1f2b1dbc
Update CHANGELOG.md 2021-09-07 20:59:56 +02:00
Xabi 4f06c2bd9e
Merge pull request #39 from maynero/master
Check if "template" key exists in Proxmox API result
2021-09-07 20:53:49 +02:00
maynero 83005f4ab6 Check if template key exists in api result 2021-07-24 08:41:46 +08:00
Xabi Ezpeleta d7b01396b5 Ommit group when OS id is empty 2021-05-10 13:48:07 +02:00
Xabi 2b4f351717
v1.0.0 changelog 2021-05-09 20:12:12 +02:00
Xabi 7f7203b6bb
Changelog moved to CHANGELOG.md 2021-05-09 20:10:51 +02:00
Xabi bf00caf357
Merge pull request #36 from maynero/master
Added Proxmox osinfo on host_vars, create group base on OS, and fix issue #34
2021-05-09 19:56:25 +02:00
maynero 1b9f2582cb Add proxmox_type on qemu 2021-05-09 16:31:26 +08:00
maynero c76e31d8d9 Create group base on OS 2021-05-09 16:13:16 +08:00
maynero 4ba99b43ad Add OS information from QEMU agent 2021-05-09 14:43:44 +08:00
Xabi f3836c16e6
Merge pull request #33 from srufle/master
Added skipping 596 error code
2021-03-05 22:44:35 +01:00
Xabi 0477e6df06
Merge pull request #31 from johnpc35/master
Fix QEMU guest agent IP address retrieval
2021-03-05 22:43:21 +01:00
Stephen Rufle 1272900089 Added skipping 596 error code
- Fixes urllib.error.HTTPError: HTTP Error 596: Broken pipe, when a node is unavailable
2020-09-04 15:31:00 -07:00
johnpc35 d9d990bd34 Check for ip-addresses before iterating over them 2020-08-08 02:25:10 -04:00
John 01dd5bc270 Fix QEMU guest agent IP address retrieval 2020-07-16 14:00:20 -04:00
Xabi 89a076ddc1
Merge pull request #26 from akhan23wgu/master
Fixed python3 errors
2020-04-02 11:07:23 +02:00
Xabi 846ac723cb
Merge pull request #25 from hosfeld/master
Fixed UnboundLocalError
2020-04-02 11:05:31 +02:00
Abid Khan 3650024b1d
Fixed python3 errors
Modified `network` > `networks`. Also fixed Python3 `TypeError: string indices must be integers` dict error.
2020-02-21 03:32:18 -07:00
Alexander Hosfeld 10db26fcdd Fixed UnboundLocalError: local variable 'network' referenced before assignment 2020-02-20 12:29:19 +01:00
Xabi ebcd5ac294
Merge pull request #21 from xezpeleta/feature-resolveip
Get the IP address automatically (fixes #8)
2020-02-03 12:14:23 +01:00
Xabi Ezpeleta 3eef05088a Update changelog 2020-02-03 12:11:41 +01:00
Xabi Ezpeleta 02cce4d567 Add error handling
Check network is a valid object
2020-02-03 12:08:50 +01:00
Xabi Ezpeleta e05f224c8c Get IP address from Proxmox (OpenVZ) 2019-12-18 22:56:48 +01:00
Xabi Ezpeleta 2bd15b1bf7 Get IP address via Qemu Agent (KVM) 2019-12-18 21:36:43 +01:00
Xabi d9541cc1c8
Merge pull request #18 from kalos/master
grab PVE version without revision (ex: 6.0 not 6.0-7)
2019-11-19 08:27:26 +01:00
Calogero Lo Leggio 54f4e51c50 grab PVE version without revision (ex: 6.0 not 6.0-7)
this avoid error with float()
2019-10-09 11:22:31 +02:00
Xabi 7c9db8416b
Changelog updated 2019-09-16 12:35:18 +02:00
Xabi 744dc160f0
Merge pull request #16 from adubreuiltk/patch-1
Filter on qemu and lxc resources only
2019-09-16 12:32:40 +02:00
adubreuiltk 6255b78e92
Filter on qemu and lxc resources only
# SUMMARY
When using proxmox.py as a dynamic inventory for Ansible, only VM and lxc must be included in the output. Other resources such as datastores must be excluded.

# ISSUE TYPE
Bugfix Pull Request

# ADDITIONAL INFORMATION
If a datastore is defined in a pool, the script crashes as the parameter template does not apply to datastore objects.

# VERSION
PVE 5.4.13
2019-08-31 11:10:23 +02:00
Xabi Ezpeleta ba77d56258 Add a trailing slash to the proxmox url (fixes #15) 2019-03-15 09:48:13 +01:00
gardar 3499d2f7be
Fix python 2 and 3 compatibility
Changes to make the code compatible with both python 2 and 3, fixes #12
2019-03-14 22:22:41 +00:00
Xabi 8c79997ef6
Merge pull request #11 from gardar/patch-1
Python3 compatibility
2019-01-25 13:30:46 +01:00
gardar 9ab21a9f0b
Python3 compatibility
Changes required for python 3
2019-01-13 00:59:26 +00:00
Xabi 43fa3d8c14
Updated changelog/contributions 2018-07-09 22:08:49 +02:00
Xabi 7558c4b9e2
Merge pull request #7 from andor44/master
Handle cases where node is unavailable
2018-07-09 21:45:12 +02:00
Andor Uhlár dadf7262fb
Handle cases where node is unavailable 2018-07-06 19:01:28 +02:00
Xabi d6cf98c1dc
Added how does it work section (fixes #4)
Added some info about how does it work, requirements and features
2018-02-23 16:25:23 +01:00
Xabi e4df4b18c6 Merge pull request #3 from isindir/ez_add_py26_compat
Add backwards compatability with python 2.6 format requirements
2017-04-10 19:04:02 +02:00
Eriks Zelenka cda6dae03b Add backwards compatability with python 2.6 format requirements 2017-04-08 18:08:30 +01:00
Xabi 83b55b3f36 Changelog updated 2017-03-17 14:19:31 +01:00
Xabi e28b5221c0 Merge pull request #2 from nmaggioni/config-file
Configuration in JSON file
2017-03-17 14:14:01 +01:00
Niccolò Maggioni 763dc12a1a
Addition of JSON config sample 2017-03-17 12:30:30 +01:00
Niccolò Maggioni ca8b50d569
README addition for JSON config file 2017-03-17 12:27:35 +01:00
Niccolò Maggioni 90d75824b7
PEP8 compliance
I seriously hope I didn't fuck something up.
2017-03-17 12:26:46 +01:00
Niccolò Maggioni 9c9c2f51ab
Coherence of certificate trust option naming 2017-03-17 12:08:46 +01:00
Niccolò Maggioni 095af19246
Global support for configuration file
CLI flags have precedence, followed by env variables and finally config keys.
2017-03-17 11:53:58 +01:00
Niccolò Maggioni 93d8723b98
Improved handling of partially missing parameters 2017-03-17 11:50:31 +01:00
Niccolò Maggioni b23d4751e1
Support for JSON configuration file 2017-03-17 10:59:39 +01:00
Xabi 362fdfe82e Merge pull request #1 from isindir/add_pxmx_ver3_contrs
Add backwards compatability with openvz on Proxmox ver3
2017-03-10 10:28:42 +01:00
Eriks Zelenka ba35cdc297 Add backwards compatability with openvz on Proxmox ver3 2017-03-05 18:51:30 +00:00