1
0
mirror of https://github.com/jerikan-network/cmdb.git synced 2024-05-06 04:54:50 +00:00

28 Commits

Author SHA1 Message Date
Vincent Bernat
50f3b4bf84 [jinja] make torange filter work with prefixed strings too 2022-12-01 11:38:03 +01:00
Vincent Bernat
167c953ac9 [gitlab] make CI work outside Blade
It still requires docker-in-docker to work.
2021-12-04 12:00:38 +01:00
Sébastien Hurtel
b8f97630f1 Merge pull request #4 from ClashTheBunny/update_limit_example
Make limit example a working example.
2021-06-22 10:30:59 +02:00
Vincent Bernat
e75e22e04c Merge pull request #3 from ClashTheBunny/rename_master_to_main
Change references from master to main
2021-06-21 07:29:25 +02:00
Randall Mason
4e07a582b7 Make limit example a working example.
The current `./run-jerikan build
--limit=gateway\?.ussfo03.blade-group.net,none` results in a fairly
complicated error message about BGPttH:

```
self = <jerikan.jinja.ErrorExtension object at 0x7fb938300a90>
message = "no BGPttH information (don't generate gateway templates
alone)"
caller = <Macro anonymous>

    def _raise(self, message, caller):
        """Execute the {% error %} statement, raising an exception."""
>       raise TemplateRuntimeError(message)
E       jinja2.exceptions.TemplateRuntimeError: no BGPttH information
(don't generate gateway templates alone)

caller     = <Macro anonymous>
message    = "no BGPttH information (don't generate gateway templates
alone)"
self       = <jerikan.jinja.ErrorExtension object at 0x7fb938300a90>

jerikan/jinja.py:365: TemplateRuntimeError
------------------------------------ Captured log call
------------------------------------
INFO     jerikan.build:build.py:112 build template data.j2 to data.yaml
for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/interfaces.j2
to network-interfaces for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/keepalived.j2
to keepalived.conf for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:213 skip empty template
gateway2.ussfo03.blade-group.net for linux/keepalived.j2
INFO     jerikan.build:build.py:112 build template
linux/authorized-keys.j2 to authorized_keys for
gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template
linux/nftables-rules-v4.j2 to nftables.conf for
gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/sysctl.conf.j2
to sysctl.conf for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/motd.j2 to motd
for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/dhcp.j2 to
dhcpd.conf for gateway2.ussfo03.blade-group.net
INFO     jerikan.build:build.py:112 build template linux/nginx.j2 to
nginx.conf for gateway2.ussfo03.blade-group.net
-------------------- generated xml file: /app/jerikan/output/junit.xml
--------------------
--------------- generated html file:
file:///app/jerikan/output/report.html ---------------
================================= short test summary info
=================================
FAILED jerikan/build.py::build[gateway1.ussfo03.blade-group.net] -
jinja2.exceptions.Tem...
FAILED jerikan/build.py::build[gateway2.ussfo03.blade-group.net] -
jinja2.exceptions.Tem...
```
2021-06-20 22:46:21 -05:00
Randall Mason
210be78b35 Update to Github commit history 2021-06-20 18:30:53 -05:00
Randall Mason
a6911d27da Change references from master to main 2021-06-20 16:09:13 -05:00
Vincent Bernat
a56fca2a56 [classifier] simplify regexes even more by using single-quoted strings 2021-05-28 18:35:51 +02:00
Vincent Bernat
4dcd7b07c0 [classifier] simplify regexes
There is not much we can do with regexes in YAML file to make them
more readable, but simplify them a bit more.
2021-05-28 18:25:24 +02:00
Vincent Bernat
eff6d90051 [doc] update URL 2021-05-25 14:27:11 +02:00
Vincent Bernat
eb43cf19d2 [templates] IOSXR access-list should be numbered to not keep changing 2021-05-21 20:03:56 +02:00
Vincent Bernat
6fe6a0d997 [templates] include IRR for IOS-XR 2021-05-21 17:06:42 +02:00
Vincent Bernat
b96dad58fe [ci] do not warn when using alternative PYTHONUSERBASE 2021-05-20 04:22:15 +02:00
Vincent Bernat
f56e11e246 [ansible] upgrade ansible.netcommon to 2.1.0 2021-05-20 04:21:18 +02:00
Vincent Bernat
4ed34467bc [doc] remove login step for GitLab
This is not relevant as we are publishing on GitHub.
2021-05-19 20:08:43 +02:00
Vincent Bernat
c3fdf5f1fc [data] rename Junoser syntax check description
It matches what we use for other checks.
2021-05-19 19:56:33 +02:00
Vincent Bernat
356b26b56b [data] replace SK1 subnet
This datacenter is still running for a few days.
2021-05-18 20:34:32 +02:00
Vincent Bernat
857b9d42a6 [data] avoid repetition of /31
This may seem a bit excessive, but we specifically mention this
example in the blog post.
2021-05-18 20:30:53 +02:00
Sébastien Hurtel
89eb1642d3 README: Add yaml example for bgp peers
Aims to show implemented options in templates.
2021-05-18 17:14:45 +02:00
Vincent Bernat
8e7b23c41c [data] monitor SFMIX 2021-05-18 15:23:47 +02:00
Vincent Bernat
85b6e73d27 [ci] move irrd image to GitHub as well 2021-05-16 19:56:46 +02:00
Vincent Bernat
5cad0a8014 [ansible] explain rationale on ssh_config 2021-05-16 18:02:39 +02:00
Vincent Bernat
6df1ddbe14 [doc] add link to blog post (not published) 2021-05-16 08:24:02 +02:00
Vincent Bernat
f86b3b04d7 [ci] change location of Junoser image to use GitHub 2021-05-15 18:45:32 +02:00
Vincent Bernat
16ec38a947 [jerikan] make specification of Jinja filters a bit easier to read 2021-05-15 18:16:18 +02:00
Vincent Bernat
5203129a5a [ci] silent wait-for-it 2021-05-15 17:33:29 +02:00
Vincent Bernat
9307d1c067 Minor formatting fixes 2021-05-15 16:57:21 +02:00
Vincent Bernat
d191613ab8 Initial release
No history. If you have the original history, you can use:

```
git replace THISCOMMIT b0b998bd1c651e308ac71a9158e07e5c3521a281
```
2021-05-15 16:18:03 +02:00