diff --git a/docs/docs/agent.mdx b/docs/docs/agent.mdx index d39c07f..e03b5e0 100644 --- a/docs/docs/agent.mdx +++ b/docs/docs/agent.mdx @@ -6,6 +6,67 @@ keywords: [configuration, linux, frr, frrouting, bird, agent] description: hyperglass agent configuration --- -:::important Coming Soon -Documentation for [hyperglass-agent](https://github.com/checktheroads/hyperglass-agent) coming soon! +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +:::important In Progress +Documentation for [hyperglass-agent](https://github.com/checktheroads/hyperglass-agent) is in progress! ::: + +# Installation + +## Dependencies + +On the Linux server running [FRRouting](https://frrouting.org/) or [BIRD](https://bird.network.cz/), make sure Python 3.6+ is installed: + + + + + +```shell-session +$ sudo apt install -y python3.6-dev python3-pip +``` + + + + + +```shell-session +$ sudo yum install centos-release-scl +$ sudo yum install rh-python36 +``` + + + + + +You can then verify your Python 3 version: + +```shell-session +$ python3 --version +Python 3.6.9 +``` + +## Application + +Now that Python 3.6+ is installed, you can install the hyperglass agent: + +```shell-session +$ pip3 install --user hyperglass-agent +``` + +# Setup + +Just like with hyperglass, the hyperglass agent is easy to set up. To automatically create an application directory, generate SSL certificates, generate and symlink a systemd file, and generate a random secret, run: + +```shell-session +$ hyperglass setup +``` + +:::important More coming soon +Documentation for [hyperglass-agent](https://github.com/checktheroads/hyperglass-agent) is in progress! +::: \ No newline at end of file diff --git a/hyperglass/examples/hyperglass.service b/hyperglass/examples/hyperglass.service deleted file mode 100644 index 4d75b8e..0000000 --- a/hyperglass/examples/hyperglass.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=hyperglass -After=network.target -Requires=redis-server.service - -[Service] -User=www-data -Group=www-data -ExecStart=/usr/local/bin/python3 -m sanic hyperglass.web.app - -[Install] -WantedBy=multi-user.target