<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/spec/unit/provider, branch https_shell</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>Merge pull request #5315 from MsysTechnologiesllc/dh/adding_powershell_package_manager_support</title>
<updated>2016-11-11T13:51:36+00:00</updated>
<author>
<name>Bryan McLellan</name>
<email>btm@loftninjas.org</email>
</author>
<published>2016-11-11T13:51:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=9ab43c91221f05cd0912c03e37eff153b6572403'/>
<id>9ab43c91221f05cd0912c03e37eff153b6572403</id>
<content type='text'>
Adding support for Powershell package manager to Chef package provider</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding support for Powershell package manager to Chef package provider</pre>
</div>
</content>
</entry>
<entry>
<title>Respond to review comments and chefstyle</title>
<updated>2016-11-10T12:06:37+00:00</updated>
<author>
<name>Thom May</name>
<email>thom@chef.io</email>
</author>
<published>2016-10-06T13:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=65135ccabb85dd4c20982492f1f2cfeed6b12570'/>
<id>65135ccabb85dd4c20982492f1f2cfeed6b12570</id>
<content type='text'>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Thom May &lt;thom@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Code style fixes; :lipstick:</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-15T17:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=fd5d5238c95d3d5d9a25812f91295805a90026cf'/>
<id>fd5d5238c95d3d5d9a25812f91295805a90026cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>launchd: start_calendar_interval validity checking</title>
<updated>2016-11-10T12:02:11+00:00</updated>
<author>
<name>Andrew Burns</name>
<email>andrew@fetlife.com</email>
</author>
<published>2016-07-14T15:15:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=29ff4157f6144cc73967414cea60d7f426f00b91'/>
<id>29ff4157f6144cc73967414cea60d7f426f00b91</id>
<content type='text'>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
StartCalendarInterval has some gotchas so we coerce it to sanity check.

According to `man 5 launchd.plist`:
  StartCalendarInterval [is a] &lt;dictionary of integers or array of dictionaries of integers&gt;
    ... Missing arguments are considered to be wildcard.

What the man page doesn't state, but what was observed (OSX 10.11.5, launchctrl v3.4.0) is that key that are specified, _but with invalid values, will also be silently treated as a wildcard values.

This means that an entry like:
  { "Hour"=&gt;0, "Weekday"=&gt;"6-7"}
will not just run on midnight of Sat and Sun, rather it will run _every_ midnight.

We check to make sure that the values are integers and not strings, adhering to the manpage documentation.

This also ensures that only keys that StartCalendarInterval supports will be passed.
This eliminates passing a key (like `:hour` or `'hour') and thinking it works when in reality launchd is just treating it as a wildcard.

NOTE: This is a "breaking" change in that: it will break existing cookbooks that are using the current docs: https://docs.chef.io/resource_launchd.html (See start_calendar_interval); however the generated plist doesn't appear to actually do what was intended anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>Additional changes based on more review comments</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-11-03T09:45:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a067259401905a42babd8ae083682b4e83185b7e'/>
<id>a067259401905a42babd8ae083682b4e83185b7e</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Modified code based on review comments</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-10-28T13:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=526cf1e86182a5376343311df5dc61b215d7aafb'/>
<id>526cf1e86182a5376343311df5dc61b215d7aafb</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Added unit specs for powershell package</title>
<updated>2016-11-10T09:06:56+00:00</updated>
<author>
<name>dheerajd-msys</name>
<email>dheeraj.dubey@msystechnologies.com</email>
</author>
<published>2016-10-25T11:17:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d79417f1e3fcd589c29f0527fe57cb68ad150ac8'/>
<id>d79417f1e3fcd589c29f0527fe57cb68ad150ac8</id>
<content type='text'>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: dheerajd-msys &lt;dheeraj.dubey@msystechnologies.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #5063 from ChaosCloud/master</title>
<updated>2016-11-01T07:36:49+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-11-01T07:36:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=9d09f9e23db45eaf71bc9421507a25fccac1293b'/>
<id>9d09f9e23db45eaf71bc9421507a25fccac1293b</id>
<content type='text'>
service - upstart restart does not uses latest job config, need start/stop</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
service - upstart restart does not uses latest job config, need start/stop</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #5486 from chef/COOL-413/getent-on-solaris-doesnt-work</title>
<updated>2016-10-31T20:22:28+00:00</updated>
<author>
<name>Tom Duffield</name>
<email>tom@chef.io</email>
</author>
<published>2016-10-31T20:22:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=ed3af24ec3bae4419b3a13700e08283b81b8694a'/>
<id>ed3af24ec3bae4419b3a13700e08283b81b8694a</id>
<content type='text'>
Properly check lock status of user on solaris2</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Properly check lock status of user on solaris2</pre>
</div>
</content>
</entry>
<entry>
<title>Solaris users are locked only if *LK*</title>
<updated>2016-10-31T17:53:26+00:00</updated>
<author>
<name>Tom Duffield</name>
<email>tom@chef.io</email>
</author>
<published>2016-10-31T17:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a47b1840e6c7b356b79bd535033ba4cf50231bc3'/>
<id>a47b1840e6c7b356b79bd535033ba4cf50231bc3</id>
<content type='text'>
According to `man shadow` on Solaris 10 and 11, an account is only
locked if the first four characters in the password field are
`*LK*`. The same is true for SmartOS (the OS for which the initial code
was contributed).

Signed-off-by: Tom Duffield &lt;tom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to `man shadow` on Solaris 10 and 11, an account is only
locked if the first four characters in the password field are
`*LK*`. The same is true for SmartOS (the OS for which the initial code
was contributed).

Signed-off-by: Tom Duffield &lt;tom@chef.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
