Skip to content

Conversation

@jdshewey
Copy link
Contributor

One more change needed.

sssd_conf: /etc/sssd/sssd.conf
named_conf: /etc/named.conf
admin:
password: {{ salt['pillar.get']('freeipa:server:admin:password', pillar.freeipa.server.ldap.password) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I don't like the idea of requiring the password to be on pillar.
Can we make it "if admin:password" is defined?

Copy link
Member

@epcim epcim Jun 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it should be otherwise - pillar.freeipa.server.ldap.password should if not define should get the admin password from freeipa:server:admin:password.

For me, this is the reason not to merge it right now.

--hostname {% if server.hostname is defined %}{{ server.hostname }}{% else %}{{ grains['fqdn'] }}{% endif %}
--ds-password {{ server.ldap.password }}
--admin-password {{ server.admin.get('password', server.ldap.password) }}
--admin-password {{ server.admin.password }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now why, to use if server.admin.password id defined.
we are in 2018, we should treat passwords better. One option here might be update formula to declare what is credentials backend, cmd.run may conditionally read pillar or use sth like https://github.com/hashicorp/envconsul (that has ability to read admin password from vault/consul/etcd ..?

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.

2 participants