| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Core: Structure deprecations with additional metadata
|
| |
| |
| |
| |
| |
| |
| |
| | |
This adds URLs to each class of deprecation, and correctly prints and
formats them for maximum user efficiency. We also provide the URL to the
data collector for Visibility to ingest.
Signed-off-by: Thom May <thom@chef.io>
|
|/
|
|
|
|
| |
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
|
|\
| |
| | |
fix ImmutableArray slices
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|/
|
|
|
|
| |
these all seem like useless uses of semicolons.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| |
| |
| | |
MsysTechnologiesllc/dh/adding_powershell_package_manager_support
Adding support for Powershell package manager to Chef package provider
|
| |
| |
| |
| | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Thom May <thom@chef.io>
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
StartCalendarInterval has some gotchas so we coerce it to sanity check.
According to `man 5 launchd.plist`:
StartCalendarInterval [is a] <dictionary of integers or array of dictionaries of integers>
... 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"=>0, "Weekday"=>"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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
We 1/2 wired up the noop functionality, but specifying that we only provided the resource on Linux caused that code to never run.
This prevents this sort of error on non-Linux platforms:
```
Cannot find a resource for apt_update on windows version 6.3.9600
```
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
| |
scientific linux, oracle, etc, etc...
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|
|
|
|
|
|
|
|
|
| |
Third-party data collector implementations are supported and may not
require a token for authentication. Therefore we must allow the case
where the token is nil in Chef Solo mode. To reduce the chance that the
data collector is accidentally enabled, only set the data collector URL
to a default value in Chef Client mode.
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|
|
|
| |
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|
|
|
| |
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|
|
|
| |
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|
|
|
|
|
|
|
|
|
| |
* When the data collector is enabled but the token is nil, data
collector will use signed header auth.
* Switch data collector to an HTTP client that includes the JSON content
middlewares so both auth methods talk to the `http` object the same
way.
Signed-off-by: Daniel DeLeo <dan@chef.io>
|
|\
| |
| | |
Add deprecations to Data Collector competion message
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
By adding deprecation warnings to Data Collector, receivers of
Data Collector messages can easily identify nodes that would need
attention to their versions/cookbooks before a major version Chef
upgrade would be successful.
Signed-off-by: Adam Leff <adam@leff.co>
|
|\ \
| | |
| | | |
Updating knife ssl fetch to correctly store certificate when it does not have a CN
|
| | |
| | |
| | |
| | |
| | |
| | | |
contain a common name. Stores the certificate under the URI host instead of the common name in that case
Signed-off-by: tyler-ball <tyleraball@gmail.com>
|
|\ \ \
| | | |
| | | | |
Core: add attribute_changed hook to event handlers
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \
| | | | |
| | | | | |
service - upstart restart does not uses latest job config, need start/stop
|
| |\ \ \ \ |
|
| |\ \ \ \ \ |
|
| | | | | | | |
|
| |\ \ \ \ \ \ |
|
| |\ \ \ \ \ \ \ |
|
| | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|/ /
|/| | | | | | | | |
Core: improve readability of property-resource namespace collision exception message
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
Properly check lock status of user on solaris2
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
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 <tom@chef.io>
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
On Solaris, the 'shadow' database does not exist within `getent`, so the
checking for the username there won't return accurate results. As the
Solaris provider assumes user management via /etc/shadow, we can very
easily parse the contents of the file directly.
Signed-off-by: Tom Duffield <tom@chef.io>
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
package locking for apt, yum and zypper
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
This test was originally written against a KnifeSupport that wasn't
actually pulling in the instance variables (i.e. :attribute) when
parsing the data. When running this command manually with Knife
v12.15.19, I get the output as now described in this test.
Signed-off-by: Tom Duffield <tom@chef.io>
|
| |_|_|_|_|_|_|_|/
|/| | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
For the commands that allow you to filter which attributes it shows you
using the `--attribute` flag, add the `--field-separator` flag to allow
the user to customize which character(s) they want to use to deliniate the
attribute hierarchy.
```shell
knife node show NODE -S: -a "packages:Chef Client v12.12.15"
```
Signed-off-by: Tom Duffield <tom@chef.io>
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|_|/
|/| | | | | | | |
| | | | | | | | |
| | | | | | | | | |
MsysTechnologiesllc/ali/package_resource_uninstall_fix
Newly creating uninstall string using the product code value retrieved from the uninstall_string of the Windows registry to avoid using invalid uninstall_string.
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
the uninstall_string of the Windows registry to avoid using invalid uninstall_string.
Signed-off-by: aliasgar16 <aliasgar.batterywala@msystechnologies.com>
|