Giter Site home page Giter Site logo

dhcp_server's People

Contributors

pdellaert avatar pspacek avatar styopa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dhcp_server's Issues

Installing dhcpd config fails on Ubuntu 14.04

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.

variable dhcp_ddns_unknown_clients = false breaks DHCP

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.