mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
* Renaming files and a lot of find and replace * pageRank meta tags, sorting by page rank * reranking * removing numbers * revert changing links that are locked to a commit * update metatag name, uncomment github contributers * Update basic-documentation.page.js * revert link change * more explicit errors, change pageOrderInSection numbers, updated sort * Update build-static-content.js * update comment * update handbook link * handbook entry * update sort * update changelog doc links to use fleetdm.com * move standard query library back to old location, update links/references to location * revert unintentional link changes * Update handbook/community.md Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com> Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com> Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
46 lines
1.6 KiB
Markdown
46 lines
1.6 KiB
Markdown
# Seeding data
|
|
|
|
When developing Fleet, it may be useful to create seed data that includes users and teams.
|
|
|
|
Check out this Loom demo video that walks through creating teams seed data:
|
|
https://www.loom.com/share/1c41a1540e8f41328a7a6cfc56ad0a01
|
|
|
|
For a text-based walkthrough, check out the following steps:
|
|
|
|
First, create a `env` file with the following contents:
|
|
|
|
```
|
|
export SERVER_URL=https://localhost:8080 # your fleet server url and port
|
|
export CURL_FLAGS='-k -s' # set insecure flag
|
|
export TOKEN=eyJhbGciOi... # your login token
|
|
```
|
|
|
|
Next, set the `FLEET_ENV_PATH` to point to the `env` file. This will let the scripts in the `fleet/` folder source the env file.
|
|
|
|
```
|
|
export FLEET_ENV_PATH=/Users/victor/fleet_env
|
|
```
|
|
|
|
Finally run one of the bash scripts located in the [/tools/api](../../tools/api/README.md) directory.
|
|
|
|
The `fleet/create_free` script will generate an environment to roughly reflect an installation of Fleet Free. The script creates 3 users with different roles.
|
|
|
|
```
|
|
./tools/api/fleet/teams/create_free
|
|
```
|
|
|
|
The `fleet/create_premium` script will generate an environment to roughly reflect an installation of Fleet Premium. The script will create 2 teams 4 users with different roles.
|
|
|
|
```
|
|
./tools/api/fleet/teams/create_premium
|
|
```
|
|
|
|
The `fleet/create_figma` script will generate an environment to reflect the mockups in the Fleet EE (current) Figma file. The script creates 3 teams and 12 users with different roles.
|
|
|
|
```
|
|
./tools/api/fleet/teams/create_figma
|
|
```
|
|
|
|
Each user generated by the script has their password set to `user123#`.
|
|
|
|
<meta name="pageOrderInSection" value="600">
|