Skip to content

machine agent package doesn't work when bundle = false  #42

@akemner

Description

@akemner

with default attributes, the machine agent package cannot be downloaded. it doesn't look like the machine_agent recipe supports the structure on packages.appdynamics.com

"https://packages.appdynamics.com/machine/4.1.3.0/MachineAgent-4.1.3.0.zip"

├── machine
│ └── 4.1.3.0
│ ├── appdynamics-machine-agent-4.1.3.0-1.i386.rpm
│ ├── appdynamics-machine-agent-4.1.3.0-1.x86_64.rpm
│ ├── machineagent-bundle-32bit-linux-4.1.3.0.zip
│ ├── machineagent-bundle-32bit-solaris-4.1.3.0.zip
│ ├── machineagent-bundle-32bit-windows-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-linux-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-osx-4.1.3.0.zip
│ ├── machineagent-bundle-64bit-solaris-4.1.3.0.zip
│ └── machineagent-bundle-64bit-windows-4.1.3.0.zip

[2015-10-07T19:41:59+00:00] WARN: remote_file[/tmp/kitchen/cache/AppDynam
icsMachineAgent.zip] cannot be downloaded from https://packages.appdynamics.com/
machine/4.1.3.0/MachineAgent-4.1.3.0.zip: 403 "Forbidden"

       =====================================================================

       Error executing action `create` on resource 'remote_file[/tmp/kitchen

/cache/AppDynamicsMachineAgent.zip]'

=====================================================================

       Net::HTTPServerException
       ------------------------
       403 "Forbidden"

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machine_agent.r

b

        45: remote_file agent_zip do
        46:   source package_source
        47:   checksum agent['checksum']
        48:   backup false
        49:   mode '0444'
        50:   notifies :run, 'execute[unzip-appdynamics-machine-agent]', :im

mediately
51: end
52:

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machin

e_agent.rb:45:in `from_file'

       remote_file("/tmp/kitchen/cache/AppDynamicsMachineAgent.zip") do
         provider Chef::Provider::RemoteFile
         action [:create]
         retries 0
         retry_delay 2
         default_guard_interpreter :default
         path "/tmp/kitchen/cache/AppDynamicsMachineAgent.zip"
         atomic_update true
         source ["https://packages.appdynamics.com/machine/4.1.3.0/MachineAg

ent-4.1.3.0.zip"]
use_etag true
use_last_modified true
declared_type :remote_file
cookbook_name "appdynamics"
recipe_name "machine_agent"
mode "0444"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions