onctl
onctl copied to clipboard
ConfigFile for onctl create command. ex. onctl create -f env1.yaml
Sample file below.
# VM Configuration Example
# Save this as vm-config.yaml and use with: onctl create -f vm-config.yaml
# Basic VM Configuration
name: "test-vm" # VM name (optional, will generate if not provided)
ssh_port: 22 # SSH port (default: 22)
# SSH Key Configuration
public_key_file: "~/.ssh/id_ed25519.pub" # Path to public key file (default: ~/.ssh/id_rsa.pub)
# Cloud-init Configuration
# cloud_init_file: "cloud-init/default.yaml" # Path to cloud-init configuration file
# Domain Configuration (optional)
# domain: "my-vm.example.com" # Request a domain name for the VM
# Scripts and Files
apply_files: # List of scripts to run after VM creation
- "docker/docker.sh"
# - "nginx/install.sh"
# upload_files: # Files to upload to VM
# - "local/file.txt:/remote/path/file.txt"
# - "config/app.conf:/etc/app.conf"
# download_files: # Files to download from VM
# - "/remote/logs/app.log:local/app.log"
# - "/var/log/system.log"
# Environment Variables
# dot_env_file: ".env" # Path to .env file for environment variables
# variables: # Additional environment variables
# - "APP_ENV=production"
# - "DEBUG=true"