01
Structure the infra repository
Create separate folders for reusable modules and production environments.
Use Bullionet as an infrastructure execution layer for your CI/CD automation, from API-driven provisioning to controlled rollout.
Start from a practical baseline: repo structure, CI workflow, and post-deploy verification.
01
Create separate folders for reusable modules and production environments.
02
Add BULLI_TOKEN to CI secrets and protect production with required approval before any action.
03
Run plan on pull requests, then apply only on main after review.
04
Run a verification script to confirm inventory, host state, and rollout health.
Recommended variables and safeguards
•CI secret: BULLI_TOKEN scoped to provisioning actions only.
•Protected environment: production approval required before apply.
•Post-deploy verification script required before marking pipeline green.
Treat infrastructure changes like product code: branch, PR, automated plan, human approval, and protected apply.
Concrete workflow example
Lean project structure
Engineers ship infra changes through pull requests instead of waiting on fragmented handoffs.
Plan runs before merge, apply is gated, and rollback targets stay explicit at every rollout step.
Each change has a branch, commit, reviewer, and execution trace for compliance and post-incident analysis.
Each procedure keeps scope small, validation explicit, and rollback possible.
01
You need to ship an API release without risking immediate production impact.
•Provision green nodes with release tags in the same location as current blue nodes.
•Run health checks (boot, SSH, app endpoint) and review results in CI.
•Approve cutover only when checks pass and rollback target remains available.
Expected result: release deployed with controlled cutover and clear rollback path.
02
One worker node is unstable and must be replaced quickly without improvisation.
•Read source node metadata (plan, location, tags) and prepare replacement profile.
•Provision replacement node and validate readiness before traffic changes.
•Drain old node, switch traffic, and record incident summary for audit.
Expected result: degraded node replaced with minimal service disruption.
03
You only need batch capacity during office hours and want predictable cost.
•Target only nodes tagged for weekday scheduling in approved project scope.
•Apply power-on at start time and power-off at end time with state checks.
•Review daily capacity and cost deltas, then flag anomalies for human review.
Expected result: predictable batch availability with controlled spend.
Build repeatable environments and ship changes confidently across your infrastructure lifecycle.
Create and manage servers via REST API or bulli CLI for reproducible, scriptable environments.
Promote changes through environments with explicit, auditable workflow steps.
Integrate lifecycle actions in pipelines with machine-readable output.
Apply progressive deployment logic and keep production changes predictable.
Use these commands as building blocks in release pipelines and controlled changes.
bulli init
Initialize execution context
Set CLI context before pipeline actions.
source <(bulli env --output sh)
Inject environment variables
Load auth and project context for automation jobs.
bulli server list --output json
Validate inventory state
List servers and parse output in CI checks.
bulli server reboot --hostname edge-worker-03
Apply controlled reboot
Trigger planned restart operations in rollout windows.
bulli server reinstall --hostname edge-worker-03 --os ubuntu-24.04
Reinstall during recovery
Rebuild a node quickly from an OS baseline.
Use a simple but robust sequence that maps directly to daily DevOps operations.
Example provision sequence
Use a simple but robust sequence that maps directly to daily DevOps operations.
Use scoped access and operational checks to keep automation safe at scale.
Limit token permissions by environment and workflow purpose.
Keep deployment and operational changes auditable.
Automate aggressively while preserving clear operational boundaries.
Useful Links
Products
Solutions
Other