| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
- Add check to avoid total if zero or nil.
- Set @progress[resource] default value to -1 so that it can start with 0%.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|
|
|
|
|
|
|
|
| |
* Use default windows 2019 image
* Skip 8dot3name tests as default disabled on 2019
* Use windows privileged executor for functional tests
* Use windows docker image for chocolatey tests
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
|
|\
| |
| | |
dnf_package fixes for RHEL8 backport to chef-14
|
| |
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Signed-off-by: Adam Ward <adamw@subdesigns.net>
|
| |
| |
| |
| | |
Signed-off-by: Joshua Justice <jjustice6@bloomberg.net>
|
|/
|
|
|
|
|
| |
- Added option to skip gem metadata installation
- Added test cases for gem installer
Signed-off-by: Amol Shinde <amol.shinde@msystechnologies.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is inspired by "use_inline_resources".
Setting `unified_mode false` in a resource would be the existing
behavior with separate compile/converge phases.
Setting `unified_mode true` in a resource will eliminate the converge
phase. Reverse notifications and delayed notifications will still
fire. The resource action will behave like all resources are executing
at compile time.
As a aside, notifications have never worked for resources firing at
compile time. This implementation gets that behavior correct so
that notifications will work.
Of course forward immediate notifications to resources not yet declared will not
be possible.
Setting `resource_unified_mode_default true` in `Chef::Config` would
turn off the split compile/converge mode for every custom resource.
NOTE: This does not affect recipe mode at all.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| |
| |
| | |
MsysTechnologiesllc/VSingh/chef-14/raise-error-bootstrap-chef-15-from-chef-14
Chef-14: Raise an error on Chef 14 when trying to bootstrap Chef 15
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|/
|
|
| |
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
|
|
|
|
|
|
|
| |
Chef::Resource::Service tests were failing on SLES 11 x86_64
and SLES 11 s390x because the permissions weren't correct.
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
|
|
|
|
|
|
|
|
|
| |
Fixes #8433
When we added trace this check wasn't changed, which means you only saw
the stacktrace for 2 (-VV) but not for 3 (-VVV)
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|\
| |
| | |
Fix for cron resource get confused by environment/property mismatch
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
can also be specified as a `property`
- Added unit test cases
- Ensured chefstyle
- Added a warning in case user is using a `environment` for an entry that can also be specified as a `property`
- Revert changes in order to pass chefstyle
- Added a warning in case user is using a `environment` for an entry that can also be specified as a `property`
- Added these changes in cron_different? method
- Added unit test cases
- Added some changes in cron.rb
- It now throws error if user passes both environment with the {:SHELL, :HOME, :PATH, :MAILTO} and these properties itself.
- It maintains idempotency.
- Added Rspecs for this case.
- Ensured chef-style.
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
|\ \
| |/
|/| |
Fix for write permissions were not working properly on windows
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Using proper verbiage for constant SUBFOLDERS_AND_FILES_ONLY
- Source
https://metacpan.org/pod/Win32::Security::ACE#dbmAceFlags
- Minor DRY up and Fixes
- Ensured chefstyle
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Added functional test cases for deny_rights option
- Ensured chef style
- Fixes MSYS-958
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Using proper verbiage for constant WRITE
- Source
https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.filesystemrights?view=netframework-4.7.2#fields
- Straight away using constants instead of it's fully qualified path
- Minor DRY up and Fixes
- Fixed functional test cases
- Ensured chefstyle
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
|\ \
| | |
| | | |
Use exports compatibile with /bin/sh in the bootstrap script
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
The bootstrap script is explicitly using /bin/sh.
On some solaris servers the version of /bin/sh exporting environment variables
using "export id=value" fails. The form "id=value export id" does work.
Bootstrap fails when the wrong form is used.
Signed-off-by: markgibbons <mark.gibbons@nordstrom.com>
|
|\ \
| | |
| | | |
Improving error handling for template render
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While Chef already implements a nice amount of information
in `TemplateError#to_s`, when using ChefSpec with RSpec, the `#to_s`
is not called, leaving us with no source information for template
errors.
By adding the filename to `Erubis::Eruby` initialization, we can get
a better backtrace that will show up in RSpec output.
Signed-off-by: Gabriel Mazetto <brodock@gmail.com>
|
|\ \
| | |
| | | |
Tell people what file a link is pointing at.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
In the event you are managing a file `/etc/file` with a `file` resource,
but it turns out to be a link to `/etc/passwd` and you are trying to figure
out what overwrite `/etc/passwd`, there is no indication in the logs. Let's add
one.
Signed-off-by: Phil Dibowitz <phil@ipom.com>
|
|/
|
|
|
|
|
|
| |
with multiple providers
Fixes: https://github.com/chef/chef/issues/6158
Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
|
|\
| |
| | |
Fix service enable idempotency in sles11 (#8256)
|
| |
| |
| |
| |
| |
| | |
* fix service enable idempotency in sles11
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
Switch to only doing warnings. Remove the features in the node_map that
we never used.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
|
|\
| |
| | |
Improve the error message when no config can be loaded
|
| |
| |
| |
| |
| |
| | |
We can English
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Make it more clear that we're going to use the CLI options instead since we couldn't find a config file.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
looks like these have been broken for some time, the tests were only
testing automatic level (which has no "combined" hash version) and
the specs were injecting a plain old hash, so were failing to catch
this error on multiple different levels.
since the automatic level worked and since mostly people use automatic
blacklisting to remove junk from ohai it was very uncommon to hit
this bug.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
|
|
| |
- Added specs for data_bag_create_specs
- Added specs for data_bag_edit_specs
- Added specs for data_bag_show_specs
- Ensured chefstyle
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
|
|
|
|
|
| |
New Windows platforms like 2016 have Powershell 5.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
|
|
|
| |
Some platforms have groups in odd ranges, make sure the gid we select is
not in use.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the
best of my knowledge, is covered under an appropriate open
source license and I have the right under that license to
submit that work with modifications, whether created in whole
or in part by me, under the same open source license (unless
I am permitted to submit under a different license), as
Indicated in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including
all personal information I submit with it, including my
sign-off) is maintained indefinitely and may be redistributed
consistent with this project or the open source license(s)
involved.
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
|
|\
| |
| | |
windows_certificate: Import nested certificates while importing P7B certs
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
certificates
- P7B might contain multiple certificates and we should not miss the internal one while import.
- Added test cases and ensured chef-style
- Fixes: MSYS-977
Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
|
|/
|
|
|
|
|
|
| |
point for AIX.
Add existing mount to enable spec
Signed-off-by: Gavin Reynolds <gavin@chef.io>
|
|\
| |
| | |
windows_certificate: Add support to import Base 64 encoded CER certificates
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Previously, we were building a new OpenSSL::X509::Certificate object with PEM string contents.
- To get this content, we were using openssl utility and were converting all certificate types into PEM
- And were extracting the PEM contents out of resulting data.
- It could directly be done via correct usage of applicable classes.
- Reverted using Open3. It uses shell hence did not solved the purpose.
Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Till now, cer certificates were only considered to be in binary format (DER)
- They can also be base-64 encoded(PEM)
- We should only append "inform DER" only if it is a binary certificate, otherwise, default ("inform PEM") would support base64 encoded certificates.
- Added test caes
- Ensured Chef style
Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
|
|\ \
| | |
| | | |
openssl_dhparam: allow changing file mode on subsequent runs
|
| | |
| | |
| | |
| | | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |/
| |
| |
| | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|/
|
|
|
|
|
| |
- Add missing options cmd args while fetching choco list.
- Fixed rspec.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|