{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "# ignore this cell, this is just a helper cell to provide the magic %highlight_file\n", "%run ../highlighter.py" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Initializing Nornir\n", "\n", "Easiest way of initializing nornir is with the function [InitNornir](../api/nornir/__init__.html#nornir.__init__.InitNornir).\n", "\n", "With `InitNornir` you can initialize nornir with a configuration file, with code or with a combination of both.\n", "\n", "Let's start with [a configuration file](../configuration/index.html):" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
1---\n", " 2inventory:\n", " 3 plugin: SimpleInventory\n", " 4 options:\n", " 5 host_file: "inventory/hosts.yaml"\n", " 6 group_file: "inventory/groups.yaml"\n", " 7 defaults_file: "inventory/defaults.yaml"\n", " 8runner:\n", " 9 plugin: threaded\n", "10 options:\n", "11 num_workers: 100\n", "