[GH-ISSUE #63] Consider to get host, username, password or token from environment or config file #60

Closed
opened 2026-02-26 17:44:12 +03:00 by kerem · 4 comments
Owner

Originally created by @bds-congnguyen on GitHub (May 9, 2022).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/63

What happened?

I want to add cv4pve-autosnap into crontab and manage it from Configuration Management tool, so push secret value into crontab file and able to everyone see it is not a good practice

Expected behavior

add function to get some options from environment variables or from config file

Relevant log output

No response

Proxmox VE Version

7.2

Version (bug)

1.14.3

Version (working)

No response

On what operating system are you experiencing the issue?

Linux

Pull Request

  • I would like to do a Pull Request
Originally created by @bds-congnguyen on GitHub (May 9, 2022). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/63 ### What happened? I want to add cv4pve-autosnap into crontab and manage it from Configuration Management tool, so push secret value into crontab file and able to everyone see it is not a good practice ### Expected behavior add function to get some options from environment variables or from config file ### Relevant log output _No response_ ### Proxmox VE Version 7.2 ### Version (bug) 1.14.3 ### Version (working) _No response_ ### On what operating system are you experiencing the issue? Linux ### Pull Request - [ ] I would like to do a Pull Request
kerem 2026-02-26 17:44:12 +03:00
Author
Owner

@franklupo commented on GitHub (May 9, 2022):

HI,
for password you can use --file:path_file First esecution require input password or use cv4pve-autosnap @fileparm in fileparm specify all option

--host=192.168.0.123
--username=root
--password=pwd1
--vmid=100
status

best regards

<!-- gh-comment-id:1121211965 --> @franklupo commented on GitHub (May 9, 2022): HI, for password you can use ```--file:path_file``` First esecution require input password or use ```cv4pve-autosnap @fileparm``` in fileparm specify all option ``` --host=192.168.0.123 --username=root --password=pwd1 --vmid=100 status ``` best regards
Author
Owner

@franklupo commented on GitHub (May 15, 2022):

News?

<!-- gh-comment-id:1126986791 --> @franklupo commented on GitHub (May 15, 2022): News?
Author
Owner

@bds-congnguyen commented on GitHub (May 16, 2022):

thank, it's working well

<!-- gh-comment-id:1127136526 --> @bds-congnguyen commented on GitHub (May 16, 2022): thank, it's working well
Author
Owner

@franklupo commented on GitHub (May 17, 2022):

You are welcome

<!-- gh-comment-id:1128443786 --> @franklupo commented on GitHub (May 17, 2022): You are welcome
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#60
No description provided.