Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

cons3rt cli installed non-globally still requires global configuration #1

Description

@codrcodz

Issue

When installing pycons2rtapi in a non-global manner (i.e. via virtualenv or with --user), the user is still required to have sudo access so that the client can bootstrap the global config directory in /etc/pycons3rt/conf, even though it is not using it to store its configuration file.

Steps to reproduce

Use this role and/or follow manual steps similar to these, omitting the step where /etc/pycons3rt/conf is created manually:

Once installed, run any cons3rt command (i.e. cons3rt --help) and you will notice that a permission denied error is thrown because the client is unable to automatically create the directory in /etc/ without passing sudo. Passing sudo makes the config files installed in the virtualenv or local user directory owned by root making them unusable without chowning them or calling the client with sudo each time.

Recommended fix

Have the client create the global configuration directory conditionally, instead of always.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions