Transfer .rpm Package to nodes


#1

Hi there,

I try to transfer a rpm resource to client nodes via the cookbook_file
resource, but it will only transfer a few MB from the resource.
I get the following output:

Recipe: nagios::server

  • cookbook_file[/apps/omd-1.10-rh61-31.x86_64.rpm] action create
    • create new file /apps/omd-1.10-rh61-31.x86_64.rpm
    • update content in file /apps/omd-1.10-rh61-31.x86_64.rpm from none
      to 0e2563
      (new content is binary, diff output suppressed)
    • change mode from ‘’ to ‘0755’
    • change owner from ‘’ to ‘root’
    • change group from ‘’ to ‘root’
    • restore selinux security context

Do you habe any idea why this won¹t work?

Thanks,
Christian

Am 21.05.14 11:01 schrieb "ganesan15785@gmail.com" unter
ganesan15785@gmail.com:

Hi,

I need to run chef-client in windows machine from one windows machine
using
winrm/winrs. I had a code chef cookbook like

windows_batch “backup” do
cwd node[‘winrm_path’]
code <<-EOH
winrs -r:ip_address chef-client
EOH
end

the above code(cookbook) will execute in windows machine from there it
will run
chef-client in another windows machine using winrs but errors occured. I
enabled the winrm in both windows machines

errors like :

STDERR: Winrs error:The WinRM client cannot process the request. If the
authentication scheme is different from Kerberos, or if the client
computer is
not joined to a domain, then HTTPS transport must be used or the
destination
machine must be added to the TrustedHosts configuration setting. Use
winrm.cmd
to configure TrustedHosts. Note that computers in the TrustedHosts list
might
not be authenticated. You can get more information about that by running
the
following command: winrm help config.

or else

Connecting to remote server failed with the following error message :
WinRM
cannot process the request. The following error occured while using
Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are
specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port
does
not exist.
-The client and remote computers are in different domains and there is
no
trust between the two domains.

any one help me how to resolve this??

Thanks,
Ganesan.A


#2

On Thursday, May 22, 2014 at 3:07 AM, Christian Fröstl wrote:

Hi there,

I try to transfer a rpm resource to client nodes via the cookbook_file
resource, but it will only transfer a few MB from the resource.
I get the following output:

Recipe: nagios::server

  • cookbook_file[/apps/omd-1.10-rh61-31.x86_64.rpm] action create
  • create new file /apps/omd-1.10-rh61-31.x86_64.rpm
  • update content in file /apps/omd-1.10-rh61-31.x86_64.rpm from none
    to 0e2563
    (new content is binary, diff output suppressed)
  • change mode from ‘’ to ‘0755’
  • change owner from ‘’ to ‘root’
  • change group from ‘’ to ‘root’
  • restore selinux security context

Do you habe any idea why this won¹t work?

Thanks,
Christian

Can you try to isolate the error by downloading the file with curl or wget and see if it works? Run knife cookbook show COOKBOOK VERSION to get a set of pre-signed URLs for the cookbook content.


Daniel DeLeo