pratik_gadiya | 27 Nov 19:04 2014
Picon

Chef Provisioning with Vagrant


Hi All,

I tried Chef-Provisioning with Vagrant by following steps listed on
https://github.com/opscode/chef-provisioning but facing issues as follows:

ERROR:

# chef-client -z simple.rb

[2014-11-27T17:22:56+05:30] WARN: No config file found or specified on command
line, using command line options.
[2014-11-27T17:22:56+05:30] WARN: No cookbooks directory found at or above
current directory.  Assuming /opt/data/chef-machine-resource.
Starting Chef Client, version 11.16.4
resolving cookbooks for run list: []
Synchronizing Cookbooks:
Compiling Cookbooks...
[2014-11-27T17:22:59+05:30] WARN: Node hadoop4.persistent.co.in has an empty
run list.
Converging 1 resources
Recipe:  <at> recipe_files::/opt/data/chef-machine-resource/simple.rb
  * machine[mario1] action converge
    - create new file /root/.chef/vms/mario1.vm
    - update content in file /root/.chef/vms/mario1.vm from none to 8776f3
    - --- /root/.chef/vms/mario1.vm	2014-11-27 17:22:59.934957709 +0530
    - +++ /tmp/.mario1.vm20141127-28880-1tvmotp 2014-11-27 17:22:59.934957709
+0530
    -  <at>  <at>  -1 +1,6  <at>  <at> 
    - +Vagrant.configure('2') do |outer_config|
(Continue reading)

devesh.mehta | 27 Nov 14:38 2014
Picon

Need approach to migrate from Puppet to Chef

Hi All,

Currently we are using Puppet for maintaining our hosts and environments. We are planning to migrate from
Puppet to Chef.

Can you please suggest some good approach for this?

Thanks
Devesh


________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise
confidential information. If you have received it in error, please notify the sender immediately and
delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law,
electronic communications with Accenture and its affiliates, including e-mail and instant messaging
(including content), may be scanned by our systems for the purposes of information security and
assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

Avargil, Raanan | 27 Nov 10:46 2014
Picon

powershell command via knife winrm

Hello all,

 

I'm running into a situation where running chef-client via knife winrm fails while running it locally on the machine passes.

After isolating the problem I figured out a specific powershell command that returns different results when running locally on the machine vs. running via knife winrm.

 

Goal:

I'm trying to disable the windows update feature on the client.

(Note: The first powershell command is to get the correspond object. I didn’t write the whole script here)

 

Here are commands & results I see:

 

----------------------------------------

* Via knife winrm: (No results at all)

C:\Users\Administrator\MyProjects\chef-repo>knife winrm 143.185.1.1 -m -x ‘user’ -P 'password' ' powershell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat

None (New-Object -ComObject "Microsoft.Update.AutoUpdate").Settings '

 

C:\Users\Administrator\MyProjects\chef-repo>

----------------------------------------

* Locally on the machine:

c:\temp>powershell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None (New-Object -ComObject "Microsoft.Update.AutoUpdate").Settings

 

NotificationLevel         : 1

ReadOnly                  : True

Required                  : False

ScheduledInstallationDay  : 0

ScheduledInstallationTime : 3

IncludeRecommendedUpdates : False

NonAdministratorsElevated : True

FeaturedUpdatesEnabled    : False

----------------------------------------

 

Another version (without the .Settings in the end)

----------------------------------------

* Via knife winrm: (You can see that Settings & ServiceEnabled are empty)

C:\Users\Administrator\MyProjects\chef-repo>knife winrm 143.185.1.1 -m -x 'user' -P 'password' 'powershell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None (New-Object -ComObject "Microsoft.Update.AutoUpdate") '

143.185.1.1

143.185.1.1 Settings                   ServiceEnabled             Results

143.185.1.1

143.185.1.1 --------                   --------------             -------

143.185.1.1                                                       System.__ComObject

143.185.1.1

143.185.1.1

 

C:\Users\Administrator\MyProjects\chef-repo>

----------------------------------------

* Locally on the machine:

c:\temp>powershell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None (New-Object -ComObject "Microsoft.Update.AutoUpdate")

 

Settings                               ServiceEnabled Results

--------                               -------------- -------

System.__ComObject                               True System.__ComObject

----------------------------------------

 

 

Any suggestions?

 

 

Thanks,

Raanan.

 

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

gregory grey | 26 Nov 23:14 2014
Picon

yum groupinstall

Hi guys,
We don't have groupinstall available. I re-raised issue on github, since it was open in Jira. No feedback since. 

Can someone advice if it's a worthy idea to write this?
I've got some time and desire to do it, but only if it's needed - yum provider functionality is huge, and it needs a lot of work to include metapackages...
Sean Clemmer | 26 Nov 22:06 2014
Picon

Has Chef abandoned the chef-server cookbook?

