Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
ansible
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • las-it-organisation
  • 32-0-IT instructions and rules
  • ansible
  • Issues
  • #83

Closed
Open
Created Feb 17, 2020 by julian.gethmann@gethmannOwner

LASMagLab DHCPd with template instead of static file

One might want to use a template for the DHCPd server entry in the dhcpd.conf, so that one does not have to change it for a new computer.

Hints/Ideas for the template:

  • MAC address: ('ansible_interfaces' starts with 'enp') ['ansible_enp????']['macaddress'] when ['ansible_enp???']['ipv4']['network'] == '192.168.0.0'
  • Hostname: ['ansible_fqdn']
  • IP: '192.168.0.1'
# DHCPd host
host {{'ansible_hostname'}} {
  hardware ethernet {{ macaddress }};
  fixed-address {{ ip }};
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None