Code Monkey home page Code Monkey logo

hashicorp / packer-plugin-puppet Goto Github PK

View Code? Open in Web Editor NEW
2.0 10.0 5.0 656 KB

This Packer provisioner has been archived due to it no longer being maintained. Users are encouraged to use the shell or shell-local provisioner to run the provisioning tools made available by this plugin. If interested in maintaining this plugin please reach out to us at [email protected].

Home Page: https://www.packer.io/docs/provisioners/puppet/puppet-masterless

License: Mozilla Public License 2.0

Makefile 2.12% Go 95.86% Puppet 0.24% HCL 1.79%
packer-plugin packer puppet puppet-masterless puppet-server

packer-plugin-puppet's Introduction

Packer Plugin Puppet

The Puppet multi-component plugin can be used with HashiCorp Packer to create custom images. For the full list of available features for this plugin see docs.

Installation

Using pre-built releases

Using the packer init command

Starting from version 1.7, Packer supports a new packer init command allowing automatic installation of Packer plugins. Read the Packer documentation for more information.

To install this plugin, copy and paste this code into your Packer configuration . Then, run packer init.

packer {
  required_plugins {
    puppet = {
      version = ">= 1.0.0"
      source  = "github.com/hashicorp/puppet"
    }
  }
}

Manual installation

You can find pre-built binary releases of the plugin here. Once you have downloaded the latest archive corresponding to your target OS, uncompress it to retrieve the plugin binary file corresponding to your platform. To install the plugin, please follow the Packer documentation on installing a plugin.

From Sources

If you prefer to build the plugin from sources, clone the GitHub repository locally and run the command go build from the root directory. Upon successful compilation, a packer-plugin-puppet plugin binary file can be found in the root directory. To install the compiled plugin, please follow the official Packer documentation on installing a plugin.

Configuration

For more information on how to configure the plugin, please read the documentation located in the docs/ directory.

Contributing

  • If you think you've found a bug in the code or you have a question regarding the usage of this software, please reach out to us by opening an issue in this GitHub repository.
  • Contributions to this project are welcome: if you want to add a feature or a fix a bug, please do so by opening a Pull Request in this GitHub repository. In case of feature contribution, we kindly ask you to open an issue to discuss it beforehand.

packer-plugin-puppet's People

Contributors

azr avatar bodgit avatar c22 avatar cbednarski avatar colinhebert avatar danham avatar dependabot[bot] avatar dragon788 avatar jescalan avatar jonathantneal avatar justinclayton avatar keyan avatar lfarnell avatar mexisme avatar mitchellh avatar modrake avatar mwhooker avatar neekipatel avatar nywilken avatar rasa avatar rican7 avatar rickard-von-essen avatar seanmalloy avatar sethvargo avatar sudharsh avatar swampdragons avatar sylviamoss avatar tb3088 avatar williamb1024 avatar zchsh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packer-plugin-puppet's Issues

Puppet-Server provisoner errors out in Azure linux builds

This issue was originally opened by @avseelam as hashicorp/packer#8980. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

Puppet-Server provisioner exits out with error due to the shell disconnects on Azure builds. I have tried with almost all flavours of linux/unix

###Steps to reproduce this issue

{
  "builders": [{
    "type": "azure-arm",
    "client_id": "{{user `client_id`}}",
    "client_secret": "{{user `client_secret`}}",

    "subscription_id": "{{user `subscription_id`}}",
    "os_type": "Linux",
    "image_publisher": "{{user `image_publisher`}}",
    "image_offer": "{{user `image_offer`}}",
    "image_sku": "{{user `image_sku`}}",
    "vm_size": "Standard_B2s",

    "communicator": "ssh",
    "ssh_username": "packer",


    "build_resource_group_name": "{{user `resource_group_name` }}",
    "virtual_network_name": "{{user `virtual_network_name`}}",
    "virtual_network_resource_group_name": "{{user `virtual_network_resource_group_name`}}",
    "virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",

    "managed_image_resource_group_name": "{{user `resource_group_name` }}",
    "managed_image_name": "{{user `managed_image_name`}}"
  }],
  "Provisioners": [
    {
      "type": "shell",
       "inline": [
                "sudo echo 'ClientAliveInterval 300' | sudo tee -a /etc/ssh/sshd_config",
                "sudo echo 'ClientAliveCountMax 0' | sudo tee -a /etc/ssh/sshd_config",
                "sudo sed -i'' 's/TCPKeepAlive yes/TCPKeepAlive no/' /etc/ssh/sshd_config",
                "sudo systemctl reload sshd"
            ]
    },
    {
      "type": "shell",
      "expect_disconnect": true,
      "script": "{{user `puppet_install_file`}}",
      "execute_command":"{{ .Vars }} sudo -S -E sh '{{ .Path }}'"	
    
    },
    {
      "type": "puppet-server",
      "extra_arguments": "--test",
      "guest_os_type": "unix",
      "puppet_bin_dir": "/opt/puppetlabs/bin",
      "facter": {
        "serverrole": "packer_template"
      }
    }
  ]
}

Packer version

1.5.5

Simplified Packer Buildfile

{
  "builders": [{
    "type": "azure-arm",
    "client_id": "{{user `client_id`}}",
    "client_secret": "{{user `client_secret`}}",

    "subscription_id": "{{user `subscription_id`}}",
    "os_type": "Linux",
    "image_publisher": "{{user `image_publisher`}}",
    "image_offer": "{{user `image_offer`}}",
    "image_sku": "{{user `image_sku`}}",
    "vm_size": "Standard_B2s",

    "communicator": "ssh",
    "ssh_username": "packer",


    "build_resource_group_name": "{{user `resource_group_name` }}",
    "virtual_network_name": "{{user `virtual_network_name`}}",
    "virtual_network_resource_group_name": "{{user `virtual_network_resource_group_name`}}",
    "virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",

    "managed_image_resource_group_name": "{{user `resource_group_name` }}",
    "managed_image_name": "{{user `managed_image_name`}}"
  }],
  "Provisioners": [
    {
      "type": "shell",
       "inline": [
                "sudo echo 'ClientAliveInterval 300' | sudo tee -a /etc/ssh/sshd_config",
                "sudo echo 'ClientAliveCountMax 0' | sudo tee -a /etc/ssh/sshd_config",
                "sudo sed -i'' 's/TCPKeepAlive yes/TCPKeepAlive no/' /etc/ssh/sshd_config",
                "sudo systemctl reload sshd"
            ]
    },
    {
      "type": "shell",
      "expect_disconnect": true,
      "script": "{{user `puppet_install_file`}}",
      "execute_command":"{{ .Vars }} sudo -S -E sh '{{ .Path }}'"	
    
    },
    {
      "type": "puppet-server",
      "extra_arguments": "--test",
      "guest_os_type": "unix",
      "puppet_bin_dir": "/opt/puppetlabs/bin",
      "facter": {
        "serverrole": "packer_template"
      }
    }
  ]
}

Operating system and Environment details

OS, Architecture, and any other information you can provide about the
environment.

Log Fragments and crash.log files

