| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/temp-dir-using-mkdir-instead-of-mktemp
Chef-15: Make temp dir using mkdir instead of mktemp
|
| |
| |
| |
| |
| |
| | |
- Added sudo chown to fix permission denied error.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
| |
| |
| |
| |
| |
| | |
- mktemp does not exist for AIX system.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|\ \
| | |
| | |
| | |
| | | |
MsysTechnologiesllc/dh/MSYS-1057_fix_knife_node_environment
fix knife node environment set output
|
| |/
| |
| |
| | |
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
|
|\ \
| | |
| | |
| | |
| | | |
chef/Kapil/MSYS-1065_rhsm_repo_disable_does_not_support_wildcard
Fix for rhsm_repo disable does not support wildcard
|
| |/
| |
| |
| | |
Signed-off-by: Kapil chouhan <kapil.chouhan@msystechnologies.com>
|
|\ \
| |/
|/| |
zypper_package upgrade action not working
|
| |
| |
| |
| | |
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This isn't Java and Net::HTTP can throw a billion things, so just rescue
(nearly) everything. I have a hard time imagining that there's a
failure here that we wouldn't want to ignore, other than the ones like
OOM thrown by Exception that indicate internal failures.
Also only throw the "this is normal" info message on 404s, other
responses like 500s should be warns even if it is set to ignore
failures (people with data collectors correctly setup need to know about
500s even if we keep going, since that is abnormal).
This also fixes a bug in handling exceptions like Timeout::Error which
do not have a response.code at all which would throw NoMethodError.
closes #8749
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Somehow this got converted to a bare integer in Chef-15 refactoring
which causes the server-side to reject it, so reverting back to the
old format.
Closes #8532
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \
| | |
| | | |
Implement disable for disabling kernel_modules
|
| | |
| | |
| | |
| | |
| | |
| | | |
This allows inspec kernel_module be_disabled to work
Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
|
|/ /
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
We're running this all in buildkite w/o issues.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
found one.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
exposed by Style/SymbolProc mangling some bad code.
no idea how this ever worked.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Layout/MultilineMethodCallBraceLayout
- Layout/ClosingParenthesisIndentation
- Layout/IndentFirstArgument
EnforcedStyle: consistent
- Layout/BlockEndNewline
the first of these autocorrected to horrible looking code which exposed
that we really needed the other three as well, which also cleaned up a
bunch of other terrible looking code.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
enforce pretzels.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
since we use double quotes, be consistent everywhere.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
convert kind_of? to is_a?
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| | |
given how many regexps we have with /'s in the match this seems like
a very good one.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Lint/BlockAlignment:
Enabled: true
EnforcedStyleAlignWith: start_of_block
this works better with Layout/MultilineMethodCallIndentation to
force indentation of multiline method calls that wind up with multiline
blocks.
i'd probably pull back the end to match with the start of the expression
but this gets the indentation level inside the block correct.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
zero args methods don't get parens.
this certainly reads better than the inverse.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| | |
start enforcing using %i{} instead of arrays of symbols
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| | |
i like this one, gives visual priority to returns or raises that are
buried in the middle of things.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
this is using:
Layout/AlignArguments:
Enabled: true
EnforcedStyle: with_fixed_indentation
the default style can use really excessive whitespace. on starting
lines which are already long, it fully indents across to where the
arguments start and then begins the line there.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
result of automation
https://github.com/chef/chefstyle/pull/72
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| | |
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
|
|\ \
| | |
| | | |
(GH-8634) Add ability to further configure source
|
| | |
| | |
| | |
| | | |
Signed-off-by: Gary Ewan Park <gep13@gep13.co.uk>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This provides the ability to set additional properties for a Chocolatey
source with properties `admin_only` and `allow_self_service`. As well
as the ability to enable/disable a source.
Signed-off-by: Gary Ewan Park <gep13@gep13.co.uk>
|
|\ \ \
| | | |
| | | | |
Ignore noisy outputs at create temp_dir during bootstrap
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.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>
|
| |/
|/|
| |
| |
| |
| |
| | |
This works better as part of the module that handles all the config
wrangling. It isn't central to the data_collector operation itself.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Deprecation logic is now available in `mixlib-cli`
via `deprecated_option`. Let's use that instead
of keeping our custom deprecation behavior.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|\ \
| | |
| | | |
Enable more BK verification tests
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
- Handles "-x" that was used to set "winrm-user" and is now Deprecated.
- Using symmetrical "USERNAME" and "PASSWORD" verbiages while displaying deprecated warnings.
- Added test cases
- Ensured Chefstyle
- Fixes MSYS-1046
Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
|
|\ \
| | |
| | | |
more distro constants
|
| |/
| |
| |
| | |
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
|