There have been no releases, commits, or pull requests merged to the official chef-server cookbook (https://github.com/opscode-cookbooks/chef-server) since May 2014 despite some obvious bugs (e.g. https://github.com/opscode-cookbooks/chef-server/issues/48) and definite interest from the community (11 pull requests and 9 issues at the moment).

Has Chef abandoned this cookbook?
Nathen Harvey | 26 Nov 21:23 2014

FOSDEM and Configuration Management Camp EU

There are two great CFPs closing on Monday, December 1 that YOU should participate in!

FOSDEM and Configuration Management Camp EU happen back-to-back early in 2015.  There is a Configuration Management DevRoom at FOSDEM and there will be a Chef community room in addition to the main track at Configuration Management Camp.  

I hope to see you in Belgium at the end of January and beginning of February!

CFP for Configuration Mangement Dev Room:

CFP for Configuration Management Camp EU:

Thanks!
Nathen
<at> nathenharvey
Indra k | 26 Nov 16:26 2014

reg -kaltura using chef

Hi all,

 

          I need to configure kaltura using our chef.I ve using kaltura 21.0 cookbook ,in that it installs kaltura9.19.7 server when it runs kalturabasic.config.sh file and referring kaltura.ans.But when I open a mysql db there is no such kaltura user andkaltura db’s.

 

              Can anybody know this ,I ve referred documentation,but it’s not clear.Anyone did this means,please share your views.

 

Thanks for help inadvance,
Indra

    
Indra k | 26 Nov 16:26 2014

reg -kaltura using chef

Hi all,

 

          I need to configure kaltura using our chef.I ve using kaltura 21.0 cookbook ,in that it installs kaltura9.19.7 server when it runs kalturabasic.config.sh file and referring kaltura.ans.But when I open a mysql db there is no such kaltura user andkaltura db’s.

 

              Can anybody know this ,I ve referred documentation,but it’s not clear.Anyone did this means,please share your views.

 

Thanks for help inadvance,
Indra

    
Malli Pulla Reddy | 26 Nov 11:16 2014

customizing bootstrap

Hi Chefs!

 

Objective: Avoid going out to internet for downloading chef-client rpm everytime I bootstrap a machine.

 

Approach followed:

1. Copied install.sh to locally hosted http server

2. Edited chef-full.erb to point it to install.sh from my http server

3. Edited install.sh to point chef-client rpm that is on my http server

 

Result:

 

techops <at> exaple:~/chefser12work/chef-repo$ sudo knife bootstrap 192.168.0.15 -sudo -x root -P wc5ack3 --distro test

Connecting to 1.1.1.1

1.1.1.1 --2014-11-26 15:41:43--  http://buildrepo.examplel.com/Adapters/chef-utils/install.sh

1.1.1.1 Resolving buildrepo.examplel.com... 2.2.2.2

1.1.1.1 Connecting to buildrepo.examplel.com|2.2.2.2|:80... connected.

1.1.1.1 HTTP request sent, awaiting response... 200 OK

1.1.1.1 Length: 16592 (16K) [application/x-sh]

1.1.1.1 Saving to: `STDOUT'

1.1.1.1

100%[======================================>] 16,592      --.-K/s   in 0.02s

1.1.1.1

1.1.1.1 2014-11-26 15:41:43 (852 KB/s) - written to stdout [16592/16592]

1.1.1.1

1.1.1.1 Downloading Chef 11.16.2 for el...

1.1.1.1 downloading https://testing.exmaple.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64

1.1.1.1   to file /tmp/install.sh.1628/metadata.txt

1.1.1.1 trying wget...

1.1.1.1 ERROR 404

1.1.1.1 Unable to retrieve a valid package!

1.1.1.1 Please file a bug report at https://github.com/opscode/opscode-omnitruck/issues/new

1.1.1.1 Version: 11.16.2

1.1.1.1

1.1.1.1 Please detail your operating system type, version and any other relevant details

1.1.1.1 Metadata URL: https://testing.exmaple.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64

1.1.1.1 bash: line 89: chef-client: command not found

 

Regards,

PullaReddy

TechOps

 

Indra k | 26 Nov 10:11 2014

chef-kaltura cluster

Hi ,

      ANybody have an idea about deploying kaltura database and its configuration,its not creating kaltura db and other databases .
Thanks & regards,
Indra K
Brad Knowles | 26 Nov 04:11 2014

Why am I getting this error from net-scp?

Folks,

So, I'm doing some compliance work for a customer (not PCI, but similar), and one thing we decided was to use
scp to upload and download large files from a central fileserver.  This way we don't have to worry about
opening any more holes in firewalls (because ssh already has to be open), no additional Pandoras Boxes, etc....

The download works fine.  But when I'm trying to upload the results of the scan, it bombs out.  The weird thing
is that the code uses Mixlib::ShellOut to go find the file in question just a few lines above, but then
Net:Scp craps out.

A slice of logs showing the error message is at <http://pastebin.com/YXPu4TKS>.

I haven't done the Windows side of the code yet, but the Linux part of the code for this section looks like this:

if platform_family?("rhel")
  ruby_block 'find-and-upload-ciscat-results' do
    block do
      require 'mixlib/shellout'
      require 'net/scp'
      cmd       = Mixlib::ShellOut.new("find #{resdir} -name '*.xml' | sort | tail -1")
      cmd.run_command
      cmd.error!
      source    = cmd.stdout
      Chef::Log.debug("Uploading source file #{source} to #{user} <at> #{host}:#{target}")
      Net::SCP.upload!(host, user, source, target, :ssh => { :password => pass })
    end
  end

# elsif platform_family?("windows")
end

Am I doing something incredibly stupid here?

--
Brad Knowles <brad <at> shub-internet.org>
LinkedIn Profile: <http://tinyurl.com/y8kpxu>


Gmane