Use the normal way of creating VM instances and add 2 VMs running a webserver into a single subnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| networks: | |
| gitlab_net: | |
| driver: bridge | |
| ipam: | |
| driver: default | |
| config: | |
| - subnet: 192.168.201.0/24 | |
| gateway: 192.168.201.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test:2.7: | |
| image: python:2.7.12-wheezy | |
| script: | |
| - netshow-lib/test.sh | |
| - netshow/test.sh | |
| test:3.5: | |
| image: python:3.4.5-wheezy | |
| script: | |
| - netshow-lib/test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml | |
| new file mode 100644 | |
| index 0000000..7876150 | |
| --- /dev/null | |
| +++ b/.gitlab-ci.yml | |
| @@ -0,0 +1,11 @@ | |
| +test:2.7: | |
| + image: python:2.7.12-wheezy | |
| + script: | |
| + - netshow-lib/test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py | |
| index 94d359a..d5af207 100644 | |
| --- a/netbox/dcim/tables.py | |
| +++ b/netbox/dcim/tables.py | |
| @@ -75,6 +75,13 @@ UTILIZATION_GRAPH = """ | |
| {% utilization_graph value %} | |
| """ | |
| +CUSTOM_FIELDS = """ | |
| +{% for field,value in record.get_custom_fields.items %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| """ Ansible Inventory Generated From Netbox | |
| Author: Stanley Karunditu <stanley@linuxsimba.com> | |
| License: MIT | |
| Requirements: | |
| * use netbox device roles that result in hyphenated role names. E.g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CONNECTED(00000003) | |
| depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root | |
| verify return:1 | |
| depth=2 C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority | |
| verify return:1 | |
| depth=1 C = FR, ST = Paris, L = Paris, O = Gandi, CN = Gandi Standard SSL CA 2 | |
| verify return:1 | |
| depth=0 OU = Domain Control Validated, OU = Gandi Standard SSL, CN = linuxsimba.com | |
| verify return:1 | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!powershell | |
| # | |
| # Copyright 2016, Stanley Karunditu <[email protected]> | |
| # | |
| # Ansible is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # Ansible is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # (c) 2016, Stanley Karunditu <[email protected]> | |
| # | |
| # This file is part of Ansible | |
| # | |
| # Ansible is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |