Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintaining the same session across multiple playbooks #76

Open
shermannws opened this issue Jun 20, 2022 · 7 comments
Open

Maintaining the same session across multiple playbooks #76

shermannws opened this issue Jun 20, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@shermannws
Copy link

May I ask if there is a way to maintain the same session across multiple playbooks? Thank you!

@shermannws
Copy link
Author

Essentially, I hope to have another playbook to publish all the changes made by the previous playbooks. I have the UID for each of the sessions that was created by the previous playbook. However, when I run

    - name: Publish session
      cp_mgmt_publish:
        uid: "{{ uid }}"

The output that I get is:

{
    "msg": "Checkpoint device returned error 501 with message {'code': 'not_implemented', 'message': 'Publishing other than current session is not implemented'} Unpublished changes were discarded",
    "invocation": {
        "module_args": {
            "uid": "<<UID>>",
            "wait_for_task": true,
            "wait_for_task_timeout": 30,
            "version": null
        }
    }
}

May check how I can go about resolving this issue? Many thanks in advance!

@shermannws
Copy link
Author

Seems to be a existing problem from here. Can check if there has been any update to this? Or am I supposed to pre-configure some settings on Smart Console and/or Gaia

@chkp-edenbr chkp-edenbr added the enhancement New feature or request label Jun 20, 2022
@chkp-edenbr
Copy link
Contributor

Hi,

Thanks for notifying us. The option to switch session (https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/switch-session~v1.9%20) will be available in future versions.

Regards,
Eden

@shermannws
Copy link
Author

Thank you @chkp-edenbr !

Can I confirm that the documentation for cp_mgmt_publish is currently incomplete? In the documentation, it seems that it has wrongly states that uid can be specified as parameter to "publish a different session than the one you currently use".

image

@shermannws
Copy link
Author

shermannws commented Jun 23, 2022

Hello! Can I check if there is an expected timeline for the cp_mgmt module for switching session to be implemented? Thank you very much!

@chkp-edenbr
Copy link
Contributor

Hi,

Concerning cp_mgmt_publish, thank you for notifying us, we will update the module and release it in a future version.

Concerning switching sessions module, we currently don't have an expected timeline.

Thank you,

Eden

@shermannws
Copy link
Author

shermannws commented Jun 26, 2022

Thank you @chkp-edenbr ! Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants