Manuel Correa | 10 Feb 21:45 2015
Picon

provider resolver - or how to 'dynamically' define the provider for a resource ?

Hi, 

so I'm still trying to figure out how the ProviderResolver class actually works. Basically, I created a new provider for the remote_directory resource. In this provider I'm adding support for remote s3 'folders', If I use the new provider like:

remote_directory "/tmp/config_folder" do
   owner  
"root"
   
group  "root"
   mode  
"0644"
   source
"s3://my_bucket/folder/structure/"
   provider
Chef::Provider::RemoteS3Directory
end

everything works fine and at the end I have the content of the bucket path in my local destination. Now, would it be possible to dynamically call my provider based on the URI of source ? something like if source =~ ^s3:// use my provider instead of explicitly force the usage? like:

remote_directory "/tmp/config_folder" do
   owner  
"root"
   
group  "root"
   mode  
"0644"
   source
"s3://my_bucket/folder/structure/"
end


Is a small difference, but really helps me in the case when I have end users that don't really want to know much about Ruby, Classes, etc...

Thanks

-
Manuel

--
This group is subject to the Chef Community Guidelines http://docs.chef.io/community_guidelines.html
---
You received this message because you are subscribed to the Google Groups "Chef Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chef+unsubscribe <at> lists.chef.io.
To post to this group, send email to chef <at> lists.chef.io.
Visit this group at http://groups.google.com/a/lists.chef.io/group/chef/.
medya.gh | 10 Feb 21:35 2015
Picon

what is Why_run and dry_run?

in some cookbooks, I see this

def whyrun_supported? true end


What is Whyrun ? and its difference with dry_run ?

--
This group is subject to the Chef Community Guidelines http://docs.chef.io/community_guidelines.html
---
You received this message because you are subscribed to the Google Groups "Chef Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chef+unsubscribe <at> lists.chef.io.
To post to this group, send email to chef <at> lists.chef.io.
Visit this group at http://groups.google.com/a/lists.chef.io/group/chef/.
Mathias Lafeldt | 10 Feb 20:52 2015
Picon
Gravatar

chef-runner 0.9.0

chef-runner version 0.9.0 is out!

Among other things, this release adds the ability to provision the
host system. This way, you can use chef-runner as a convenient wrapper
around Chef to manage your workstation or to create Docker images.

Also, you can now install chef-runner as a Debian package on most
Ubuntu and Debian distributions, and as an RPM package on CentOS.

Here you can find the full changelog and pre-built binaries to download:

https://github.com/mlafeldt/chef-runner/releases/tag/v0.9.0

If you've never heard of chef-runner before, this quick start guide is for you:

https://github.com/mlafeldt/chef-runner#quick-start

-Mathias

--

-- 
This group is subject to the Chef Community Guidelines http://docs.chef.io/community_guidelines.html
--- 
You received this message because you are subscribed to the Google Groups "Chef Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chef+unsubscribe <at> lists.chef.io.
To post to this group, send email to chef <at> lists.chef.io.
To view this discussion on the web visit https://groups.google.com/a/lists.chef.io/d/msgid/chef/CAMFa-2jxbTRxb%2B2k_2RaU%2BYkbXE7Mgp2BX%3DH9UC_WqbgvxnnCg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/lists.chef.io/d/optout.

markpimentel22 | 10 Feb 20:40 2015
Picon

Knife Winrm with Kerberos Auth

Has anyone been able to get knife winrm working with kerberos auth on a Mac?  When I try (with what I believe is a valid keytab) ruby crashes on some gssapi error.

--
This group is subject to the Chef Community Guidelines http://docs.chef.io/community_guidelines.html
---
You received this message because you are subscribed to the Google Groups "Chef Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chef+unsubscribe <at> lists.chef.io.
To post to this group, send email to chef <at> lists.chef.io.
To view this discussion on the web visit https://groups.google.com/a/lists.chef.io/d/msgid/chef/a4233a9e-d5c0-4ad1-9d62-03d3a3f20d7b%40lists.chef.io.
For more options, visit https://groups.google.com/a/lists.chef.io/d/optout.

Gmane