Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max@x230 ~/project/infra (master) $ docker run --rm -v $PWD:$PWD -v ${HOME}/.docker/config.json:/root/.docker/config.json -v /var/run/docker.sock:/var/run/docker.sock --workdir $PWD gitlab/gitlab-runner exec docker terraform
- Runtime platform arch=amd64 os=linux pid=6 revision=ece86343 version=13.5.0
- Running with gitlab-runner 13.5.0 (ece86343)
- Preparing the "docker" executor
- Using Docker executor with image hashicorp/terraform:0.13.5 ...
- Pulling docker image hashicorp/terraform:0.13.5 ...
- Using docker image sha256:7ea6097f7359410e769ab1596746cae33ee461c91d27e2806ba87b48b829655f for hashicorp/terraform:0.13.5 with digest hashicorp/terraform@sha256:943b1d56d978e713315e1058e1e1297eafdf166c95bb7bbe2712699b0a664f48 ...
- Preparing environment
- Running on runner--project-0-concurrent-0 via 2189d549e24e...
- Getting source from Git repository
- Fetching changes...
- Initialized empty Git repository in /builds/project-0/.git/
- Created fresh repository.
- Checking out bc802241 as master...
- Skipping Git submodules setup
- Restoring cache
- Skipping cache extraction due to empty cache key
- Executing "step_script" stage of the job script
- $ terraform init
- Initializing the backend...
- Successfully configured the backend "s3"! Terraform will automatically
- use this backend unless the backend configuration changes.
- Initializing provider plugins...
- - Finding telmate/proxmox versions matching ">= 2.0.0"...
- - Installing telmate/proxmox v2.6.5...
- - Installed telmate/proxmox v2.6.5 (self-signed, key ID A9EBBE091B35AFCE)
- Partner and community providers are signed by their developers.
- If you'd like to know more about provider signing, you can read about it here:
- https://www.terraform.io/docs/plugins/signing.html
- Terraform has been successfully initialized!
- You may now begin working with Terraform. Try running "terraform plan" to see
- any changes that are required for your infrastructure. All Terraform commands
- should now work.
- If you ever set or change modules or backend configuration for Terraform,
- rerun this command to reinitialize your working directory. If you forget, other
- commands will detect it and remind you to do so if necessary.
- $ terraform providers
- Providers required by configuration:
- .
- └── provider[registry.terraform.io/telmate/proxmox] >= 2.0.0
- $ apk add --update curl jq
- fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
- fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
- (1/3) Installing curl (7.69.1-r3)
- (2/3) Installing oniguruma (6.9.5-r2)
- (3/3) Installing jq (1.6-r1)
- Executing busybox-1.31.1-r16.trigger
- OK: 29 MiB in 32 packages
- $ alias convert_report="jq -r '([.resource_changes[].change.actions?]|flatten)|{\"create\":(map(select(.==\"create\"))|length),\"update\":(map(select(.==\"update\"))|length),\"delete\":(map(select(.==\"delete\"))|length)}'"
- $ terraform plan -out=$PLAN
- Acquiring state lock. This may take a few moments...
- Refreshing Terraform state in-memory prior to plan...
- The refreshed state will be used to calculate this plan, but will not be
- persisted to local or remote state storage.
- ------------------------------------------------------------------------
- An execution plan has been generated and is shown below.
- Resource actions are indicated with the following symbols:
- + create
- Terraform will perform the following actions:
- # proxmox_vm_qemu.gate[0] will be created
- + resource "proxmox_vm_qemu" "gate" {
- + agent = 0
- + balloon = 0
- + bios = "seabios"
- + boot = "cdn"
- + bootdisk = "scsi0"
- + cipassword = (sensitive value)
- + ciuser = "test"
- + clone = "debian-10-cloudinit"
- + clone_wait = 15
- + cores = 4
- + cpu = "host"
- + define_connection_info = true
- + force_create = false
- + full_clone = true
- + hotplug = "network,disk,usb"
- + id = (known after apply)
- + ipconfig0 = "ip=dhcp"
- + kvm = true
- + memory = 4096
- + name = "gate"
- + nameserver = (known after apply)
- + numa = false
- + onboot = true
- + os_type = "cloud-init"
- + preprovision = true
- + scsihw = "virtio-scsi-pci"
- + searchdomain = (known after apply)
- + sockets = 1
- + ssh_host = (known after apply)
- + ssh_port = (known after apply)
- + sshkeys = <<~EOT
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCn1bAv00w8u849NSsHWWnQ+C1D1Dm1v9MLmJMXpa+a/BxJvGyofdsltoE6G+B66IMcSPI7fgwwu2Qy7Y4VR/mLK3Om7jma90F/+l505bMKdG6SXduyluW/S47wREBtJoeHlq4wcDUfQ2EYvWi7sLnn6Nb7fAm9krA43VKg2jjmS9TKxU8lLenntZxLt4JaEUKKt8Z4FC6EqmuTW9Gqn44BvfD5SBA6/dQspufFRZxeY1VhWfcfh0NlF5Xk2jKuMuLupNLNipNEHRg+3IZSt0mwFXlHTGuaSIAmsdaC+aAPbV2ly8++w+vBEa03CpcxVKhhUar4j1OT2BuFb/368fHj max@x230
- EOT
- + target_node = "node-0"
- + unused_disk = (known after apply)
- + vcpus = 0
- + vlan = -1
- + vmid = (known after apply)
- + disk {
- + backup = false
- + cache = "none"
- + file = (known after apply)
- + format = (known after apply)
- + iothread = true
- + mbps = 0
- + mbps_rd = 0
- + mbps_rd_max = 0
- + mbps_wr = 0
- + mbps_wr_max = 0
- + media = (known after apply)
- + replicate = false
- + size = "200G"
- + slot = (known after apply)
- + storage = "local-lvm"
- + type = "scsi"
- + volume = (known after apply)
- }
- + network {
- + bridge = "vmbr0"
- + firewall = false
- + link_down = false
- + macaddr = (known after apply)
- + model = "virtio"
- + queues = (known after apply)
- + rate = (known after apply)
- + tag = -1
- }
- }
- Plan: 1 to add, 0 to change, 0 to destroy.
- ------------------------------------------------------------------------
- This plan was saved to: plan.tfplan
- To perform exactly these actions, run the following command to apply:
- terraform apply "plan.tfplan"
- Releasing state lock. This may take a few moments...
- $ terraform show --json $PLAN | convert_report > $JSON_PLAN_FILE
- $ terraform apply -input=false $PLAN
- Acquiring state lock. This may take a few moments...
- proxmox_vm_qemu.gate[0]: Creating...
- proxmox_vm_qemu.gate[0]: Still creating... [10s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [20s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [30s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [40s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [50s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [1m0s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [1m10s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [1m20s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [1m30s elapsed]
- proxmox_vm_qemu.gate[0]: Still creating... [1m40s elapsed]
- proxmox_vm_qemu.gate[0]: Creation complete after 1m43s [id=node-0/qemu/100]
- Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
- Releasing state lock. This may take a few moments...
- Outputs:
- test = [
- {
- "agent" = 0
- "balloon" = 0
- "bios" = "seabios"
- "boot" = "cdn"
- "bootdisk" = "scsi0"
- "bridge" = ""
- "cicustom" = ""
- "cipassword" = "test"
- "ciuser" = "test"
- "clone" = "debian-10-cloudinit"
- "clone_wait" = 15
- "cores" = 4
- "cpu" = "host"
- "define_connection_info" = true
- "desc" = ""
- "disk" = [
- {
- "backup" = false
- "cache" = "none"
- "discard" = ""
- "file" = ""
- "format" = ""
- "iothread" = true
- "mbps" = 0
- "mbps_rd" = 0
- "mbps_rd_max" = 0
- "mbps_wr" = 0
- "mbps_wr_max" = 0
- "media" = ""
- "replicate" = false
- "size" = "200G"
- "slot" = 0
- "ssd" = false
- "storage" = "local-lvm"
- "type" = "scsi"
- "volume" = ""
- },
- ]
- "disk_gb" = 0
- "force_create" = false
- "full_clone" = true
- "hastate" = ""
- "hotplug" = "network,disk,usb"
- "id" = "node-0/qemu/100"
- "ipconfig0" = "ip=dhcp"
- "ipconfig1" = ""
- "ipconfig2" = ""
- "kvm" = true
- "mac" = ""
- "memory" = 4096
- "name" = "gate"
- "nameserver" = ""
- "network" = [
- {
- "bridge" = "vmbr0"
- "firewall" = false
- "link_down" = false
- "macaddr" = "82:7E:79:44:91:78"
- "model" = "virtio"
- "queues" = 0
- "rate" = 0
- "tag" = -1
- },
- ]
- "nic" = ""
- "numa" = false
- "onboot" = true
- "os_type" = "cloud-init"
- "pool" = ""
- "preprovision" = true
- "qemu_os" = "other"
- "scsihw" = "virtio-scsi-pci"
- "searchdomain" = ""
- "serial" = []
- "sockets" = 1
- "ssh_host" = ""
- "ssh_port" = "22"
- "sshkeys" = " ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCn1bAv00w8u849NSsHWWnQ+C1D1Dm1v9MLmJMXpa+a/BxJvGyofdsltoE6G+B66IMcSPI7fgwwu2Qy7Y4VR/mLK3Om7jma90F/+l505bMKdG6SXduyluW/S47wREBtJoeHlq4wcDUfQ2EYvWi7sLnn6Nb7fAm9krA43VKg2jjmS9TKxU8lLenntZxLt4JaEUKKt8Z4FC6EqmuTW9Gqn44BvfD5SBA6/dQspufFRZxeY1VhWfcfh0NlF5Xk2jKuMuLupNLNipNEHRg+3IZSt0mwFXlHTGuaSIAmsdaC+aAPbV2ly8++w+vBEa03CpcxVKhhUar4j1OT2BuFb/368fHj max@x230\n\n"
- "storage" = ""
- "storage_type" = ""
- "target_node" = "node-0"
- "unused_disk" = []
- "vcpus" = 0
- "vga" = []
- "vlan" = -1
- },
- ]
- Saving cache for successful job
- Skipping cache archiving due to empty cache key
- Cleaning up file based variables
- Job succeeded
Advertisement
Add Comment
Please, Sign In to add comment