Skip to content

Python client allows authentication via ENV's the CLI does not #268

@frippe75

Description

@frippe75

Would be nice if the CLI would check for ENV just like the Python client seems to provide. Easy fix?
Tried setting up the dev-env to have a go but could not pull the docker image (I guess not on Docker hub).

$ env | grep HPECP
HPECP_PASSWORD=******
HPECP_API_PORT=8080
HPECP_VERIFY_SSL=False
HPECP_USE_SSL=False
HPECP_WARN_SSL=False
HPECP_USERNAME=admin
HPECP_API_HOST=ezmeral-cluster.*****.***

$ unset HPECP_CONFIG_FILE

$ hpecp k8sworker list
Could not find configuration file '/home/ansible/.hpecp.conf'

Would like to run this via Ansible and was thinking I'd skip creating modules that uses the Python client and rather go for a more blunt usage via shell/command module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions