summaryrefslogtreecommitdiff
path: root/lib/chef/provider
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5315 from ↵Bryan McLellan2016-11-111-0/+114
|\ | | | | | | | | MsysTechnologiesllc/dh/adding_powershell_package_manager_support Adding support for Powershell package manager to Chef package provider
| * Additional changes based on more review commentsdheerajd-msys2016-11-101-31/+23
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * Modified code based on review commentsdheerajd-msys2016-11-101-35/+21
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * Added unit specs for powershell packagedheerajd-msys2016-11-102-33/+41
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
| * Added code for adding support for powershell package managerdheerajd-msys2016-11-102-0/+128
| | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* | Respond to review comments and chefstyletm/rescue_5115Thom May2016-11-101-1/+1
|/ | | | Signed-off-by: Thom May <thom@chef.io>
* Fixed 5459 - Purge yum cache before deleting repo config (#5509)Ian C. Ward2016-11-071-7/+6
| | | Signed-off-by: Ian C. Ward <ian.ward@disney.com>
* Add a default GID for user creation on MacOS (#5393)cgerke2016-11-021-3/+8
| | | | | | | | | | | | * Avoid ArgumentError new_resource.gid.to_s will be empty if a recipe calls the user resource without gid and changes the home property. Will result in an exception and if chef is run by root, the home dir will end up being owned by root from the mv. * Avoid chown issues when using manage_home and not specifying a gid Using a sensible CONSTANT for gid when new_resource.gid.nil? Signed-off-by: Chris Gerke <chris.gerke@gmail.com>
* Merge pull request #5063 from ChaosCloud/masterLamont Granquist2016-11-011-9/+25
|\ | | | | service - upstart restart does not uses latest job config, need start/stop
| * Merge branches 'master' and 'master' of https://github.com/chef/chefAbhishekKr2016-10-085-23/+19
| |\
| * | DCO, comment for motive of :upstart_service_runningAbhishekKr2016-10-061-0/+1
| | |
| * | Merge branch 'master' of https://github.com/chef/chefAbhishekKr2016-10-0613-28/+216
| |\ \
| * | | service - upstart restart - service status managed via attr_accessorAbhishekKr2016-09-101-8/+19
| | | |
| * | | Merge branch 'master' of https://github.com/chef/chefAbhishekKr2016-09-1035-128/+521
| |\ \ \
| * \ \ \ Merge branch 'master' of https://github.com/chef/chefAbhishekKr2016-07-316-11/+23
| |\ \ \ \
| * | | | | service - upstart restart - fixing specs and call of stopAbhishekKr2016-06-291-2/+2
| | | | | |
| * | | | | service - upstart restart does not uses latest job config, need start/stopAbhishekKr2016-06-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | latest upstart job config is not used by /sbin/restart but retains oiginal http://upstart.ubuntu.com/cookbook/#restart
* | | | | | Merge pull request #5486 from chef/COOL-413/getent-on-solaris-doesnt-workTom Duffield2016-10-311-12/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Properly check lock status of user on solaris2
| * | | | | | Solaris users are locked only if *LK*COOL-413/getent-on-solaris-doesnt-workTom Duffield2016-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | Properly check lock status of user on solaris2Tom Duffield2016-10-311-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | Merge pull request #5395 from b1-systems/locking_Thom May2016-10-314-0/+96
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | package locking for apt, yum and zypper
| * | | | | | | fixed apt-mark commandsEike Waldt2016-09-291-2/+2
| | | | | | | |
| * | | | | | | fixed styleEike Waldt2016-09-291-2/+0
| | | | | | | |
| * | | | | | | added locking for yumEike Waldt2016-09-291-0/+22
| | | | | | | |
| * | | | | | | added package_locked Method for aptEike Waldt2016-09-291-0/+12
| | | | | | | |
| * | | | | | | fixed styleEike Waldt2016-09-291-27/+27
| | | | | | | |
| * | | | | | | added corrections mentioned by @lamont-granquist in ↵Eike Waldt2016-09-292-22/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/chef/chef/pull/5395
| * | | | | | | fixed styleEike Waldt2016-09-282-5/+5
| | | | | | | |
| * | | | | | | added (un)lock_package for apt and zypperc52275322016-09-283-35/+19
| | | | | | | |
| * | | | | | | implement lockingc52275322016-09-282-0/+73
| | | | | | | |
* | | | | | | | Merge pull request #5394 from ↵Bryan McLellan2016-10-271-2/+3
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | Newly creating uninstall string using the product code value retrieved from ↵aliasgar162016-10-131-2/+3
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the uninstall_string of the Windows registry to avoid using invalid uninstall_string. Signed-off-by: aliasgar16 <aliasgar.batterywala@msystechnologies.com>
* | | | | | | Merge pull request #5483 from chef/lcg/package-inline-resourcesLamont Granquist2016-10-241-5/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Core: set use_inline_resources in package superclass
| * | | | | | | set use_inline_resources in package superclassLamont Granquist2016-10-211-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allows subclasses to use_inline_resources (hab_package will most likely want this) Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | | | | | Use `all?` instead of `any?` to check for SUSE usersTom Duffield2016-10-211-1/+1
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `all?` will return `false` when the array is empty. Signed-off-by: Tom Duffield <tom@chef.io>
* | | | | | | Merge pull request #5476 from tas50/copyrightsLamont Granquist2016-10-211-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix copyrights and update a few more Opscode references to Chef
| * | | | | | | More Opscode -> Chef updatesTim Smith2016-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | | | | | Merge pull request #5472 from chef/COOL-597/address-suse-test-failuresTom Duffield2016-10-211-4/+23
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Address test failures in SUSE 11.4 and 12.1
| * | | | | | | | Raise error if suse group manager adds non-existent userCOOL-597/address-suse-test-failuresTom Duffield2016-10-201-4/+23
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expected behavior of chef, as defined by our tests, is that if a user specified in a group resource does not exist than chef should raise an error. On suse, we use groupmod which will not raise an error if you attempt to add a non-existent user to a group. This change adds in a simple check that will raise an error if the specified does not exist. Signed-off-by: Tom Duffield <tom@chef.io>
* | | | | | | | fixes for rubocop 0.44.1 enginelcg/rubocop-0.44.1Lamont Granquist2016-10-202-4/+5
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a few cops we have enabled got a little more accurate/stricter Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | | | | Style fix - change single quotes to doublePeter Walz2016-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Peter Walz <pnw@umn.edu>
* | | | | | | Remove leading and trailing quotes when reading certain environment variablesPeter Walz2016-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a side effect of #5127 where if a `cron` resource sets MAILTO, PATH, SHELL, or HOME, it gets updated with every chef-client run. Signed-off-by: Peter Walz <pnw@umn.edu>
* | | | | | | Refactored Chef::Provider::User to short circuit and provider better ↵Geoffrey Hichborn2016-10-131-6/+4
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | comparison of home paths to fix Issue #5444 Signed-off-by: Geoffrey Hichborn <geoff@socialcast.com>
* | | | | | fix manage_home provider inconsistencylcg/manage-home-consistencyLamont Granquist2016-10-065-23/+19
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on freebsd and mac we're now telling people to use `manage_home` instead of `supports[:manage_home]` but it doesn't actually work. fixes that so that it works now. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | | | Merge pull request #5408 from coderanger/solaris-mNoah Kantrowitz2016-10-061-2/+4
|\ \ \ \ \ | | | | | | | | | | | | Fix solaris handling for useradd -m/-M behavior
| * | | | | Fix solaris handling for -m/-M behavior. Fixes #5403.Noah Kantrowitz2016-10-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | | | | Merge pull request #5290 from bai/better-apt-key-cacheThom May2016-10-041-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Normalize full key name to avoid resource update on identical key names
| * | | | | | Normalize full key name to avoid resource update on identical key namesVlad Gorodetsky2016-09-191-1/+1
| | | | | | |
* | | | | | | Merge pull request #5382 from pwalz/fix-15update-stampThom May2016-10-041-1/+1
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Add trailing newline to generated 15update-stamp
| * | | | | | Add trailing newline to generated 15update-stamp (obvious fix)Peter Walz2016-09-231-1/+1
| | | | | | |