Skip to content

Commit

Permalink
README: Add pool and newid examples
Browse files Browse the repository at this point in the history
  • Loading branch information
meffie committed May 2, 2024
1 parent a6520d3 commit e7a0087
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Molecule Proxmox plugin in a virtualenv called ``venv``.
$ pip3 install molecule[ansible] molecule-proxmox
Example
=======
Examples
========

.. code-block:: yaml
Expand All @@ -68,8 +68,6 @@ Example
node: pve01
ssh_user: tester
ssh_identity_file: /path/to/id_rsa
template_name: debian11
sethostname: yes
platforms:
- name: test01
template_name: debian11
Expand All @@ -83,16 +81,25 @@ Example
options:
api_host: pve01.example.com
api_user: molecule
# Optional: Use an API token for Proxmox authentication.
api_token_id: "********"
api_token_secret: "*******************************"
node: pve01
ssh_user: tester
ssh_identity_file: /path/to/id_rsa
# Optional: The default template name.
template_name: debian11
# Optional: Set the hostname after cloning.
sethostname: yes
# Optional: Create the VMs in the pool.
pool: test
platforms:
- name: test01
# Optional: Specify the VM id of the clone.
newid: 216
- name: test02
sethostname: no
# Optional: Specify the VM id of the clone.
newid: 217
.. code-block:: yaml
Expand Down

0 comments on commit e7a0087

Please sign in to comment.