Skip to content

cephadm_install: move distro vars into the role - #977

Closed
insatomcat wants to merge 1 commit into
mainfrom
cephadmvars
Closed

cephadm_install: move distro vars into the role#977
insatomcat wants to merge 1 commit into
mainfrom
cephadmvars

Conversation

@insatomcat

Copy link
Copy Markdown
Member

The role's per-distro variables (uid/gid, logrotate path) were only ever consumed by cephadm_install itself, so loading them from /vars/{Distro}_cephadm_install.yml at playbook level added no value over the standard in-role vars/ convention already used by roles like snmp and timemaster.
Move them to roles/cephadm_install/vars/{Distro}.yml and include_vars from within the role's own tasks/main.yml, dropping the now-unneeded include_vars step from cluster_setup_cephadm.yaml.

The role's per-distro variables (uid/gid, logrotate path) were only
ever consumed by cephadm_install itself, so loading them from
/vars/{Distro}_cephadm_install.yml at playbook level added no value
over the standard in-role vars/ convention already used by roles like
snmp and timemaster. Move them to roles/cephadm_install/vars/{Distro}.yml
and include_vars from within the role's own tasks/main.yml, dropping
the now-unneeded include_vars step from cluster_setup_cephadm.yaml.

Signed-off-by: Florent Carli <florent.carli@rte-france.com>
@insatomcat

Copy link
Copy Markdown
Member Author

PR merged into #983

@insatomcat insatomcat closed this Jul 23, 2026
@insatomcat
insatomcat deleted the cephadmvars branch July 23, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant