davidban77 / ansible-collection-gns3

Ansible Collection for GNS3 Server REST API using gns3fy
https://galaxy.ansible.com/davidban77/gns3
MIT License
39 stars 20 forks source link

Additional Project properties #21

Open Domoninic opened 1 year ago

Domoninic commented 1 year ago

Additional project properties for scene_height, scene_width and project_path. project_path is only used if Project name is also specified as it make no sense to put a friendly path on a project identified by a GUID if no value for scene_height and scene_width is specified they are set null so the GNS3 defaults are respected

davidban77 commented 1 year ago

This seems pretty cool, do you have an example screenshot of a lab with these settings turned on?

Domoninic commented 1 year ago

This seems pretty cool, do you have an example screenshot of a lab with these settings turned on?

Sure: Project Path Project Settings

Created with a play containing: project_name: "{{ project_name }}" project_path: "{{ projects_path }}{{ project_name }}" scene_height: 550 scene_width: 550 where the vars contain : project_name: "GNS3fy_Ansible" projects_path: "/opt/gns3/projects/"

My use case for the path is having a central GNS3 server as a Lab environment for multiple trainees and using their username to differentiate who each project belongs to on the assumption they will all do the same set of labs.