2020-04-01T13:37:39.2811871Z ==> azure-arm:  -> PublicIPAddressName : 'pkrippzv1tjdl8g'
2020-04-01T13:37:39.2812422Z ==> azure-arm:  -> NicName             : 'pkrnipzv1tjdl8g'
2020-04-01T13:37:39.2814530Z ==> azure-arm:  -> Network Connection  : 'PrivateEndpoint'
020-04-01T13:37:39.3971310Z 2020/04/01 13:37:39 packer.exe plugin: Azure response body="{\r\n  \"name\": \"pkrnipzv1tjdl8g\",\r\n  \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\",\r\n  \"etag\": \"W/\\\"bea92b29-343f-489f-be76-8efbac18e324\\\"\",\r\n  \"location\": \"eastus\",\r\n  \"tags\": {\r\n    \"APPID\": \"DCS-vro\",\r\n    \"BILLINGCODE\": \"XXXXX\",\r\n    \"BUSINESSOWNER\": \"XXXXX\",\r\n    \"CSCLASS\": \"CON\",\r\n    \"CSQUAL\": \"Intellectual Property\",\r\n    \"CSTYPE\": \"XXXXX\",\r\n    \"ENVIRONMENT\": \"NPD\",\r\n    \"GROUPCONTACT\": \"INF-Compute Services\",\r\n    \"PRIMARYCONTACT\": \"XXXXX.com\",\r\n    \"SECONDCONTACT\": \"XXXXX.com\"\r\n  },\r\n  \"properties\": {\r\n    \"provisioningState\": \"Succeeded\",\r\n    \"resourceGuid\": \"89bd458d-35f1-400c-99d7-9729291b9d0b\",\r\n    \"ipConfigurations\": [\r\n      {\r\n        \"name\": \"ipconfig\",\r\n        \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g/ipConfigurations/ipconfig\",\r\n        \"etag\": \"W/\\\"bea92b29-343f-489f-be76-8efbac18e324\\\"\",\r\n        \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n        \"properties\": {\r\n          \"provisioningState\": \"Succeeded\",\r\n          \"privateIPAddress\": \"XXXXX\",\r\n          \"privateIPAllocationMethod\": \"Dynamic\",\r\n          \"subnet\": {\r\n            \"id\": \"/subscriptions/***/resourceGroups/IT_US_MGMT_PREPROD_RG_Network/providers/Microsoft.Network/virtualNetworks/IT_US_MGMT_PREPROD_Virtual_Network/subnets/IT_US_MGMT_PROD_East\"\r\n          },\r\n          \"primary\": true,\r\n          \"privateIPAddressVersion\": \"IPv4\"\r\n        }\r\n      }\r\n    ],\r\n    \"dnsSettings\": {\r\n      \"dnsServers\": [],\r\n      \"appliedDnsServers\": [],\r\n      \"internalDomainNameSuffix\": \"0pod3xzpg12uzn1yqf1o4fba2g.bx.internal.cloudapp.net\"\r\n    },\r\n    \"macAddress\": \"00-0D-3A-8B-B4-18\",\r\n    \"enableAcceleratedNetworking\": false,\r\n    \"enableIPForwarding\": false,\r\n    \"primary\": true,\r\n    \"virtualMachine\": {\r\n      \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\"\r\n    }\r\n  },\r\n  \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g?api-version=2018-01-01" x-ms-request-id="4e425251-31cf-4fc8-8279-30223b6dc76f"
2020-04-01T13:37:39.3985525Z 2020/04/01 13:37:39 packer.exe plugin: Azure response x-ms-request-id="4e425251-31cf-4fc8-8279-30223b6dc76f" body="{\r\n  \"name\": \"pkrnipzv1tjdl8g\",\r\n  \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\",\r\n  \"etag\": \"W/\\\"bea92b29-343f-489f-be76-8efbac18e324\\\"\",\r\n  \"location\": \"eastus\",\r\n  \"tags\": {\r\n    \"APPID\": \"DCS-vro\",\r\n    \"BILLINGCODE\": \"XXXXX\",\r\n    \"BUSINESSOWNER\": \"XXXXX\",\r\n    \"CSCLASS\": \"CON\",\r\n    \"CSQUAL\": \"Intellectual Property\",\r\n    \"CSTYPE\": \"XXXXX\",\r\n    \"ENVIRONMENT\": \"NPD\",\r\n    \"GROUPCONTACT\": \"INF-Compute Services\",\r\n    \"PRIMARYCONTACT\": \"XXXXX.com\",\r\n    \"SECONDCONTACT\": \"XXXXX.com\"\r\n  },\r\n  \"properties\": {\r\n    \"provisioningState\": \"Succeeded\",\r\n    \"resourceGuid\": \"89bd458d-35f1-400c-99d7-9729291b9d0b\",\r\n    \"ipConfigurations\": [\r\n      {\r\n        \"name\": \"ipconfig\",\r\n        \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g/ipConfigurations/ipconfig\",\r\n        \"etag\": \"W/\\\"bea92b29-343f-489f-be76-8efbac18e324\\\"\",\r\n        \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n        \"properties\": {\r\n          \"provisioningState\": \"Succeeded\",\r\n          \"privateIPAddress\": \"XXXXX\",\r\n          \"privateIPAllocationMethod\": \"Dynamic\",\r\n          \"subnet\": {\r\n            \"id\": \"/subscriptions/***/resourceGroups/IT_US_MGMT_PREPROD_RG_Network/providers/Microsoft.Network/virtualNetworks/IT_US_MGMT_PREPROD_Virtual_Network/subnets/IT_US_MGMT_PROD_East\"\r\n          },\r\n          \"primary\": true,\r\n          \"privateIPAddressVersion\": \"IPv4\"\r\n        }\r\n      }\r\n    ],\r\n    \"dnsSettings\": {\r\n      \"dnsServers\": [],\r\n      \"appliedDnsServers\": [],\r\n      \"internalDomainNameSuffix\": \"0pod3xzpg12uzn1yqf1o4fba2g.bx.internal.cloudapp.net\"\r\n    },\r\n    \"macAddress\": \"00-0D-3A-8B-B4-18\",\r\n    \"enableAcceleratedNetworking\": false,\r\n    \"enableIPForwarding\": false,\r\n    \"primary\": true,\r\n    \"virtualMachine\": {\r\n      \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\"\r\n    }\r\n  },\r\n  \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g?api-version=2018-01-01"
2020-04-01T13:37:39.3990775Z 2020/04/01 13:37:39 packer.exe plugin: [INFO] Waiting for SSH, up to timeout: 20m0s
2020-04-01T13:37:39.3991139Z ==> azure-arm:  -> IP Address          : 'XXXXX'
2020-04-01T13:37:39.3991446Z ==> azure-arm: Waiting for SSH to become available...
2020-04-01T13:37:39.4002651Z 2020/04/01 13:37:39 packer.exe plugin: [INFO] Attempting SSH connection to XXXXX:22...
2020-04-01T13:37:39.4003982Z 2020/04/01 13:37:39 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2020-04-01T13:37:39.4031323Z 2020/04/01 13:37:39 packer.exe plugin: [DEBUG] handshaking with SSH
2020-04-01T13:38:07.5443478Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] handshake complete!
2020-04-01T13:38:07.5443887Z ==> azure-arm: Connected to SSH!
2020-04-01T13:38:07.5448613Z 2020/04/01 13:38:07 packer.exe plugin: [INFO] no local agent socket, will not connect agent
2020-04-01T13:38:07.5454887Z 2020/04/01 13:38:07 packer.exe plugin: Running the provision hook
2020-04-01T13:38:07.5455795Z 2020/04/01 13:38:07 [INFO] (telemetry) Starting provisioner shell
2020-04-01T13:38:07.5574422Z 2020/04/01 13:38:07 packer.exe plugin: Opening C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\packer-shell638440687 for reading
2020-04-01T13:38:07.5575220Z ==> azure-arm: Provisioning with shell script: C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\packer-shell638440687
2020-04-01T13:38:07.5575967Z 2020/04/01 13:38:07 packer.exe plugin: [INFO] 253 bytes written for 'uploadData'
2020-04-01T13:38:07.5576542Z 2020/04/01 13:38:07 [INFO] 253 bytes written for 'uploadData'
2020-04-01T13:38:07.5576928Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:07.8255271Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] Starting remote scp process:  scp -vt /tmp
2020-04-01T13:38:07.8306448Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] Started SCP session, beginning transfers...
2020-04-01T13:38:07.8310380Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] Copying input data into temporary file so we can read the length
2020-04-01T13:38:07.8408411Z 2020/04/01 13:38:07 packer.exe plugin: [DEBUG] scp: Uploading script_992.sh: perms=C0644 size=253
2020-04-01T13:38:08.1595875Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] SCP session complete, closing stdin pipe.
2020-04-01T13:38:08.1596781Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Waiting for SSH session to complete.
2020-04-01T13:38:08.1615172Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] scp stderr (length 30): Sink: C0644 253 script_992.sh
2020-04-01T13:38:08.1626157Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.1640530Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_992.sh
2020-04-01T13:38:08.1821231Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.1824376Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.1824749Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.1828211Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.1839847Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.1856270Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: chmod +x /tmp/script_992.sh; PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='azure-arm'  /tmp/script_992.sh
2020-04-01T13:38:08.4011168Z     azure-arm: ClientAliveInterval 300
2020-04-01T13:38:08.4169069Z     azure-arm: ClientAliveCountMax 0
2020-04-01T13:38:08.5056986Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5059129Z 2020/04/01 13:38:08 [INFO] 46 bytes written for 'stdout'
2020-04-01T13:38:08.5059462Z 2020/04/01 13:38:08 [INFO] 0 bytes written for 'stderr'
2020-04-01T13:38:08.5067836Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5068337Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5073888Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 46 bytes written for 'stdout'
2020-04-01T13:38:08.5074852Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 0 bytes written for 'stderr'
2020-04-01T13:38:08.5077028Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5077512Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.5096054Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: rm -f /tmp/script_992.sh
2020-04-01T13:38:08.5286618Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5288110Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5288728Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5290077Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5296370Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.5310454Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: rm -f
2020-04-01T13:38:08.5489190Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5490996Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5492741Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.5494212Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.5502305Z 2020/04/01 13:38:08 [INFO] (telemetry) ending shell
2020-04-01T13:38:08.5502776Z 2020/04/01 13:38:08 [INFO] (telemetry) Starting provisioner shell
2020-04-01T13:38:08.5579229Z ==> azure-arm: Provisioning with shell script: C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\packer-shell402824187
2020-04-01T13:38:08.5584938Z 2020/04/01 13:38:08 packer.exe plugin: Opening C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\packer-shell402824187 for reading
2020-04-01T13:38:08.5586580Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 196 bytes written for 'uploadData'
2020-04-01T13:38:08.5590946Z 2020/04/01 13:38:08 [INFO] 196 bytes written for 'uploadData'
2020-04-01T13:38:08.5591707Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.5608898Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Starting remote scp process:  scp -vt /tmp
2020-04-01T13:38:08.5632866Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Started SCP session, beginning transfers...
2020-04-01T13:38:08.5637649Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Copying input data into temporary file so we can read the length
2020-04-01T13:38:08.5740399Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] scp: Uploading script_4844.sh: perms=C0644 size=196
2020-04-01T13:38:08.5825559Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] SCP session complete, closing stdin pipe.
2020-04-01T13:38:08.5826371Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Waiting for SSH session to complete.
2020-04-01T13:38:08.5843948Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] scp stderr (length 31): Sink: C0644 196 script_4844.sh
2020-04-01T13:38:08.5848465Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.5863824Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_4844.sh
2020-04-01T13:38:08.6036529Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6038869Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6039469Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6042310Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6050849Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.6065210Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: chmod +x /tmp/script_4844.sh; PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='azure-arm'  /tmp/script_4844.sh
2020-04-01T13:38:08.6535718Z     azure-arm: Agent Certname: pkrvmpzv1tjdl8g.us.XXXXX.com
2020-04-01T13:38:08.6544672Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6545650Z 2020/04/01 13:38:08 [INFO] 135 bytes written for 'stdout'
2020-04-01T13:38:08.6546936Z 2020/04/01 13:38:08 [INFO] 0 bytes written for 'stderr'
2020-04-01T13:38:08.6547282Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6547775Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6550130Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 135 bytes written for 'stdout'
2020-04-01T13:38:08.6550786Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 0 bytes written for 'stderr'
2020-04-01T13:38:08.6551312Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6552455Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.6569854Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: rm -f /tmp/script_4844.sh
2020-04-01T13:38:08.6755859Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6757383Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6757806Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6759788Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6763822Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.6779198Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: rm -f
2020-04-01T13:38:08.6950908Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6952649Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6953240Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.6956236Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.6958041Z 2020/04/01 13:38:08 [INFO] (telemetry) ending shell
2020-04-01T13:38:08.6958513Z 2020/04/01 13:38:08 [INFO] (telemetry) Starting provisioner shell
2020-04-01T13:38:08.6967177Z ==> azure-arm: Provisioning with shell script: C:\agent\_work\4\s\manifests\azure\..\..\scripts\puppet\install.sh
2020-04-01T13:38:08.6968722Z 2020/04/01 13:38:08 packer.exe plugin: Opening C:\agent\_work\4\s\manifests\azure\..\..\scripts\puppet\install.sh for reading
2020-04-01T13:38:08.6975325Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.6975902Z 2020/04/01 13:38:08 [INFO] 642 bytes written for 'uploadData'
2020-04-01T13:38:08.6976276Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] 642 bytes written for 'uploadData'
2020-04-01T13:38:08.6988271Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Starting remote scp process:  scp -vt /tmp
2020-04-01T13:38:08.7013223Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Started SCP session, beginning transfers...
2020-04-01T13:38:08.7017187Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Copying input data into temporary file so we can read the length
2020-04-01T13:38:08.7130140Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] scp: Uploading script_2190.sh: perms=C0644 size=642
2020-04-01T13:38:08.7247192Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] SCP session complete, closing stdin pipe.
2020-04-01T13:38:08.7247879Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Waiting for SSH session to complete.
2020-04-01T13:38:08.7266890Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] scp stderr (length 31): Sink: C0644 642 script_2190.sh
2020-04-01T13:38:08.7272538Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.7288890Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_2190.sh
2020-04-01T13:38:08.7462005Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.7462577Z 2020/04/01 13:38:08 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.7463433Z 2020/04/01 13:38:08 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:38:08.7464470Z 2020/04/01 13:38:08 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:38:08.7472721Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:38:08.7488275Z 2020/04/01 13:38:08 packer.exe plugin: [DEBUG] starting remote command: sudo -S env PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='azure-arm'  /tmp/script_2190.sh
2020-04-01T13:38:08.7885205Z ==> azure-arm:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2020-04-01T13:38:08.7888263Z ==> azure-arm:                                  Dload  Upload   Total   Spent    Left  Speed
2020-04-01T13:38:09.4235399Z ==> azure-arm: 100 25910  100 25910    0     0  40815      0 --:--:-- --:--:-- --:--:-- 40867
2020-04-01T13:38:11.8592554Z     azure-arm: Loaded plugins: fastestmirror, langpacks
2020-04-01T13:38:11.9456788Z     azure-arm: Cleaning repos: pe_repo
2020-04-01T13:38:11.9462399Z     azure-arm: Cleaning up everything
2020-04-01T13:38:11.9467679Z     azure-arm: Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
2020-04-01T13:38:11.9577726Z ==> azure-arm: + yum list installed puppet-agent
2020-04-01T13:38:12.0926926Z     azure-arm: Loaded plugins: fastestmirror, langpacks
2020-04-01T13:38:16.7267087Z ==> azure-arm: Error: No matching Packages to list
2020-04-01T13:38:16.7393007Z ==> azure-arm: + yum install -y puppet-agent-5.5.14
2020-04-01T13:38:16.8698439Z     azure-arm: Loaded plugins: fastestmirror, langpacks
2020-04-01T13:38:16.9132195Z     azure-arm: Determining fastest mirrors
2020-04-01T13:38:17.8804664Z ==> azure-arm: http://olcentgbl.trafficmanager.net/centos/7/os/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
2020-04-01T13:38:17.8820111Z ==> azure-arm: Trying other mirror.
2020-04-01T13:38:19.5992996Z ==> azure-arm: http://olcentgbl.trafficmanager.net/centos/7/os/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
2020-04-01T13:38:19.5996160Z ==> azure-arm: Trying other mirror.
2020-04-01T13:38:20.9525044Z     azure-arm: Resolving Dependencies
2020-04-01T13:38:20.9530366Z     azure-arm: --> Running transaction check
2020-04-01T13:38:20.9534964Z     azure-arm: ---> Package puppet-agent.x86_64 0:5.5.14-1.el7 will be installed
2020-04-01T13:38:22.4535812Z     azure-arm: --> Finished Dependency Resolution
2020-04-01T13:38:22.5642149Z     azure-arm:
2020-04-01T13:38:22.5647813Z     azure-arm: Dependencies Resolved
2020-04-01T13:38:22.5652073Z     azure-arm:
2020-04-01T13:38:22.5657467Z     azure-arm: ================================================================================
2020-04-01T13:38:22.5668732Z     azure-arm:  Package              Arch           Version              Repository       Size
2020-04-01T13:38:22.5674442Z     azure-arm: ================================================================================
2020-04-01T13:38:22.5674923Z     azure-arm: Installing:
2020-04-01T13:38:22.5685963Z     azure-arm:  puppet-agent         x86_64         5.5.14-1.el7         pe_repo          20 M
2020-04-01T13:38:22.5686535Z     azure-arm:
2020-04-01T13:38:22.5695773Z     azure-arm: Transaction Summary
2020-04-01T13:38:22.5699585Z     azure-arm: ================================================================================
2020-04-01T13:38:22.5703064Z     azure-arm: Install  1 Package
2020-04-01T13:38:22.5703385Z     azure-arm:
2020-04-01T13:38:22.5717115Z     azure-arm: Total download size: 20 M
2020-04-01T13:38:22.5727043Z     azure-arm: Installed size: 88 M
2020-04-01T13:38:22.5727410Z     azure-arm: Downloading packages:
2020-04-01T13:38:36.0095114Z ==> azure-arm: warning: /var/cache/yum/x86_64/7/pe_repo/packages/puppet-agent-5.5.14-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY
2020-04-01T13:38:36.0110082Z     azure-arm: Public key for puppet-agent-5.5.14-1.el7.x86_64.rpm is not installed
2020-04-01T13:38:36.0231116Z     azure-arm: Retrieving key from https://uspup-cm.us.XXXXX.com:8140/packages/GPG-KEY-puppetlabs
2020-04-01T13:38:36.2060460Z ==> azure-arm: Importing GPG key 0x4BD6EC30:
2020-04-01T13:38:36.2065135Z ==> azure-arm:  Userid     : "Puppet Labs Release Key (Puppet Labs Release Key) <[email protected]>"
2020-04-01T13:38:36.2069049Z ==> azure-arm:  Fingerprint: 47b3 20eb 4c7c 375a a9da e1a0 1054 b7a2 4bd6 ec30
2020-04-01T13:38:36.2073699Z ==> azure-arm:  From       : https://uspup-cm.us.XXXXX.com:8140/packages/GPG-KEY-puppetlabs
2020-04-01T13:38:37.5703275Z     azure-arm: Retrieving key from https://uspup-cm.us.XXXXX.com:8140/packages/GPG-KEY-puppet
2020-04-01T13:38:37.5975909Z ==> azure-arm: Importing GPG key 0xEF8D349F:
2020-04-01T13:38:37.5980916Z ==> azure-arm:  Userid     : "Puppet, Inc. Release Key (Puppet, Inc. Release Key) <[email protected]>"
2020-04-01T13:38:37.6000684Z ==> azure-arm:  Fingerprint: 6f6b 1550 9cf8 e59e 6e46 9f32 7f43 8280 ef8d 349f
2020-04-01T13:38:37.6001615Z ==> azure-arm:  From       : https://uspup-cm.us.XXXXX.com:8140/packages/GPG-KEY-puppet
2020-04-01T13:38:37.7415963Z     azure-arm: Running transaction check
2020-04-01T13:38:37.7495813Z     azure-arm: Running transaction test
2020-04-01T13:38:39.8561525Z     azure-arm: Transaction test succeeded
2020-04-01T13:38:39.8565639Z     azure-arm: Running transaction
2020-04-01T13:38:47.5197682Z     azure-arm:   Installing : puppet-agent-5.5.14-1.el7.x86_64                             1/1
2020-04-01T13:38:47.9553104Z     azure-arm:   Verifying  : puppet-agent-5.5.14-1.el7.x86_64                             1/1
2020-04-01T13:38:47.9557448Z     azure-arm:
2020-04-01T13:38:47.9561482Z     azure-arm: Installed:
2020-04-01T13:38:47.9569884Z     azure-arm:   puppet-agent.x86_64 0:5.5.14-1.el7
2020-04-01T13:38:47.9586510Z     azure-arm:
2020-04-01T13:38:47.9587043Z     azure-arm: Complete!
2020-04-01T13:38:47.9839625Z ==> azure-arm: + set +x
2020-04-01T13:38:56.7240587Z     azure-arm: service { 'puppet':
2020-04-01T13:38:56.7244538Z     azure-arm:   ensure => 'stopped',
2020-04-01T13:38:56.7262617Z     azure-arm: }
2020-04-01T13:38:57.6320483Z     azure-arm: Setting the puppet service to ensure=stopped and enable=true
2020-04-01T13:38:58.7812684Z     azure-arm: �[mNotice: /Service[puppet]/enable: enable changed 'false' to 'true'�[0m
2020-04-01T13:38:58.8246072Z     azure-arm: service { 'puppet':
2020-04-01T13:38:58.8251297Z     azure-arm:   ensure => 'stopped',
2020-04-01T13:38:58.8271534Z     azure-arm:   enable => 'true',
2020-04-01T13:38:58.8271772Z     azure-arm: }
2020-04-01T13:39:00.1299330Z     azure-arm: �[mNotice: /File[/usr/local/bin/facter]/ensure: created�[0m
2020-04-01T13:39:00.1563735Z     azure-arm: file { '/usr/local/bin/facter':
2020-04-01T13:39:00.1568475Z     azure-arm:   ensure   => 'link',
2020-04-01T13:39:00.1573521Z     azure-arm:   selrange => 's0',
2020-04-01T13:39:00.1577529Z     azure-arm:   selrole  => 'object_r',
2020-04-01T13:39:00.1581583Z     azure-arm:   seltype  => 'bin_t',
2020-04-01T13:39:00.1591844Z     azure-arm:   seluser  => 'system_u',
2020-04-01T13:39:00.1592160Z     azure-arm:   target   => '/opt/puppetlabs/bin/facter',
2020-04-01T13:39:00.1609799Z     azure-arm: }
2020-04-01T13:39:01.4994881Z     azure-arm: �[mNotice: /File[/usr/local/bin/puppet]/ensure: created�[0m
2020-04-01T13:39:01.5303169Z     azure-arm: file { '/usr/local/bin/puppet':
2020-04-01T13:39:01.5308125Z     azure-arm:   ensure   => 'link',
2020-04-01T13:39:01.5312722Z     azure-arm:   selrange => 's0',
2020-04-01T13:39:01.5316974Z     azure-arm:   selrole  => 'object_r',
2020-04-01T13:39:01.5321162Z     azure-arm:   seltype  => 'bin_t',
2020-04-01T13:39:01.5333264Z     azure-arm:   seluser  => 'system_u',
2020-04-01T13:39:01.5333592Z     azure-arm:   target   => '/opt/puppetlabs/bin/puppet',
2020-04-01T13:39:01.5348958Z     azure-arm: }
2020-04-01T13:39:02.8583544Z     azure-arm: �[mNotice: /File[/usr/local/bin/pe-man]/ensure: created�[0m
2020-04-01T13:39:02.8888961Z     azure-arm: file { '/usr/local/bin/pe-man':
2020-04-01T13:39:02.8893525Z     azure-arm:   ensure   => 'link',
2020-04-01T13:39:02.8896870Z     azure-arm:   selrange => 's0',
2020-04-01T13:39:02.8901890Z     azure-arm:   selrole  => 'object_r',
2020-04-01T13:39:02.8907501Z     azure-arm:   seltype  => 'bin_t',
2020-04-01T13:39:02.8921321Z     azure-arm:   seluser  => 'system_u',
2020-04-01T13:39:02.8922043Z     azure-arm:   target   => '/opt/puppetlabs/bin/pe-man',
2020-04-01T13:39:02.8937565Z     azure-arm: }
2020-04-01T13:39:04.1128369Z     azure-arm: �[mNotice: /File[/usr/local/bin/hiera]/ensure: created�[0m
2020-04-01T13:39:04.1616514Z     azure-arm: file { '/usr/local/bin/hiera':
2020-04-01T13:39:04.1627136Z     azure-arm:   ensure   => 'link',
2020-04-01T13:39:04.1627735Z     azure-arm:   selrange => 's0',
2020-04-01T13:39:04.1634155Z     azure-arm:   selrole  => 'object_r',
2020-04-01T13:39:04.1637274Z     azure-arm:   seltype  => 'bin_t',
2020-04-01T13:39:04.1637571Z     azure-arm:   seluser  => 'system_u',
2020-04-01T13:39:04.1641536Z     azure-arm:   target   => '/opt/puppetlabs/bin/hiera',
2020-04-01T13:39:04.1653016Z     azure-arm: }
2020-04-01T13:39:04.1756163Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.1756926Z 2020/04/01 13:39:04 [INFO] 2878 bytes written for 'stdout'
2020-04-01T13:39:04.1757808Z 2020/04/01 13:39:04 [INFO] 1405 bytes written for 'stderr'
2020-04-01T13:39:04.1758170Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.1758539Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.1760506Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 2878 bytes written for 'stdout'
2020-04-01T13:39:04.1761145Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 1405 bytes written for 'stderr'
2020-04-01T13:39:04.1761876Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.1766466Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:39:04.1781063Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] starting remote command: rm -f /tmp/script_2190.sh
2020-04-01T13:39:04.2006798Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2007395Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2007768Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2011418Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2015990Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:39:04.2030421Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] starting remote command: rm -f
2020-04-01T13:39:04.2242530Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2244016Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2244644Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2245572Z 2020/04/01 13:39:04 [INFO] (telemetry) ending shell
2020-04-01T13:39:04.2246098Z 2020/04/01 13:39:04 [INFO] (telemetry) Starting provisioner puppet-server
2020-04-01T13:39:04.2247327Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2254487Z ==> azure-arm: Provisioning with Puppet...
2020-04-01T13:39:04.2257950Z     azure-arm: Creating Puppet staging directory...
2020-04-01T13:39:04.2270194Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:39:04.2282908Z     azure-arm: Creating directory: /tmp/packer-puppet-server
2020-04-01T13:39:04.2283779Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] starting remote command: sudo mkdir -p '/tmp/packer-puppet-server'
2020-04-01T13:39:04.2638511Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2639350Z 2020/04/01 13:39:04 [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.2640713Z 2020/04/01 13:39:04 [INFO] 0 bytes written for 'stderr'
2020-04-01T13:39:04.2641858Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2642587Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.2644843Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.2645310Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 0 bytes written for 'stderr'
2020-04-01T13:39:04.2647251Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.2657348Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:39:04.2673129Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] starting remote command: sudo chmod 0777 '/tmp/packer-puppet-server'
2020-04-01T13:39:04.3008087Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.3009994Z 2020/04/01 13:39:04 [INFO] 0 bytes written for 'stderr'
2020-04-01T13:39:04.3010454Z 2020/04/01 13:39:04 [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.3011144Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.3011864Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2020-04-01T13:39:04.3013480Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.3013984Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 0 bytes written for 'stderr'
2020-04-01T13:39:04.3014996Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 0
2020-04-01T13:39:04.3018813Z     azure-arm: Running Puppet: cd /tmp/packer-puppet-server && FACTER_packer_build_name='azure-arm' FACTER_packer_builder_type='azure-arm' FACTER_XXXXX_serverrole='packer_template' sudo -E puppet agent --onetime --no-daemonize --detailed-exitcodes --test
2020-04-01T13:39:04.3026993Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] Opening new ssh session
2020-04-01T13:39:04.3042850Z 2020/04/01 13:39:04 packer.exe plugin: [DEBUG] starting remote command: cd /tmp/packer-puppet-server && FACTER_packer_build_name='azure-arm' FACTER_packer_builder_type='azure-arm' FACTER_serverrole='packer_template' sudo -E puppet agent --onetime --no-daemonize --detailed-exitcodes --test
2020-04-01T13:39:04.3339297Z 2020/04/01 13:39:04 [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.3339804Z 2020/04/01 13:39:04 [INFO] 32 bytes written for 'stderr'
2020-04-01T13:39:04.3342224Z 2020/04/01 13:39:04 packer.exe plugin: [ERROR] Remote command exited with '1': cd /tmp/packer-puppet-server && FACTER_packer_build_name='azure-arm' FACTER_packer_builder_type='azure-arm' FACTER_serverrole='packer_template' sudo -E puppet agent --onetime --no-daemonize --detailed-exitcodes --test
2020-04-01T13:39:04.3343781Z 2020/04/01 13:39:04 [INFO] RPC client: Communicator ended with: 1
2020-04-01T13:39:04.3344318Z 2020/04/01 13:39:04 [INFO] RPC endpoint: Communicator ended with: 1
2020-04-01T13:39:04.3344873Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC endpoint: Communicator ended with: 1
2020-04-01T13:39:04.3345439Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 32 bytes written for 'stderr'
2020-04-01T13:39:04.3346126Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] 0 bytes written for 'stdout'
2020-04-01T13:39:04.3346522Z 2020/04/01 13:39:04 packer.exe plugin: [INFO] RPC client: Communicator ended with: 1
2020-04-01T13:39:04.3347144Z ==> azure-arm: sudo: puppet: command not found
2020-04-01T13:39:04.3350392Z 2020/04/01 13:39:04 [INFO] (telemetry) ending puppet-server
2020-04-01T13:39:04.3356060Z ==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...
2020-04-01T13:39:04.3361887Z ==> azure-arm: The resource group was not created by Packer, deleting individual resources ...
2020-04-01T13:39:04.3365735Z 2020/04/01 13:39:04 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g?api-version=2018-04-01" body=""
2020-04-01T13:39:04.3375113Z ==> azure-arm: 
2020-04-01T13:39:04.3376460Z ==> azure-arm: The resource group was not created by Packer, deleting individual resources ...
2020-04-01T13:39:04.4008720Z 2020/04/01 13:39:04 packer.exe plugin: Azure response body="{\r\n  \"name\": \"pkrvmpzv1tjdl8g\",\r\n  \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\",\r\n  \"type\": \"Microsoft.Compute/virtualMachines\",\r\n  \"location\": \"eastus\",\r\n  \"tags\": {\r\n    \"APPID\": \"DCS-vro\",\r\n    \"BILLINGCODE\": \"XXXXX\",\r\n    \"BUSINESSOWNER\": \"XXXXX\",\r\n    \"CSCLASS\": \"CON\",\r\n    \"CSQUAL\": \"Intellectual Property\",\r\n    \"CSTYPE\": \"XXXXX\",\r\n    \"ENVIRONMENT\": \"NPD\",\r\n    \"GROUPCONTACT\": \"INF-Compute Services\",\r\n    \"PRIMARYCONTACT\": \"XXXXX.com\",\r\n    \"SECONDCONTACT\": \"XXXXX.com\"\r\n  },\r\n  \"properties\": {\r\n    \"vmId\": \"956f1488-e0bc-4226-b7a9-ff8e0674f2ff\",\r\n    \"hardwareProfile\": {\r\n      \"vmSize\": \"Standard_D2_v2\"\r\n    },\r\n    \"storageProfile\": {\r\n      \"imageReference\": {\r\n        \"publisher\": \"OpenLogic\",\r\n        \"offer\": \"CentOS\",\r\n        \"sku\": \"7.5\",\r\n        \"version\": \"latest\"\r\n      },\r\n      \"osDisk\": {\r\n        \"osType\": \"Linux\",\r\n        \"name\": \"pkrospzv1tjdl8g\",\r\n        \"createOption\": \"FromImage\",\r\n        \"caching\": \"ReadWrite\",\r\n        \"managedDisk\": {\r\n          \"storageAccountType\": \"Standard_LRS\",\r\n          \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/disks/pkrospzv1tjdl8g\"\r\n        },\r\n        \"diskSizeGB\": 30\r\n      },\r\n      \"dataDisks\": []\r\n    },\r\n    \"osProfile\": {\r\n      \"computerName\": \"pkrvmpzv1tjdl8g\",\r\n      \"adminUsername\": \"packer\",\r\n      \"linuxConfiguration\": {\r\n        \"disablePasswordAuthentication\": true,\r\n        \"ssh\": {\r\n          \"publicKeys\": [\r\n            {\r\n              \"path\": \"/home/packer/.ssh/authorized_keys\",\r\n              \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDO40O2VkMJv0Hxu8XFgpzoimd/dKn9OvamxK2/gNafM2UjztTFcU++4o/SiwptQ04rxoQ+PAAf9NkGZenANgoB5RMTovGseoWLi15KMYxZI1D7G2tAt9L5GbodJBM1XMxPqEG7p3baHD405gDkAnU4cfv+R9BRsZbEjlkjp5V51ZNnz91IZqiY/HrlB4M9KPOe3muv4l8lwryQbL2OY3ett1yi2qidJHKDRMxJoO45iXVDsbhWQNXiE329yS7GFqxrPkLcF/2xspYmVFZqVsj6IN9j/4kaix6KJfhNEBb/q3YWakHLNHKvseDLY/gN1IviVs2PO5lPcVAPkjGfhv2x packer Azure Deployment2020-04-01T13:31:22Z\"\r\n            }\r\n          ]\r\n        }\r\n      },\r\n      \"secrets\": []\r\n    },\r\n    \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\"}]},\r\n    \"diagnosticsProfile\": {\r\n      \"bootDiagnostics\": {\r\n        \"enabled\": false\r\n      }\r\n    },\r\n    \"provisioningState\": \"Succeeded\"\r\n  }\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g?api-version=2018-04-01" x-ms-request-id="dfcbc567-4673-42bd-8999-4a0ace4b59d8"
2020-04-01T13:39:04.4024389Z 2020/04/01 13:39:04 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g?api-version=2018-04-01" x-ms-request-id="dfcbc567-4673-42bd-8999-4a0ace4b59d8" body="{\r\n  \"name\": \"pkrvmpzv1tjdl8g\",\r\n  \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\",\r\n  \"type\": \"Microsoft.Compute/virtualMachines\",\r\n  \"location\": \"eastus\",\r\n  \"tags\": {\r\n    \"APPID\": \"DCS-vro\",\r\n    \"BILLINGCODE\": \"XXXXX\",\r\n    \"BUSINESSOWNER\": \"XXXXX\",\r\n    \"CSCLASS\": \"CON\",\r\n    \"CSQUAL\": \"Intellectual Property\",\r\n    \"CSTYPE\": \"XXXXX\",\r\n    \"ENVIRONMENT\": \"NPD\",\r\n    \"GROUPCONTACT\": \"INF-Compute Services\",\r\n    \"PRIMARYCONTACT\": \"XXXXX.com\",\r\n    \"SECONDCONTACT\": \"XXXXX.com\"\r\n  },\r\n  \"properties\": {\r\n    \"vmId\": \"956f1488-e0bc-4226-b7a9-ff8e0674f2ff\",\r\n    \"hardwareProfile\": {\r\n      \"vmSize\": \"Standard_D2_v2\"\r\n    },\r\n    \"storageProfile\": {\r\n      \"imageReference\": {\r\n        \"publisher\": \"OpenLogic\",\r\n        \"offer\": \"CentOS\",\r\n        \"sku\": \"7.5\",\r\n        \"version\": \"latest\"\r\n      },\r\n      \"osDisk\": {\r\n        \"osType\": \"Linux\",\r\n        \"name\": \"pkrospzv1tjdl8g\",\r\n        \"createOption\": \"FromImage\",\r\n        \"caching\": \"ReadWrite\",\r\n        \"managedDisk\": {\r\n          \"storageAccountType\": \"Standard_LRS\",\r\n          \"id\": \"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/disks/pkrospzv1tjdl8g\"\r\n        },\r\n        \"diskSizeGB\": 30\r\n      },\r\n      \"dataDisks\": []\r\n    },\r\n    \"osProfile\": {\r\n      \"computerName\": \"pkrvmpzv1tjdl8g\",\r\n      \"adminUsername\": \"packer\",\r\n      \"linuxConfiguration\": {\r\n        \"disablePasswordAuthentication\": true,\r\n        \"ssh\": {\r\n          \"publicKeys\": [\r\n            {\r\n              \"path\": \"/home/packer/.ssh/authorized_keys\",\r\n              \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDO40O2VkMJv0Hxu8XFgpzoimd/dKn9OvamxK2/gNafM2UjztTFcU++4o/SiwptQ04rxoQ+PAAf9NkGZenANgoB5RMTovGseoWLi15KMYxZI1D7G2tAt9L5GbodJBM1XMxPqEG7p3baHD405gDkAnU4cfv+R9BRsZbEjlkjp5V51ZNnz91IZqiY/HrlB4M9KPOe3muv4l8lwryQbL2OY3ett1yi2qidJHKDRMxJoO45iXVDsbhWQNXiE329yS7GFqxrPkLcF/2xspYmVFZqVsj6IN9j/4kaix6KJfhNEBb/q3YWakHLNHKvseDLY/gN1IviVs2PO5lPcVAPkjGfhv2x packer Azure Deployment2020-04-01T13:31:22Z\"\r\n            }\r\n          ]\r\n        }\r\n      },\r\n      \"secrets\": []\r\n    },\r\n    \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\"}]},\r\n    \"diagnosticsProfile\": {\r\n      \"bootDiagnostics\": {\r\n        \"enabled\": false\r\n      }\r\n    },\r\n    \"provisioningState\": \"Succeeded\"\r\n  }\r\n}"
2020-04-01T13:39:04.4030429Z 2020/04/01 13:39:04 packer.exe plugin: Azure request request="https://management.azure.com/subscriptions/***/resourcegroups/XXXXX/deployments/pkrdppzv1tjdl8g/operations?%24top=50&api-version=2018-02-01" body="" method="GET"
2020-04-01T13:39:04.4030991Z ==> azure-arm:  -> Deployment Resources within: pkrdppzv1tjdl8g
2020-04-01T13:39:04.5718506Z 2020/04/01 13:39:04 packer.exe plugin: Azure response x-ms-request-id="267706f8-5601-4e8e-8850-37202e36542c" body="{\"value\":[{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/74AECBFCEE8440E1\",\"operationId\":\"74AECBFCEE8440E1\",\"properties\":{\"provisioningOperation\":\"Create\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:36:49.7332181Z\",\"duration\":\"PT3M35.2740365S\",\"trackingId\":\"defc4190-8699-4afc-81ff-34fa51ba8e54\",\"serviceRequestId\":\"7129e8b0-66c5-43f1-9847-d85ecba146f9\",\"statusCode\":\"OK\",\"targetResource\":{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\",\"resourceType\":\"Microsoft.Compute/virtualMachines\",\"resourceName\":\"pkrvmpzv1tjdl8g\"}}},{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/F18460EE36E90259\",\"operationId\":\"F18460EE36E90259\",\"properties\":{\"provisioningOperation\":\"Create\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:33:14.277638Z\",\"duration\":\"PT1M47.6080742S\",\"trackingId\":\"bd03dafa-0e6f-4b4c-bb9e-60b8250a7cc8\",\"serviceRequestId\":\"43c62a8d-70e3-4278-8bc2-cf56425317f3\",\"statusCode\":\"Created\",\"targetResource\":{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrnipzv1tjdl8g\"}}},{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/08586158590000124504\",\"operationId\":\"08586158590000124504\",\"properties\":{\"provisioningOperation\":\"EvaluateDeploymentOutput\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:36:49.8849705Z\",\"duration\":\"PT0.0962399S\",\"trackingId\":\"a0482f25-2b7d-4479-855e-b72eab5c08ac\",\"statusCode\":\"OK\",\"statusMessage\":null}}]}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourcegroups/XXXXX/deployments/pkrdppzv1tjdl8g/operations?%24top=50&api-version=2018-02-01"
2020-04-01T13:39:04.5731181Z 2020/04/01 13:39:04 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/resourcegroups/XXXXX/deployments/pkrdppzv1tjdl8g/operations?%24top=50&api-version=2018-02-01" x-ms-request-id="267706f8-5601-4e8e-8850-37202e36542c" body="{\"value\":[{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/74AECBFCEE8440E1\",\"operationId\":\"74AECBFCEE8440E1\",\"properties\":{\"provisioningOperation\":\"Create\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:36:49.7332181Z\",\"duration\":\"PT3M35.2740365S\",\"trackingId\":\"defc4190-8699-4afc-81ff-34fa51ba8e54\",\"serviceRequestId\":\"7129e8b0-66c5-43f1-9847-d85ecba146f9\",\"statusCode\":\"OK\",\"targetResource\":{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g\",\"resourceType\":\"Microsoft.Compute/virtualMachines\",\"resourceName\":\"pkrvmpzv1tjdl8g\"}}},{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/F18460EE36E90259\",\"operationId\":\"F18460EE36E90259\",\"properties\":{\"provisioningOperation\":\"Create\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:33:14.277638Z\",\"duration\":\"PT1M47.6080742S\",\"trackingId\":\"bd03dafa-0e6f-4b4c-bb9e-60b8250a7cc8\",\"serviceRequestId\":\"43c62a8d-70e3-4278-8bc2-cf56425317f3\",\"statusCode\":\"Created\",\"targetResource\":{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g\",\"resourceType\":\"Microsoft.Network/networkInterfaces\",\"resourceName\":\"pkrnipzv1tjdl8g\"}}},{\"id\":\"/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g/operations/08586158590000124504\",\"operationId\":\"08586158590000124504\",\"properties\":{\"provisioningOperation\":\"EvaluateDeploymentOutput\",\"provisioningState\":\"Succeeded\",\"timestamp\":\"2020-04-01T13:36:49.8849705Z\",\"duration\":\"PT0.0962399S\",\"trackingId\":\"a0482f25-2b7d-4479-855e-b72eab5c08ac\",\"statusCode\":\"OK\",\"statusMessage\":null}}]}"
2020-04-01T13:39:04.5737312Z 2020/04/01 13:39:04 packer.exe plugin: Azure request method="DELETE" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g?api-version=2018-04-01" body=""
2020-04-01T13:39:04.5737899Z ==> azure-arm:  -> Microsoft.Compute/virtualMachines : 'pkrvmpzv1tjdl8g'
2020-04-01T13:39:04.7789391Z 2020/04/01 13:39:04 packer.exe plugin: Azure response body="" status="202 Accepted" method="DELETE" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/virtualMachines/pkrvmpzv1tjdl8g?api-version=2018-04-01" x-ms-request-id="ff891eba-d92c-4032-ae79-157dc755cabc"
2020-04-01T13:39:04.7790859Z 2020/04/01 13:39:04 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:39:04.8873466Z 2020/04/01 13:39:04 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="d195fdeb-417a-417e-b2b8-fb20877bf807" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}"
2020-04-01T13:39:34.8951578Z 2020/04/01 13:39:34 packer.exe plugin: Azure request request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body="" method="GET"
2020-04-01T13:39:34.9661988Z 2020/04/01 13:39:34 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="5070c538-b2fa-4000-80e3-977c17fd0f5c" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}"
2020-04-01T13:40:34.9672160Z 2020/04/01 13:40:34 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:40:35.0816556Z 2020/04/01 13:40:35 packer.exe plugin: Azure response request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="b37ff181-ae1b-4625-b39e-2b0079b44b48" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}" status="200 OK" method="GET"
2020-04-01T13:41:35.0942932Z 2020/04/01 13:41:35 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:41:35.1626212Z 2020/04/01 13:41:35 packer.exe plugin: Azure response x-ms-request-id="2e82f700-7a4c-463a-99cf-83540d646d2c" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01"
2020-04-01T13:42:35.1637823Z 2020/04/01 13:42:35 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:42:35.2437257Z 2020/04/01 13:42:35 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="ed78867b-cd02-47d0-824a-e4a027d48ae3" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}"
2020-04-01T13:43:35.2473866Z 2020/04/01 13:43:35 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:43:35.5346748Z 2020/04/01 13:43:35 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="5f0a05a9-4ed0-45b8-b691-62b1fe895c6f" body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}"
2020-04-01T13:44:35.5439650Z 2020/04/01 13:44:35 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" body=""
2020-04-01T13:44:35.6157542Z 2020/04/01 13:44:35 packer.exe plugin: Azure response body="{\r\n  \"startTime\": \"2020-04-01T13:39:04.7027553+00:00\",\r\n  \"endTime\": \"2020-04-01T13:43:36.5308646+00:00\",\r\n  \"status\": \"Succeeded\",\r\n  \"name\": \"ff891eba-d92c-4032-ae79-157dc755cabc\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/operations/ff891eba-d92c-4032-ae79-157dc755cabc?api-version=2018-04-01" x-ms-request-id="c18232b6-5055-4dc8-b5ec-a2bc382b736a"
2020-04-01T13:44:35.6159876Z ==> azure-arm:  -> Microsoft.Network/networkInterfaces : 'pkrnipzv1tjdl8g'
2020-04-01T13:44:35.6163861Z 2020/04/01 13:44:35 packer.exe plugin: Azure request method="DELETE" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g?api-version=2018-01-01" body=""
2020-04-01T13:44:35.9229419Z 2020/04/01 13:44:35 packer.exe plugin: Azure response status="202 Accepted" method="DELETE" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Network/networkInterfaces/pkrnipzv1tjdl8g?api-version=2018-01-01" x-ms-request-id="88d0eb45-b081-4085-a57e-25414b34f454" body=""
2020-04-01T13:44:35.9231262Z 2020/04/01 13:44:35 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Network/locations/eastus/operations/88d0eb45-b081-4085-a57e-25414b34f454?api-version=2018-01-01" body=""
2020-04-01T13:44:36.0815296Z 2020/04/01 13:44:36 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Network/locations/eastus/operations/88d0eb45-b081-4085-a57e-25414b34f454?api-version=2018-01-01" x-ms-request-id="e67deb8e-3cb7-4b45-ab69-241d4a8dea29" body="{\r\n  \"status\": \"Succeeded\"\r\n}"
2020-04-01T13:44:36.0819054Z 2020/04/01 13:44:36 packer.exe plugin: Azure request method="DELETE" request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/disks/pkrospzv1tjdl8g?api-version=2018-04-01" body=""
2020-04-01T13:44:36.0820180Z ==> azure-arm:  -> Microsoft.Compute/disks : '/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/disks/pkrospzv1tjdl8g'
2020-04-01T13:44:36.3292877Z 2020/04/01 13:44:36 packer.exe plugin: Azure response request="https://management.azure.com/subscriptions/***/resourceGroups/XXXXX/providers/Microsoft.Compute/disks/pkrospzv1tjdl8g?api-version=2018-04-01" x-ms-request-id="fec76307-235d-40f3-8afa-a637a1033eb7" body="" status="202 Accepted" method="DELETE"
2020-04-01T13:44:36.3294566Z 2020/04/01 13:44:36 packer.exe plugin: Azure request request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/DiskOperations/fec76307-235d-40f3-8afa-a637a1033eb7?api-version=2018-04-01" body="" method="GET"
2020-04-01T13:44:36.3968555Z 2020/04/01 13:44:36 packer.exe plugin: Azure response x-ms-request-id="b1cf29d2-5fe9-4252-9a7e-19382f638600" body="{\r\n  \"startTime\": \"2020-04-01T13:44:36.2588603+00:00\",\r\n  \"status\": \"InProgress\",\r\n  \"name\": \"fec76307-235d-40f3-8afa-a637a1033eb7\"\r\n}" status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/DiskOperations/fec76307-235d-40f3-8afa-a637a1033eb7?api-version=2018-04-01"
2020-04-01T13:45:36.4037673Z 2020/04/01 13:45:36 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/DiskOperations/fec76307-235d-40f3-8afa-a637a1033eb7?api-version=2018-04-01" body=""
2020-04-01T13:45:36.5362228Z 2020/04/01 13:45:36 packer.exe plugin: Azure response status="200 OK" method="GET" request="https://management.azure.com/subscriptions/***/providers/Microsoft.Compute/locations/eastus/DiskOperations/fec76307-235d-40f3-8afa-a637a1033eb7?api-version=2018-04-01" x-ms-request-id="8ce5fa03-ed78-4098-8fbe-7494f59405f2" body="{\r\n  \"startTime\": \"2020-04-01T13:44:36.2588603+00:00\",\r\n  \"endTime\": \"2020-04-01T13:44:36.5088477+00:00\",\r\n  \"status\": \"Succeeded\",\r\n  \"name\": \"fec76307-235d-40f3-8afa-a637a1033eb7\"\r\n}"
2020-04-01T13:45:36.5364995Z ==> azure-arm: Removing the created Deployment object: 'pkrdppzv1tjdl8g'
2020-04-01T13:45:36.5367280Z 2020/04/01 13:45:36 packer.exe plugin: Azure request body="" method="DELETE" request="https://management.azure.com/subscriptions/***/resourcegroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g?api-version=2018-02-01"
2020-04-01T13:45:37.2390223Z 2020/04/01 13:45:37 packer.exe plugin: Azure response status="202 Accepted" method="DELETE" request="https://management.azure.com/subscriptions/***/resourcegroups/XXXXX/providers/Microsoft.Resources/deployments/pkrdppzv1tjdl8g?api-version=2018-02-01" x-ms-request-id="f477439a-4780-49ce-816e-3fb38369ef23" body=""
2020-04-01T13:45:37.2392107Z 2020/04/01 13:45:37 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" body=""
2020-04-01T13:45:37.3255452Z 2020/04/01 13:45:37 packer.exe plugin: Azure response status="202 Accepted" method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" x-ms-request-id="e7ecab67-1235-4187-baeb-b282b0d32a0a" body=""
2020-04-01T13:45:52.3356329Z 2020/04/01 13:45:52 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" body=""
2020-04-01T13:45:52.4097507Z 2020/04/01 13:45:52 packer.exe plugin: Azure response status="202 Accepted" method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" x-ms-request-id="25acb995-e80b-4d10-aaf7-011e8f409565" body=""
2020-04-01T13:46:07.4219159Z 2020/04/01 13:46:07 packer.exe plugin: Azure request method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" body=""
2020-04-01T13:46:07.4986462Z 2020/04/01 13:46:07 packer.exe plugin: Azure response body="" status="204 No Content" method="GET" request="https://management.azure.com/subscriptions/***/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVpSRzoyRFVTRToyRElUUzoyREdPTERFTklNQUdFOjJETlBEOjJEMDAxLVBLUkRQUFpWMVRKREw4Ry0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2018-02-01" x-ms-request-id="1c7215a7-9b25-4e0c-b0b6-de560c1aef58"
2020-04-01T13:46:07.4988482Z ==> azure-arm: The resource group was not created by Packer, not deleting ...
2020-04-01T13:46:07.4989827Z 2020/04/01 13:46:07 [INFO] (telemetry) ending azure-arm
2020-04-01T13:46:07.4990724Z 2020/04/01 13:46:07 machine readable: error-count []string{"1"}
2020-04-01T13:46:07.4991160Z ==> Some builds didn't complete successfully and had errors:
2020-04-01T13:46:07.4991701Z 2020/04/01 13:46:07 machine readable: azure-arm,error []string{"Puppet exited with a non-zero exit status: 1"}
2020-04-01T13:46:07.4992190Z ==> Builds finished but no artifacts were created.
2020-04-01T13:46:07.4992943Z 2020/04/01 13:46:07 [INFO] (telemetry) Finalizing.
2020-04-01T13:46:07.4996813Z ==> azure-arm: 
2020-04-01T13:46:07.4997488Z ==> azure-arm: The resource group was not created by Packer, not deleting ...
2020-04-01T13:46:07.5023665Z Build 'azure-arm' errored: Puppet exited with a non-zero exit status: 1
2020-04-01T13:46:07.5023942Z 
2020-04-01T13:46:07.5024170Z ==> Some builds didn't complete successfully and had errors:
2020-04-01T13:46:07.5024480Z --> azure-arm: Puppet exited with a non-zero exit status: 1
2020-04-01T13:46:07.5024677Z 
2020-04-01T13:46:07.5024882Z ==> Builds finished but no artifacts were created.
2020-04-01T13:46:07.5952456Z 2020/04/01 13:46:07 waiting for all plugin processes to complete...
2020-04-01T13:46:07.6086661Z 2020/04/01 13:46:07 C:\packer\packer.exe: plugin process exited
2020-04-01T13:46:07.6087117Z 2020/04/01 13:46:07 C:\packer\packer.exe: plugin process exited
2020-04-01T13:46:07.6102265Z 2020/04/01 13:46:07 C:\packer\packer.exe: plugin process exited
2020-04-01T13:46:07.6102692Z 2020/04/01 13:46:07 C:\packer\packer.exe: plugin process exited
2020-04-01T13:46:07.6138508Z 2020/04/01 13:46:07 C:\packer\packer.exe: plugin process exited

puppet-masterless provisioner module_paths upload to "dirupload" directory

This issue was originally opened by @pscadiz as hashicorp/packer#5373. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Packer version : 1.1.0 (also 1.0.4)

I'm calling the puppet-master provisioner as described

    {
      "type": "puppet-masterless",
      "puppet_bin_dir": "/opt/puppetlabs/bin",
      "manifest_file": "puppet/site.pp",
      "hiera_config_path": "puppet/hiera.yaml",
      "module_paths": "puppet/modules",
      "prevent_sudo": true,
      "ignore_exit_codes": true
    }

Puppet provisioner gets run as described:

docker: Running Puppet: cd /tmp/packer-puppet-masterless && FACTER_packer_build_name='docker' FACTER_packer_builder_type='docker' /opt/puppetlabs/bin/puppet apply --verbose --modulepath='/tmp/packer-puppet-masterless/module-0' --hiera_config='/tmp/packer-puppet-masterless/hiera.yaml' --detailed-exitcodes /tmp/packer-puppet-masterless/manifests/site.pp
    docker: Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::stdlib

And when looking at the module-0 directory, it's listing not the modules but a parent directory

docker: total 12
    docker: drwxr-xr-x  3 root root 4096 Sep 22 01:10 .
    docker: drwxr-xr-x  4 root root 4096 Sep 22 01:10 ..
    docker: drwx------ 29 root root 4096 Sep 22 01:10 dirupload914812728

Checked that directory and that's where the modules reside.

Why are the modules being uploaded into a dirupload/ directory when puppet is setting --modulepath incorrectly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.