| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We need to rethink this spec. The 1:1 mapping stuff doesn't seem like it has a lot of value. The portion below where we test 1:many mappings seem to be the value. I want to know the right thing mapped to package, service, or user on Debian XYZ.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Don't require providers in the resources since we map these automatically. Also remove or simplify the platform restrictions in the provides lines in the resources. We're not really getting anything from these the way we wire up resources.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Rename bff provider to match its resource
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Convert more set_or_returns to proper properties
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We're not longer initializing user to nil and instead we're letting
property handle it. This user => nil statement isn't the actual test
here, but was just a workaround for the funky behavior.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \
| | | |
| | | | |
Remove explicit setting of @provider and depend on ProviderResolver
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Developer's Certificate of Origin 1.1
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>
|
|\ \ \ \
| | | | |
| | | | | |
remove deprecated property namespace collisions
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
require writing `new_resource.my_property` instead of just
`my_property` in provider code.
a surprise in this code was that methods directly on the
resource are all injected into the provider, and we never
deprecated that, because we didn't know about it.
that makes `action_class {}` helpers unnecessary, but causes
additional namespace pollution, but at least the methods declared
in the resource will lose to DSL methods (i.e. `def execute`
will not work).
but that also means that resources which are injected into the DSL
which overwrite resource methods in other cookbooks may break
their use in that cookbooks providers/action_classes.
we should probably deprecate that as well, but we didn't and
people probably found this behavior and used it.
i cleaned it up a bit and removed the methods on Chef::Resource
directly which polluted the provider class with all kinds of
bizzare crap methods (not_if and only_if were getting injected
into the provider, etc).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \
| | | | |
| | | | | |
Added source_file to FromFile
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | | |
This new field tracks the file from which the object was loaded.
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
|
| |/ /
|/| |
| | |
| | |
| | |
| | | |
My previous PR to apt_repository introduced a bug where gpg keys couldn't validate. This converts a raise to an execute so it all happens during converge.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \
| | | |
| | | | |
Remove support for Windows 2003
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Windows 2003 is fully end of life at this point and hasn't been supported by Chef for quite a while. EXTENDED support for Windows 2003 ended July 14, 2015. We avoid a good number of WMI queries by removing this support entirely.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \ \
| | | | |
| | | | | |
add a utility to dump info about resources
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Thom May <thom@chef.io>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Don't use supervisor process for one-shot / command-line runs
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
the option doesn't even exist due to it being omitted at class-parsing time.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
also more broadly applies the integration tests to legacy mode which was
the original intent of the chef-solo tests in client_spec.rb here
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
without --interval we default to --no-fork, with --interval we default
to running --fork. --once and --daemonize are handled before this code
so they will also DTRT.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
Add attribute hoisting into core
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
code removed
Signed-off-by: Jon Cowie <jonlives@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This commit implements RFC-105 and adds specs to verify attribute hoisting is working correctly in conjunction with existing attributes.
Signed-off-by: Jon Cowie <jonlives@gmail.com>
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
registry_key: Properly limit allowed values for architecture
|
| | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Partially modernize registry_key resource. The main fix here is that we limit what symbols can be passed to the architecture property now where as before it was wide open. This will probably help a bit since the docs are a bit confusing and also enormous.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Modernize provides in the portage_package resource
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We're not doing this in other resources and we let Chef handle it all
with provides now
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Apt repo cleanup and testing expansion
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This logic was entirely different than the key validation and doing them in the same block didn't make any sense. This makes it a lot easier to follow as well since there isn't the cmd variable that requires searching the code to see what we're actually running
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
windows_feature_dism resources
Ported from the windows cookbook 4.0
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove the previously deprecated :uninstall action for
chocolatey_package. This is noted in CHEF-21
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \ \ \
| | | | |
| | | | | |
Stop mixlib-cli default clobbering mixlib-config settings
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The pre-14 precedence level is:
1. mixlib-cli setting
2. mixlib-cli default
3. mixlib-config setting
4. mixlib-config default
This means that if an option has a mixlib-cli default that it cannot
ever be set in the config file.
This PR swaps 2+3 around:
1. mixlib-cli setting
2. mixlib-config setting
3. mixlib-cli default
4. mixlib-config default
Now the mixlib-cli defaults still take precedence over mixlib-config
defaults, but it is possible to set a value in config.rb if there's
a mixlib-cli default setting (which creeps into the settings in hidden
ways if you just use `boolean: true` in mixlib-cli).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Raise fatal error If FQDN duplicated
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: linyows <linyows@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: linyows <linyows@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: linyows <linyows@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: linyows <linyows@gmail.com>
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Add support for knife bootstrap-preinstall-command
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: S. Cavallo <smcavallo@hotmail.com>
|
|\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
Add windows auto_run, font, pagefile, printer, printer_port, and shortcut resources
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
resources
Ported from the Windows cookbook
Signed-off-by: Tim Smith <tsmith@chef.io>
|