Patrick Denis > 2020 > November
Monthly Archive: November 2020
patrick
November 17, 2020
Found a nice and easy article of how to Expand a Hard Disk with Ubuntu LVM : http://www.geoffstratton.com/expand-hard-disk-ubuntu-lvm So you’re running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to…
Read more
patrick
November 11, 2020
Example ! #### Script1 #### from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment env = Environment(undefined=StrictUndefined) env.loader = FileSystemLoader([“.”, “./templates/”]) var_interfaces = {} var_template_file = “intf_config1.j2” var_template = env.get_template(var_template_file) var_output = var_template.render(**var_interfaces) print(var_output) ####…
Read more
patrick
November 10, 2020
So to be able to call different files/template that are not in the current directory, from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment #env = Environment() <— load the default environment #env =…
Read more