forked from fediversity/fediversity
mv comment
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
72ad66edf8
commit
87ceb8a081
3 changed files with 4 additions and 6 deletions
|
|
@ -172,9 +172,10 @@ in
|
|||
|
||||
cert = pve.succeed("cat /etc/pve/pve-root-ca.pem").strip()
|
||||
|
||||
# set up proxmox
|
||||
pve.succeed("pvesh create /pools --poolid Fediversity")
|
||||
|
||||
# allow upload of `import` (template) files
|
||||
pve.succeed("""
|
||||
pvesh create /pools --poolid Fediversity
|
||||
pvesh set /storage/local --content "vztmpl,rootdir,backup,snippets,import,iso,images" 1>/dev/null
|
||||
""")
|
||||
|
||||
|
|
|
|||
|
|
@ -42,9 +42,6 @@ resource "proxmox_virtual_environment_file" "upload" {
|
|||
data.external.hash,
|
||||
]
|
||||
content_type = "import"
|
||||
# https://192.168.51.81:8006/#v1:0:=storage%2Fnode051%2Flocal:4::=contentIso:::::
|
||||
# PVE -> Datacenter -> Storage -> local -> Edit -> General -> Content -> check Import + Disk Images -> OK
|
||||
# that UI action also adds it in `/etc/pve/storage.cfg`
|
||||
datastore_id = var.image_datastore_id
|
||||
node_name = var.node_name
|
||||
overwrite = true
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ resource "null_resource" "await_ssh" {
|
|||
proxmox_virtual_environment_vm.nix_vm
|
||||
]
|
||||
provisioner "local-exec" {
|
||||
command = "env username='root' host='${proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0]}' key_file=${var.key_file} ssh_opts='${var.ssh_opts}' bash ./await-ssh.sh"
|
||||
command = "env username='root' host='${proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0]}' key_file='${var.key_file}' ssh_opts='${var.ssh_opts}' bash ./await-ssh.sh"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue