Skip to content

Just some scripts for playing around with Proxmox

License

Notifications You must be signed in to change notification settings

bnnanet/proxmox-sh

 
 

Repository files navigation

Just some scripts for playing around with Proxmox

  • .env

  • provision-lxc

    USAGE
        provision-lxc <hostname> [ssh-pubkey-or-file-or-url]
    
    EXAMPLE
        provision-lxc demo.example.com 'https://example.com/authorized_keys'
    • proxmox-create

      USAGE
          proxmox-create <cidr> <hostname> [ssh-pubkey]
      
      EXAMPLE
          proxmox-create 192.168.0.100/24 example.com 'ssh-rsa AAAAB...xxxx me@example.local'
    • caddy-add

      USAGE
          caddy-add ct<id> <domain> <internal-ip> [proxy-port=80] [https]
      
      EXAMPLES
          caddy-add  pve1   pve1.example.com 192.168.0.103 8006 https
          caddy-add ct103 lxc103.example.com 192.168.0.103 80
          caddy-add ct103 lxc103.example.com 192.168.0.103
      
      IMPORTANT
          BAD:  caddy run --config ./caddy.json # Will NOT persist!
          GOOD: caddy run --resume

How to Get an API Token

Datacenter => Permissions => API Tokens

Note: Privilege Separation means that the API token must have its own permissions - it will not inherit from its owner.

How to Grant an API Token Permissions

Datacenter => Permissions

Visually, the Permissions link looks like a folder for a menu, but it's actually its own page.

About

Just some scripts for playing around with Proxmox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%