Skip to content

Commit 33247c1

Browse files
committed
remove script
1 parent 7bb1900 commit 33247c1

File tree

5 files changed

+31
-22
lines changed

5 files changed

+31
-22
lines changed

objects/security/04_security_address_groups.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ spec:
66
data:
77
- name: "web-servers"
88
description: "All web servers"
9-
ip_addresses: [["web-server-01"], ["web-server-02"]]
9+
ip_addresses:
10+
- ["web-server-01"]
11+
- ["web-server-02"]
1012

1113
- name: "database-servers"
1214
description: "All database servers"
@@ -34,4 +36,5 @@ spec:
3436

3537
- name: "internet"
3638
description: "Internet/external networks"
37-
prefixes: [["internet"]]
39+
prefixes:
40+
- ["internet"]

objects/security/06_security_service_groups.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ spec:
66
data:
77
- name: "web-services"
88
description: "Web-related services"
9-
services: [["https"]]
9+
services:
10+
- ["https"]
1011

1112
- name: "mail-services"
1213
description: "Email-related services"

objects/security/11_security_policies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ spec:
66
data:
77
- name: "corporate-firewall-policy"
88
description: "Main corporate firewall security policy"
9-
firewalls: [["corp-firewall"]]
9+
firewalls:
10+
- ["corp-firewall"]
1011

1112
- name: "guest-network-policy"
1213
description: "Security policy for guest network access"

objects/security/12_security_policy_rules.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ spec:
1111
policy: "corporate-firewall-policy"
1212
source_zone: "internal"
1313
destination_zone: "dmz"
14-
source_addresses: [["internet"]]
15-
destination_addresses: [["web-servers"]]
16-
services: [["web-services"]]
17-
applications: [["web-browsing"]]
14+
source_addresses:
15+
- ["internet"]
16+
destination_addresses:
17+
- ["web-servers"]
18+
services:
19+
- ["web-services"]
20+
applications:
21+
- ["web-browsing"]
1822

1923
- index: 200
2024
name: "allow-database-access"

scripts/bootstrap.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -177,42 +177,42 @@ def main(branch: str = "main") -> int:
177177

178178
steps = [
179179
{
180-
"step": "[1/8]",
180+
"step": "[1/7]",
181181
"description": "Loading schemas",
182182
"command": f"uv run infrahubctl schema load schemas --branch {branch}",
183183
"color": "blue",
184184
"icon": "📋",
185185
},
186186
{
187-
"step": "[2/8]",
187+
"step": "[2/7]",
188188
"description": "Loading menu definitions",
189189
"command": f"uv run infrahubctl menu load menus/menu-full.yml --branch {branch}",
190190
"color": "magenta",
191191
"icon": "📑",
192192
},
193193
{
194-
"step": "[3/8]",
194+
"step": "[3/7]",
195195
"description": "Loading bootstrap data (locations, platforms, roles, etc.)",
196196
"command": f"uv run infrahubctl object load objects/bootstrap/ --branch {branch}",
197197
"color": "yellow",
198198
"icon": "📦",
199199
},
200200
{
201-
"step": "[4/8]",
201+
"step": "[4/7]",
202202
"description": "Loading security data (zones, policies, rules)",
203203
"command": f"uv run infrahubctl object load objects/security/ --branch {branch}",
204204
"color": "green",
205205
"icon": "🔒",
206206
},
207+
# {
208+
# "step": "[5/7]",
209+
# "description": "Populating security relationships",
210+
# "command": "uv run python scripts/populate_security_relationships.py",
211+
# "color": "cyan",
212+
# "icon": "🔗",
213+
# },
207214
{
208-
"step": "[5/8]",
209-
"description": "Populating security relationships",
210-
"command": "uv run python scripts/populate_security_relationships.py",
211-
"color": "cyan",
212-
"icon": "🔗",
213-
},
214-
{
215-
"step": "[6/8]",
215+
"step": "[5/7]",
216216
"description": "Creating user accounts and roles",
217217
"command": "uv run python scripts/create_users_roles.py",
218218
"color": "bright_blue",
@@ -238,7 +238,7 @@ def main(branch: str = "main") -> int:
238238

239239
# Add repository (may already exist)
240240
console.print(
241-
"\n[bold bright_magenta on black][7/8][/bold bright_magenta on black] 📚 [bold white]Adding demo repository[/bold white]"
241+
"\n[bold bright_magenta on black][6/7][/bold bright_magenta on black] 📚 [bold white]Adding demo repository[/bold white]"
242242
)
243243
result = subprocess.run(
244244
"uv run infrahubctl repository add DEMO https://github.com/opsmill/infrahub-bundle-dc.git --ref main --read-only --ref main",
@@ -274,7 +274,7 @@ def main(branch: str = "main") -> int:
274274
console.print(Rule(style="dim bright_yellow"))
275275

276276
# Load event actions (optional - may fail if repository not fully synced)
277-
console.print("\n[bold bright_cyan on black][8/8][/bold bright_cyan on black] ⚡ [bold white]Loading event actions (optional)[/bold white]")
277+
console.print("\n[bold bright_cyan on black][7/7][/bold bright_cyan on black] ⚡ [bold white]Loading event actions (optional)[/bold white]")
278278
events_loaded = run_command(
279279
f"uv run infrahubctl object load objects/events/ --branch {branch}",
280280
"Event actions loading",

0 commit comments

Comments
 (0)