pdellaert / dhcp_server Goto Github PK
View Code? Open in Web Editor NEWAn ansible role to setup and configure a DHCP server under Debian/CentOS based distro's
License: BSD 4-Clause "Original" or "Old" License
An ansible role to setup and configure a DHCP server under Debian/CentOS based distro's
License: BSD 4-Clause "Original" or "Old" License
Hi!
I am using your role successfully on several Debian images. Now I wanted to start testing on Ubuntu 14.04, but unfortunately the validation of the generated dhcpd config fails with
TASK: [pdellaert.dhcp_server | Generate dhcpd.conf] ***************************
<127.0.0.1> ESTABLISH CONNECTION FOR USER: vagrant
<127.0.0.1> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/till/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o Port=2201 -o IdentityFile="/Users/till/Development/git-repos/ffdo-ansible/.kitchen/kitchen-vagrant/kitchen-ffdo-ansible-supernode-Ubuntu-1404/.vagrant/machines/default/virtualbox/private_key" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 127.0.0.1 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821 && echo $HOME/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821'
<127.0.0.1> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/till/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o Port=2201 -o IdentityFile="/Users/till/Development/git-repos/ffdo-ansible/.kitchen/kitchen-vagrant/kitchen-ffdo-ansible-supernode-Ubuntu-1404/.vagrant/machines/default/virtualbox/private_key" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 127.0.0.1 /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=hgpdqosnqmanguabvvprqqzzzzcrgoxl] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-hgpdqosnqmanguabvvprqqzzzzcrgoxl; rc=flag; [ -r /etc/dhcp/dhcpd.conf ] || rc=2; [ -f /etc/dhcp/dhcpd.conf ] || rc=1; [ -d /etc/dhcp/dhcpd.conf ] && rc=3; python -V 2>/dev/null || rc=4; [ x"$rc" != "xflag" ] && echo "${rc} "/etc/dhcp/dhcpd.conf && exit 0; (python -c '"'"'"'"'"'"'"'"'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open("'"'"'"'"'"'"'"'"'/etc/dhcp/dhcpd.conf'"'"'"'"'"'"'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) > 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"'"'"'"'"'"'"' 2>/dev/null) || (python -c '"'"'"'"'"'"'"'"'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open("'"'"'"'"'"'"'"'"'/etc/dhcp/dhcpd.conf'"'"'"'"'"'"'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) > 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"'"'"'"'"'"'"' 2>/dev/null) || (echo '"'"'"'"'"'"'"'"'0 '"'"'"'"'"'"'"'"'/etc/dhcp/dhcpd.conf)'"'"''
<127.0.0.1> PUT /var/folders/1k/rjcrsrkj5tbf0k9srllqtk7r0000gn/T/tmpOfskvI TO /home/vagrant/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821/source
<127.0.0.1> PUT /var/folders/1k/rjcrsrkj5tbf0k9srllqtk7r0000gn/T/tmpML1FUh TO /home/vagrant/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821/copy
<127.0.0.1> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/till/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o Port=2201 -o IdentityFile="/Users/till/Development/git-repos/ffdo-ansible/.kitchen/kitchen-vagrant/kitchen-ffdo-ansible-supernode-Ubuntu-1404/.vagrant/machines/default/virtualbox/private_key" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 127.0.0.1 /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=iargnsgiysslmvzmmtqnwifncxezcwee] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-iargnsgiysslmvzmmtqnwifncxezcwee; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821/copy; rm -rf /home/vagrant/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821/ >/dev/null 2>&1'"'"''
failed: [Ubuntu-1404] => {"failed": true}
msg: failed to validate: rc:1 error:Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Can't open /home/vagrant/.ansible/tmp/ansible-tmp-1437841532.24-273333298657821/source: Permission denied
Other roles are working on this host.
Hello,
dhcp_common_ddns_unknown_clients
introduced in f8d7e10 (and renamed to dhcp_ddns_unknown_clients
in 253f7f8) is not working as one might guess from ddns
in the variable name.
When the option dhcp_ddns_unknown_clients
is not present, it in the end adds directive ignore unknown-clients;
into dhcpd.conf
.
This has nothing to do with DDNS and simply refuses to give leases to clients without a host declaration in dhcpd.conf
.
I believe that this is a mistake and that the option should be removed or replaced (but I do not know what would be the replacement).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.