| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | | | |
|
| | |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- fix the 'last' statements (my perl brain occassionally crops up
in ruby code) and replace with a raise. of course this just swaps
one exception for another, but this time its really intended to
work this way.
- swap the order of the expecations so that if we fails to see the
waiting on the other process statement, but we blow up in both
threads in the exception that was just added, we know we actually
have a legit run_lock race condition that this code just found.
does not fix this bug, just gets us a bit more information if it
reoccurs.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Added fix for spaces in profile identifiers
* Added an attempt to test spaces in identifier names
* Derp, bad merge
* Fixed osx profile spec test
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
rewrite linux_user provider check_lock
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
this removes the kinda brittle kinda insane parsing of the installed
rpm version. now we're just less strict about the exit 1 code and
fail on the output not being what is expected.
this also likely fixes a bug in rhel in why-run mode where shell_out!
would have failed on the user-not-found and raised an exception that
would have ended the run. the code before certainly looks buggy.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* Use symbols instead of strings as keys for systemd user property related funcs
* Fix tests for provider/service/systemd for when user property is set
* Change hash in systemctl_opts to use symbols instead of strings
* Fix tests for chef/provider/systemd_unit.rb
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Use upstart goal state as service status
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
Solves #5204
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some properties in custom resources may include sensitive data, such as a
password for a database server. When the Resource's state is built for use by
Data Collector or similar auditing tool, `Chef::Resource#state_for_resource_reporter`
builds a hash of all state properties for that resource and their values. This
leads to sensitive data being transmitted and potentially stored in the clear.
This change enhances properties with the ability to set an individual property
as sensitive and then have the value of that property suppressed when exporting
the Resource's state.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
userdel -r will not remove a homedir not owned by the user, have
to manually rm -rf it.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Rewrite linux useradd provider
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
-M is not valid for usermod
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: Thom May <thom@may.lt>
|
| |\ \ \ \
| | | | |
| | | | | |
fix the useradd test filters
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
try to document it a bit better so i don't accidentally delete it
again.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |\ \ \ \
| |/ / /
|/| | | |
Add a warning for guard blocks that return a non-empty string
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This will hopefully catch errors like this:
myresource 'name' do
not_if { 'some command' }
end
|
| |/ / /
| | |
| | |
| | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |\ \ \
| | | |
| | | | |
fix omnibus test breaks
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
instance_eval ran into namespace issues
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the default behavior of the remove action changed to have manage_home
set toi true to match the :create action
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
mac always gets dscl, windows always gets windows
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |/ / /
| | |
| | |
| | | |
See http://stackoverflow.com/questions/2824126/whats-the-difference-between-uri-escape-and-cgi-escape#answer-13059657 for details on why.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
1. Wait for the start callback rather than the do block, as it happens
later. This prevents us from getting into many conditions where the
start returns before the server is fully initialized, where if stop()
is called too soon after start returns, it would cause exceptions.
2. Wait for the thread to finish completely
3. Use Thread.current.abort_on_exception` to show the actual listen errors,
so that problems like this can be diagnosed.
4. Use :each to start and stop TinyServer so that race conditions like this
are exposed earlier and more often (this will let us rid ourselves of them
more quickly).
5. Use WEBrick::HTTPServer directly, which gets rid of the need for the
complicated trap workaround (rack is the one that traps).
|
| |\ \ \
| | | |
| | | | |
Stop logging "SIGQUIT is not a command" in tests
|
| | | | |
| | | |
| | | | |
This looks like a typo was introduced; we're seeing this in the logs on nodes.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
split out the user provider into 1:1 resources.
fix the behavior of the linux user provider to implement
manage_home behavior correctly.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |\ \ \ \
| | | | |
| | | | | |
speed up solo test
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
when running on my mac this entirely removes all the sleeps
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
removes the requirement that the second wait for the first, just that
one of them waits for the other, so if we ever somehow lose that race
and the second wins the run_lock as long as the first sleeps then its
all good...
drops all the sleeps down a lot, thinking about how to make this more
cleverer so that it doesn't sleep but handshakes properly so that we
don't need 25 seconds of sleep on slowaris tests..
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |/ / /
| | |
| | |
| | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
Don't use relative_path_from on glob results
|
| | | | |
| | | |
| | | |
| | | | |
Windows Ruby 2.3 translates pathnames like ADMINI~1 to Administrator, making the comparison fail.
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I'm not sure how this happened
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|