Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move DS's Kerberos env vars to unit file #2982

Closed
wants to merge 3 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Apr 2, 2019

The IPA specific env vars KRB5_KTNAME and KRB5CCNAME are now defined in a instance specific ipa-env.conf unit file.

Fixes: https://pagure.io/freeipa/issue/7860

@tiran tiran added WIP Work in progress - not ready yet for review ipa-4-7 labels Apr 2, 2019
@tiran tiran changed the title Move DS's Kerberos env vars to unit file Move DS's Kerberos env vars to unit file Apr 2, 2019
Copy link
Contributor

@abbra abbra left a comment

Choose a reason for hiding this comment

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

Few comments:

  • restoring old backup to a new system, what will happen? We should probably handle that
  • IIRC, changes to systemd service need systemctl daemon-reload

ipapython/ipautil.py Outdated Show resolved Hide resolved
config_replace_variables() can now also remove lines from a file.

Related: https://pagure.io/freeipa/issue/7860
Signed-off-by: Christian Heimes <cheimes@redhat.com>
systemd daemon must be reloaded after a config file is added, changed,
or removed. Provide a common API endpoint in ipaplatform.tasks.

Related: https://pagure.io/freeipa/issue/7860
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran
Copy link
Member Author

tiran commented Apr 2, 2019

  • Restore from a different version is not supported. ipa-server-upgrade should fix the cause, though.
  • I have added systemd_daemon_reload.

The IPA specific env vars KRB5_KTNAME and KRB5CCNAME are now defined in
a instance specific ipa-env.conf unit file.

Fixes: https://pagure.io/freeipa/issue/7860
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran requested a review from abbra April 2, 2019 16:02
@tiran tiran added needs review Pull Request is waiting for a review and removed WIP Work in progress - not ready yet for review labels Apr 2, 2019
@abbra
Copy link
Contributor

abbra commented Apr 2, 2019

LGTM. I'll wait for the remaining CI test before adding labels.

@abbra abbra added ack Pull Request approved, can be merged and removed needs review Pull Request is waiting for a review labels Apr 2, 2019
@tiran tiran added the pushed Pull Request has already been pushed label Apr 2, 2019
@tiran
Copy link
Member Author

tiran commented Apr 2, 2019

master:

  • 3cb1ccb Add option to remove lines from a file
  • e4621f1 Add tasks.systemd_daemon_reload()
  • 1dfac4f Move DS's Kerberos env vars to unit file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants