# Chef "iis\_config" resource not working with "notifies"

**URL:** <https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977>\
**Category:** Chef Infra (archive)\
**Created:** [January 8, 2014, 5:58pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977 "2014-01-08T17:58:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapil\_Shardha](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kapil\_Shardha](https://discourse.chef.io/u/Kapil_Shardha)\
**Post date:** [January 8, 2014, 5:58pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977/1 "2014-01-08T17:58:18Z")

</div>

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@01CF0C71.40531C20]

Following are the resources it notifies:

[cid:image002.png@01CF0C71.40531C20]

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.

---

<div class="post-metadata">

**Author:** ![Bryan\_Stenson](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_stenson/32/420_2.png) [@Bryan\_Stenson](https://discourse.chef.io/u/Bryan_Stenson)\
**Post date:** [January 8, 2014, 6:54pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977/2 "2014-01-08T18:54:06Z")

</div>

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  
[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)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:
> 
> Following are the resources it notifies:
> 
> 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.

---

<div class="post-metadata">

**Author:** ![Kapil\_Shardha](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kapil\_Shardha](https://discourse.chef.io/u/Kapil_Shardha)\
**Post date:** [January 8, 2014, 8:46pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977/3 "2014-01-08T20:46:43Z")

</div>

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

-Kapil

From: Bryan Stenson [[mailto:bryan.stenson@gmail.com](mailto:bryan.stenson@gmail.com)]  
Sent: Wednesday, January 8, 2014 1:54 PM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
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 \<[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)[mailto:Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)\> 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.

---

<div class="post-metadata">

**Author:** ![David\_A\_Williams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/david_a_williams/32/209_2.png) [@David\_A\_Williams](https://discourse.chef.io/u/David_A_Williams)\
**Post date:** [January 9, 2014, 2:56pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977/4 "2014-01-09T14:56:30Z")

</div>

Some resources are not idempotent. I discovered this the hard way with his\_config for example

David  
From: Kapil Shardha \<[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)[mailto:Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)\>  
Reply-To: "chef@lists.opscode.com[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)" \<[chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)\>  
Date: Wednesday, January 8, 2014 2:46 PM  
To: "chef@lists.opscode.com[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)" \<[chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)\>  
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:bryan.stenson@gmail.com](mailto:bryan.stenson@gmail.com)]  
Sent: Wednesday, January 8, 2014 1:54 PM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
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 \<[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)[mailto:Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)\> 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.

---

<div class="post-metadata">

**Author:** ![Kapil\_Shardha](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kapil\_Shardha](https://discourse.chef.io/u/Kapil_Shardha)\
**Post date:** [January 9, 2014, 3:08pm UTC](https://discourse.chef.io/t/chef-iis-config-resource-not-working-with-notifies/4977/5 "2014-01-09T15:08:43Z")

</div>

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:dwilliams@daxko.com](mailto:dwilliams@daxko.com)]  
Sent: Thursday, January 9, 2014 9:57 AM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
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 \<[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)[mailto:Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)\>  
Reply-To: "chef@lists.opscode.com[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)" \<[chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)\>  
Date: Wednesday, January 8, 2014 2:46 PM  
To: "chef@lists.opscode.com[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)" \<[chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)\>  
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:bryan.stenson@gmail.com](mailto:bryan.stenson@gmail.com)]  
Sent: Wednesday, January 8, 2014 1:54 PM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
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 \<[Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)[mailto:Kapil.Shardha@ems-works.com](mailto:Kapil.Shardha@ems-works.com)\> 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.
