triplepoint.network_interfaces

Introduction

Set up the network interfaces on your host. This mainly involves editing the /etc/network/interfaces file.

Requirements

None.

Role Variables

Check the comment in the default variables file for details on how to configure.

Dependencies

None.

Example Playbook

- hosts: whatever
  roles:
    - triplepoint.network_interfaces

Role Testing

This role is tested using molecule, with pipenv for managing dependencies and the Python environment.

Setting Up Your Environment

pip install pipenv

After installing pipenv, create a virtual environment with:

pipenv install --dev

Running Tests

Once your environment is ready, run molecule like this:

pipenv run molecule test

Regenerating the Lock File

You may not need to do this often, but if you change Python package requirements using pipenv install {some_package} or by editing the Pipfile, or if the dependencies are outdated, you might need to update the Pipfile.lock:

pipenv update --dev

Make sure to commit the updated Pipfile.lock after this is done.

To Do

  • Switch from ifupdown to netplan.

License

MIT

Notes

Informazioni sul progetto

A role for configuring the network interfaces on a physical machine.

Installa
ansible-galaxy install triplepoint.network_interfaces
Licenza
mit
Download
204
Proprietario