Giter VIP home page Giter VIP logo

ansible-role-netbox's People

Contributors

ben-dataraven avatar dependabot[bot] avatar felbinger avatar gmazoyer avatar junousi avatar lae avatar mika64 avatar parsa97 avatar shock0572 avatar smutel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ansible-role-netbox's Issues

Travis CI hangs for Ubuntu 18.04 test

When testing this role, the Travis CI test hangs for Ubuntu 18.04.

It always stay at the same step: ensure postgresql is started

I was unable to reproduce this issue on my machine (macOS) with the same Docker container.

This means that the CI build cannot be properly run.

failed to import the required python library (psycopg2)

Hi,

i'm getting the error

TASK [respawner.netbox : create postgresql database] ************************************************************************************************************************************************
fatal: [nit-net-01]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (psycopg2) on nit-net-01's Python /usr/bin/python3.8. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

Want to install netbox on a fresh ubuntu 18.04 vm.

thanks in advance

postgresql database creation: failed to change ownership of ansible temporary files

Hi,

On a simple run (calling the role with no option) I get this error:

TASK [netbox : create postgresql database] *************************************************************************************************************************************************
fatal: [ec2-myinstance.eu-west-2.compute.amazonaws.com]: FAILED! => {"msg": "Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user. Unprivileged become user would be unable to read the file."}

I think this is related to an open issue in ansible, not your role directly, I open the issue to trace it because you could encounter it too.

Here is the thread on the ansible side: ansible/ansible#16052 (comment)

MIT licensing issue

Hi Guilliaume,

I notice that in 7c400dd there are significant portions of code that appear to be copied from my project. I'm glad to have been a good resource, especially since this role is more inline with how the upstream NetBox documentation details installation procedures. Thanks!

This was probably an oversight, but I noticed that it was missing a copy of the license from the original project, which is a requirement for redistribution/modification:

https://github.com/lae/ansible-role-netbox/blob/master/LICENSE

Since this repository is originally under GPL, there are two steps that need to be taken to resolve this:

  1. A copy of the original MIT license needs to be present in this repository (probably best that it's in the parent directory since the code in concern doesn't appear to be isolated to a single subdirectory), and it needs to be clear to users that code in this repository, starting from that commit, falls under both licenses.
  2. A reference to the original license should be present in the header of any files with significant (i.e. non-trivial) portions of code from the original repository in order to distinguish it from the GPL licensed code - e.g. the first line from the LICENSE linked above would suffice as a comment. You should also include a line referencing the GPL if there are significant portions that don't fall under the MIT license. I believe the following files are candidates:
    a. tasks/install_packages.yml
    b. tasks/setup_netbox.yml
    c. templates/configuration.py.j2
    d. vars/main.yml

Basically, this doesn't result in any change of permissions granted for this repository (as GPL is more or less a superset of MIT), but rather a change of attribution.

If you want to make those changes, that'd be great. Otherwise, I can submit a pull request myself. Also, sorry if I sound heavy-handed, I'm trying my best not to, but I poured a lot of time into this project and believe integrity is pretty important in these sorts of situations.

Ubuntu 22

Hi mate use your role quite a lot in lab and prod due to its high quality.
On Ubuntu 22 I had to do the following to make it pass on Ubuntu 22

In gmazoyer.netbox/vars/

Had to create a file called ubuntu-22.yml that I copied from ubuntu.yml in /.ansible/roles/gmazoyer.netbox/vars directory
ubuntu-22.yml

Changed the following vars due to python changes and package name changes or version changes

__netbox_python_packages:
- python3.10 # Changed from python3.8
- python3.10-dev # Changed from python3.8-dev

__netbox_web_frontend_packages:
- libapache2-mod-wsgi-py3 #Changed from libapache2-mod-wsgi

netbox_python_binary: /usr/bin/python3.10

Test auth LDAP

LDAP authentication test has been disabled recently (since LDAP config changes in 2.6.0).

Figure out the new config to setup to re-enable the LDAP test.

Propose to use virtualenv

It could be useful for some users to setup NetBox in a virtualenv to avoid messing around with the dependencies. This can be implemented using a variable like netbox_use_virtualenv that can be either set to true or false.

Ldap support

Hello,

It would be nice if we also could configure LDAP with this role.

I see that parameter netbox_setup_ldap_auth: false is configured by default

apache ssl support

as an engineer using this ansible role to deploy a netbox instance, I would like to be able to configure netbox to use SSL using variables, without having to use a separate role to manage apache, and in the same way that I am able to configure SSL in other roles that include an apache web frontend (for example zabbix)

Documentation build fails on existing installations

The following step appears to be failing on existing installation, not new ones though.

  - name: build documentation
    ansible.builtin.command: "{{ netbox_virtualenv_path }}/bin/mkdocs build"
    args:
      chdir: "{{ netbox_install_directory }}"
    become: true
    become_user: "{{ netbox_user }}"

The error is the following:

INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: /opt/netbox/netbox/project-static/docs
INFO     -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
              - index.md
/opt/netbox/venv/lib/python3.9/site-packages/mkdocstrings/handlers/python/__init__.py:13: UserWarning: The 'python-legacy' extra of mkdocstrings will become mandatory in the next release. We have no way to detect if you already specify it, so if you do, please ignore this warning. You can globally disable it with the PYTHONWARNINGS environment variable: PYTHONWARNINGS=ignore::UserWarning:mkdocstrings.handlers.python
  warnings.warn(
ERROR    -  mkdocstrings: __init__() got an unexpected keyword argument 'heading_level'
            Traceback (most recent call last):
              File "/opt/netbox/venv/lib/python3.9/site-packages/pytkdocs/cli.py", line 205, in main
                output = json.dumps(process_json(line))
              File "/opt/netbox/venv/lib/python3.9/site-packages/pytkdocs/cli.py", line 114, in process_json
                return process_config(json.loads(json_input))
              File "/opt/netbox/venv/lib/python3.9/site-packages/pytkdocs/cli.py", line 89, in process_config
                loader = Loader(**obj_config)
            TypeError: __init__() got an unexpected keyword argument 'heading_level'
ERROR    -  Error reading page 'plugins/development/forms.md':
ERROR    -  Could not collect 'utilities.forms.ColorField'

Aborted with a BuildError!

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.