-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feat/config ldap #44
Feat/config ldap #44
Conversation
@sticky-note If I understand correctly, this is built upon #43, so let's resolve the issues there before coming back to this. |
0ae90c6
to
cf7d330
Compare
b9c45ab
to
8c66ef5
Compare
@myii as forecasted, tests are failing |
@sticky-note No problem, I've got the fixes for you. But I've come across a different problem: if I actually enable the ID: dhcpd.conf
Function: file.managed
Name: /etc/dhcp/dhcpd.conf
Result: False
Comment: check_cmd execution failed
Internet Systems Consortium DHCP Server 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/tmp.Gf9jcLGwGC line 18: semicolon expected.
ldap-server "localhost"
^
/etc/dhcp/tmp.Gf9jcLGwGC line 19: semicolon expected.
ldap-port 389;
^
/etc/dhcp/tmp.Gf9jcLGwGC line 20: semicolon expected.
ldap-username "cn=dhcpadmin,dc=example,dc=com"
^
/etc/dhcp/tmp.Gf9jcLGwGC line 21: semicolon expected.
ldap-password "dhcppassword"
^
/etc/dhcp/tmp.Gf9jcLGwGC line 22: semicolon expected.
ldap-base-dn "ou=dhcp,dc=example,dc=com"
^
/etc/dhcp/tmp.Gf9jcLGwGC line 23: semicolon expected.
ldap-method dynamic;
^
/etc/dhcp/tmp.Gf9jcLGwGC line 24: semicolon expected.
ldap-debug-file "/var/log/dhcp-ldap-startup.log"
^
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Configuration file errors encountered -- exiting
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging.
exiting. If that's the case, then this PR needs adjusting before anything. Can you confirm that on your side? I can run Travis at the moment because I've got a number of other runs going on. |
@sticky-note This is the fix for the tests to get it working as-is: Still need to check the failures when enabling the |
@sticky-note So as mentioned, I've now been able to reproduce those errors in Travis: All of the instances are tripping up at the dhcpd-formula/dhcpd/config.sls Lines 14 to 22 in 69d3fdc
|
@myii I am not able to reproduce, with
|
8fff3d3
to
492d040
Compare
492d040
to
241f267
Compare
@myii I wasn't able to reproduce because I hat |
@sticky-note I see that error as well in Travis, we've got both examples there.
The problem is that we still need to be able to confirm this is working. This can be done by preparing a second test suite. You can use the outline I've provided here: This results in the Travis job getting through that state and only tripping up on the Looking at the journal, the reason is as you stated above, that the base configuration for ... systemd[1]: Starting LSB: DHCP server...
-- Subject: A start job for unit isc-dhcp-server.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit isc-dhcp-server.service has begun execution.
--
-- The job identifier is 163.
... isc-dhcp-server[917]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if you only want one or the other).
... dhcpd[929]: Wrote 0 leases to leases file.
... dhcpd[929]:
... dhcpd[929]: No subnet declaration for eth0 (172.17.0.2).
... dhcpd[929]: ** Ignoring requests on eth0. If this is not what
... dhcpd[929]: you want, please write a subnet declaration
... dhcpd[929]: in your dhcpd.conf file for the network segment
... dhcpd[929]: to which interface eth0 is attached. **
... dhcpd[929]:
... dhcpd[929]:
... dhcpd[929]: Not configured to listen on any interfaces!
... dhcpd[929]:
... dhcpd[929]: If you think you have received this message due to a bug rather
... dhcpd[929]: than a configuration issue please read the section on submitting
... dhcpd[929]: bugs on either our web page at www.isc.org or in the README file
... dhcpd[929]: before submitting a bug. These pages explain the proper
... dhcpd[929]: process and the information we find helpful for debugging.
... dhcpd[929]:
... dhcpd[929]: exiting.
... dhcpd[929]: than a configuration issue please read the section on submitting
... dhcpd[929]: bugs on either our web page at www.isc.org or in the README file
... dhcpd[929]: before submitting a bug. These pages explain the proper
... dhcpd[929]: process and the information we find helpful for debugging.
... dhcpd[929]:
... dhcpd[929]: exiting.
... isc-dhcp-server[917]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
... isc-dhcp-server[917]: failed!
... systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE So there are two ways forward here:
As you try things out at your end, you test it out using: $ bin/kitchen verify ldap-debian-10-master-py3 |
@myii You have to fill base configuration for |
@sticky-note So shall we just do number 2 for now? |
Thanks, @sticky-note. Testing against |
🎉 This PR is included in version 0.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@myii I have juste realized that |
@sticky-note Sure, please send through another PR with the changes. Don't worry too much if the verification stage fails again, I've tightened up the tests in this formula a lot, as a way of checking how useful that approach is. |
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
Describe the changes you're proposing
Add ldap backend support
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context