# Users, Accounts & Tokens

## Introduction

We have set default tokens and passwords to get a test/lab environment up and running quickly. In a production deployment you should replace all the tokens and passwords. We don't suggest changing any directories.

## Default Login Values

The default accounts to login to systems following deployment from Semaphore are as follows. The endpoints (URLs) are set in Semaphore environments, and you will need [deploy and configure NGINX](https://docs.netos.io/books/semaphore-netops/page/deploying-nginx-certificates).

<table border="1" id="bkmrk-system-username-pass" style="border-collapse: collapse; width: 100%; height: 178.168px;"><colgroup><col style="width: 13.3483%;"></col><col style="width: 16.3146%;"></col><col style="width: 16.0798%;"></col><col style="width: 54.1225%;"></col></colgroup><tbody><tr style="height: 29.6946px;"><td style="background-color: rgb(236, 240, 241); height: 29.6946px;">**System**</td><td style="background-color: rgb(236, 240, 241); height: 29.6946px;">**Username**</td><td style="background-color: rgb(236, 240, 241); height: 29.6946px;">**Password**</td><td style="background-color: rgb(236, 240, 241); height: 29.6946px;">**Endpoint Settings**</td></tr><tr style="height: 29.6946px;"><td style="height: 29.6946px;">Semaphore</td><td style="height: 29.6946px;">`admin`</td><td style="height: 29.6946px;">`admin`</td><td style="height: 29.6946px;">Set in Semaphore environment "Semaphore Global Settings"</td></tr><tr style="height: 29.6946px;"><td style="height: 29.6946px;">NetBox</td><td style="height: 29.6946px;">`admin`</td><td style="height: 29.6946px;">`ohp8toef7Jee`</td><td style="height: 29.6946px;">Set in Semaphore environment "NetBox Global Settings"</td></tr></tbody></table>

## Var Files

There are different Ansible Variable files located in each project, for example:

- [https://github.com/netos-networks/netos-netops/tree/main/vars](https://github.com/netos-networks/netos-netops/tree/main/vars)
- [https://github.com/netos-networks/netos-netbox/tree/main/vars](https://github.com/netos-networks/netos-netbox/tree/main/vars)

Here is an example `vars_file` from the `netos-netbox` repository. The "lookup" value is taken from.

```yaml
CERT_CONTENT: "{{ lookup('env', 'CERT_CONTENT') | default('must-be-set-in-semaphore-variable') }}"
CERT_DIR: "{{ lookup('env', 'CERT_DIR') | default('/netos/certs/netbox') }}"
DOMAIN: "{{ lookup('env', 'DOMAIN') | default('netos.dev') }}"
NETBOX_DB_NAME: "{{ lookup('env', 'NETBOX_DB_NAME') | default('netbox') }}"
NETBOX_DB_PASSWORD: "{{ lookup('env', 'NETBOX_DB_PASSWORD') | default('VxW6EnnKRrkxCzcnDnWT8Fz9q') }}"
NETBOX_DB_USER: "{{ lookup('env', 'NETBOX_DB_USER') | default('netbox') }}"
NETBOX_HOSTNAME: "{{ lookup('env', 'NETBOX_HOSTNAME') | default('netbox') }}"
NETBOX_INSTALL_DIR: "{{ lookup('env', 'NETBOX_INSTALL_DIR') | default('/opt/netbox') }}"
NETBOX_REPO: "{{ lookup('env', 'NETBOX_REPO') | default('https://github.com/netbox-community/netbox.git') }}"
NETBOX_TOKEN: "{{ lookup('env', 'NETBOX_TOKEN') | default('d4c5b00f7053317be2ce8993dd74caa14ca53ca8') }}"
ORG_NAME: "{{ lookup('env', 'ORG_NAME') | default('Netos Networks') }}"
PLUGIN_ADD_TAG: "{{ lookup('env', 'PLUGIN_ADD_TAG') | default('') }}"
POSTGRES_USER_PASSWORD: "{{ lookup('env', 'POSTGRES_USER_PASSWORD') | default('3SqtYWH8iy0Y1alOIj2I') }}"
PRIVATE_CERT_CONTENT: "{{ lookup('env', 'PRIVATE_CERT_CONTENT') | default('must-be-set-in-semaphore-variable') }}"
SECRET_KEY: "{{ lookup('env', 'SECRET_KEY') | default('ahz3ool4teiNgo7moh6fiehiuTh6zei5achae2eeshae9vaiYe') }}"
SUPER_USER_EMAIL: "{{ lookup('env', 'SUPER_USER_EMAIL') | default('netbox@netos.dev') }}"
SUPER_USER_PASSWORD: "{{ lookup('env', 'SUPER_USER_PASSWORD') | default('ohp8toef7Jee') }}"
SUPER_USER_USERNAME: "{{ lookup('env', 'SUPER_USER_USERNAME') | default('admin') }}"
AIRFLOW_API_USER_USERNAME: "{{ lookup('env', 'AIRFLOW_API_USER_USERNAME') | default('airflow_api') }}"
AIRFLOW_API_USER_PASSWORD: "{{ lookup('env', 'AIRFLOW_API_USER_PASSWORD') | default('a17baa2b642565b1d7be4d6d52a7fc23a2c6c41a') }}"
AIRFLOW_API_TOKEN: "{{ lookup('env', 'AIRFLOW_API_TOKEN') | default('d6d52a7fc23a2c6c41aa17baa2b642565b1d7be4') }}"
```

## Semaphore Variables

Variables and Secrets are set in Environments which are passed as variables via the `lookup` command above. Check the [Key Semaphore Principles](https://docs.netos.io/books/semaphore-netops/page/key-semaphore-principles) guide for more information about Semaphore.

[![image.png](https://docs.netos.io/uploads/images/gallery/2024-10/scaled-1680-/zeeJjFPpRJKEaM69-image.png)](https://docs.netos.io/uploads/images/gallery/2024-10/zeeJjFPpRJKEaM69-image.png)

<p class="callout warning">The variable must be configured in Semaphore if it is referenced in a variable file. If it isn't you will get an error when running the playbook.</p>

<p class="callout warning">In a production system, double check all accounts after setting them. I.e. ensure you can manually authenticate to databases, APIs, applications, etc.</p>