meffie / molecule-proxmox

Molecule driver for Proxmox VE
MIT License
36 stars 8 forks source link

document how to init the scenario #2

Closed mihai-satmarean closed 2 years ago

mihai-satmarean commented 2 years ago

Thanks for the initiative, is very good. I have a little issue, please document the steps.

molecule init scenario proxmox --driver-name proxmox

returns

Error: Invalid value for '--driver-name' / '-d': invalid choice: proxmox. (choose from delegated, docker, ec2, podman)

macosx 12.2.1
ansible [core 2.13.1]
  config file = None
  configured module search path = ['redacted']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = redacted
  executable location = /usr/local/bin/ansible
  python version = 3.9.13 (main, May 24 2022, 21:28:31) [Clang 13.1.6 (clang-1316.0.21.2)]
  jinja version = 3.1.2
  libyaml = True
meffie commented 2 years ago

Hello,

That error means the molecule-proxmox package is not installed. It can be installed with 'pip install molecule-proxomox'. If you are using a python virtualenv, be sure to run 'source <path-to-virtualenv/bin/activate' first to install in your virtualenv.

meffie commented 2 years ago

Oh, also, which version of molecule is installed? I have not yet tested with the most recent major release molecule 4.0.

mihai-satmarean commented 2 years ago

I did both pip install molecule-proxmox

and pip3 install molecule-proxmox

molecule 3.0.2.1

meffie commented 2 years ago

On Mon, 18 Jul 2022 08:34:18 -0700 mihai-satmarean @.***> wrote:

I did both pip install molecule-proxmox

and pip3 install molecule-proxmox

Ok, thanks.

molecule 3.0.2.1

I think that could be the issue. The molecule-proxmox currently requires a molecule version of at least 3.2.0.

The setup.py current contains:

install_requires=[ 'molecule>=3.2.0,<=4.0', 'pyyaml', 'proxmoxer>=1.3.1', ],

The molecule --version command shows the molecule versions and the versions of the installed plugins. For example:

$ molecule --version molecule 3.6.1 using python 3.8 ansible:2.12.4 delegated:3.6.1 from molecule proxmox:0.5.3 from molecule_proxmox vagrant:1.0.0 from molecule_vagrant virtup:1.5.0 from molecule_virtup

-- Michael Meffie @.***>

mihai-satmarean commented 2 years ago

yes. using the proper version of molecule fixed it! great job I will come back with feedback!

meffie commented 2 years ago

Excellent news. Thank you mihai-satmarean. Be sure to read the readme for info about setting up templates and the settings needed to connect to proxmox. Let me know if you have any questions or problems.