Skip to content

Commit 282a3eb

Browse files
committed
fixes
1 parent a5e1135 commit 282a3eb

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.env.example

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66
# Used by CLI tools and local scripts to connect to Infrahub
77
# Note: The Service Catalog container uses http://infrahub-server:8000 automatically
88
# via docker-compose.override.yml for proper Docker networking
9-
INFRAHUB_ADDRESS=http://localhost:8000
9+
export INFRAHUB_ADDRESS=http://localhost:8000
1010

1111
# Infrahub UI URL for browser links
1212
# Used by the Service Catalog to generate clickable links to Infrahub UI pages
1313
# Should be the URL accessible from your browser (typically http://localhost:8000)
14-
INFRAHUB_UI_URL=http://localhost:8000
14+
export INFRAHUB_UI_URL=http://localhost:8000
1515

1616
# Infrahub API authentication token
1717
# Generate a token in the Infrahub UI under Settings > API Tokens
18-
INFRAHUB_API_TOKEN=06438eb2-8019-4776-878c-0941b1f1d1ec
18+
export INFRAHUB_API_TOKEN=06438eb2-8019-4776-878c-0941b1f1d1ec
1919

2020
# Infrahub version to use
2121
# Specify the version of Infrahub to run (e.g., 1.5.1, stable, latest)
22-
INFRAHUB_VERSION=1.5.1
22+
export INFRAHUB_VERSION=1.5.1
2323

2424
# Enable Infrahub Enterprise features
2525
# Set to "true" to enable enterprise features, "false" for community edition
26-
INFRAHUB_ENTERPRISE=false
26+
export INFRAHUB_ENTERPRISE=false
2727

2828
# =============================================================================
2929
# Service Catalog Configuration
@@ -33,23 +33,23 @@ INFRAHUB_ENTERPRISE=false
3333
# Set to "true" to start the service catalog container with 'uv run invoke start'
3434
# Set to "false" (default) to run only the core Infrahub services
3535
# The service catalog provides a web UI for managing data center deployments
36-
INFRAHUB_SERVICE_CATALOG=false
36+
export INFRAHUB_SERVICE_CATALOG=false
3737

3838
# Default branch to use when the service catalog application starts
3939
# This is the branch that will be selected by default in the UI
40-
DEFAULT_BRANCH=main
40+
export DEFAULT_BRANCH=main
4141

4242
# Time to wait (in seconds) for the Infrahub generator to complete after creating a DC
4343
# Increase this value if your generators take longer to complete
44-
GENERATOR_WAIT_TIME=60
44+
export GENERATOR_WAIT_TIME=60
4545

4646
# API request timeout in seconds
4747
# Maximum time to wait for API requests to complete
48-
API_TIMEOUT=30
48+
export API_TIMEOUT=30
4949

5050
# Number of retry attempts for failed API requests
5151
# The service catalog will retry failed requests this many times before giving up
52-
API_RETRY_COUNT=3
52+
export API_RETRY_COUNT=3
5353

5454
# Streamlit server port (optional)
5555
# Port on which the Streamlit application will run

schemas/base/topology.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ generics:
6060
- name: name
6161
kind: Text
6262
order_weight: 1
63-
description: "3 letter deployment code"
64-
parameters:
65-
min_length: 3
66-
max_length: 5
63+
description: "DC Name"
6764
- name: description
6865
kind: Text
6966
order_weight: 2

tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ def restart_containers(context: Context, component: str = "") -> None:
441441

442442

443443
@task
444-
def restart(context: Context) -> None:
445-
"""Complete restart: destroy, start, bootstrap, and load demo DC."""
444+
def init(context: Context) -> None:
445+
"""Initialize Infrahub: destroy, start, bootstrap, and load demo DC."""
446446
console.print()
447447
console.print(
448448
Panel(
449-
"[bold magenta]Complete Infrahub Restart[/bold magenta]\n"
449+
"[bold magenta]Initialize Infrahub[/bold magenta]\n"
450450
"[dim]This will destroy all data and rebuild from scratch[/dim]\n\n"
451451
"[yellow]Steps:[/yellow]\n"
452452
" 1. Destroy all containers and volumes\n"
@@ -481,7 +481,7 @@ def restart(context: Context) -> None:
481481
console.print()
482482
console.print(
483483
Panel(
484-
"[bold green]✓ Complete restart finished successfully[/bold green]\n\n"
484+
"[bold green]✓ Infrahub initialized successfully[/bold green]\n\n"
485485
"[cyan]Infrahub UI:[/cyan] http://localhost:8000\n"
486486
+ (
487487
"[cyan]Service Catalog:[/cyan] http://localhost:8501\n"

0 commit comments

Comments
 (0)