[chef] Re: Re: RE: Re: RE: Re: Chef "iis_config" resource not working with "notifies"


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To: " " < >
  • Subject: [chef] Re: Re: RE: Re: RE: Re: Chef "iis_config" resource not working with "notifies"
  • Date: Thu, 9 Jan 2014 14:01:31 -0500

I'm proposing that the IIS LWRPs be rewritten to use the IIS WMI interface rather than calling appsrvcmd. This will allow for easier idempotency checks and is also less error-prone than parsing the output of appsrvcmd.exe.

https://tickets.opscode.com/browse/COOK-4203

Any takers to implement this? :-)

- Julian


On Thu, Jan 9, 2014 at 1:02 PM, George Miranda < " target="_blank"> > wrote:
Re-posting

Hey Kapil,

By default, any resource included in the core Chef framework should be idempotent.  The exception to that is any ‘execute’ or ‘script’ resource which may run arbitrary commands (therefore, we can’t ensure it is idempotent).  Any add-on resources (LWRPs, HWRPs, etc) may or may not be idempotent depending on how they’re written.  If they’re not idempotent, it’s probably a bug and you should file one with the maintainer of the resource.

In the case of the iis_site resource, there’s currently an open bug[1] where this resource is unable to modify already existing sites even if some of the config parameters are not configured correctly.  Perhaps this is why your notification didn’t fire?

HTH,
-g









On Thu, Jan 9, 2014 at 7:08 AM, Kapil Shardha < " target="_blank"> > wrote:
It will be great if Chef documentation on IIS LWRP mentions which resources are idempotent and which ones are not.

Did anyone get a chance to confirm the behavior I mentioned in this thread?

Thanks

-Kapil



-----Original Message-----
From: David A. Williams [mailto: " target="_blank"> ]
Sent: Thursday, January 9, 2014 9:57 AM
To: " target="_blank">
Subject: [chef] Re: RE: Re: Chef "iis_config" resource not working with "notifies"

Some resources are not idempotent.  I discovered this the hard way with his_config for example

David
From: Kapil Shardha < " target="_blank"> <mailto: " target="_blank"> >>
Reply-To: " " target="_blank"> <mailto: " target="_blank"> >" < " target="_blank"> <mailto: " target="_blank"> >>
Date: Wednesday, January 8, 2014 2:46 PM
To: " " target="_blank"> <mailto: " target="_blank"> >" < " target="_blank"> <mailto: " target="_blank"> >>
Subject: [chef] RE: Re: Chef "iis_config" resource not working with "notifies"


It does not seem to have made any difference? Also, is IIS LWRP idempotent?

-Kapil


From: Bryan Stenson [mailto: " target="_blank"> ]
Sent: Wednesday, January 8, 2014 1:54 PM
To: " target="_blank"> <mailto: " target="_blank"> >
Subject: [chef] Re: Chef "iis_config" resource not working with "notifies"

I seem to remember "puts" not working.

Try "Chef::Log.info 'foo here'" to write 'foo here' to your chef client logs...

On Wed, Jan 8, 2014 at 9:58 AM, Kapil Shardha < " target="_blank"> <mailto: " target="_blank"> >> wrote:
I have been writing a sample cookbook to evaluate new IIS LWRP and I notice that "iis_config" resource does not seem to execute notifies statement in it.

Here is how iis_config resource looks like in my cookbook:

[cid:image001.png@01CF0C88.D371CD50]

Following are the resources it notifies:

[cid:image002.png@01CF0C88.D371CD50]

On running chef-client on node, I expect to see "I have been called" in output but I don't see it. Can someone confirm the behavior?

Thanks

-Kapil

________________________________

This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you.


________________________________

This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you.

________________________________
CONFIDENTIALITY NOTICE: This electronic mail may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic mail or its contents by persons other than the intended recipient(s) is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail so that we may correct our internal records. Please then delete the original message. Thank you.

________________________________

This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you.



--



--
[ Julian C. Dunn < " target="_blank"> >          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ]
[ gopher://sdf.org/1/users/keymaker/           * compliant!    ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§