| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Move the if windows statement from the entire resource to the actual
place where we used Windows specific code. This makes it so we can use
chefspec and the chef-resource-inspector for this resource.
Signed-off-by: Tim Smith <tsmith@chef.io>
(cherry picked from commit 8757bab03081dcbcec159614b67969a9387900bf)
|
|
|
|
| |
Signed-off-by: Stuart Preston <stuart@chef.io>
|
|\
| |
| | |
Backport: Defer running initramfs_command until end of run
|
| |
| |
| |
| | |
Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
|
|\ \
| | |
| | | |
Backport: Allow multiple local and remote ports in the windows_firewall_rule resource
|
| | |
| | |
| | |
| | |
| | |
| | | |
Otherwise it won't compare to the PS output
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Allow ports to be an integer
Allow ports to be a comma separated list or an array
Workaround a bug in PowerShell where arrays that are converted to json turn into hashes with the count and the value
The quotes around the port are removed because you can't pass '80,8080' in the cmdlet. It has to be a bare 80,8080
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
We were quoting a lot of odd things like empty arrays or empty strings. The original intent was to quote symbols. Let's just stick to that.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Better descriptions for many name properties and copy edits from the docs site.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
Update descriptions to match the edits that were done to the docs site. Also fix windows_share to lazily eval the arrays, which is a bugfix + a docs fix the way we generate docs right now.
Signed-off-by: Tim Smith <tsmith@chef.io>gi
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Backport: Add windows_firewall_rule resource
|
| |
| |
| |
| |
| |
| |
| | |
In master (chef-15) this wasn't necessary, but we want the cookbook to
win for Chef 14.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
|
| |
| |
| |
| | |
Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
|
|\ \
| | |
| | | |
Add more validation_messages to properties
|
| |/
| |
| |
| |
| |
| | |
Provide users with more helpful messages
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>
|
|
|
|
| |
Signed-off-by: kapil chouhan <kapil.chouhan@msystechnologies.com>
|
|\
| |
| | |
Backport: Multiple fixes to dmg_package including functional EULA acceptance
|
| |
| |
| |
| |
| |
| | |
Turns out it was breaking due to the quiet flag. Sadly there was a PR to turn off this flag from 3 years ago in the old cookbook repo :(
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Pulls in https://github.com/chef-boneyard/dmg/pull/24 which avoids the current regex like method and instead requires an exact match.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
We access this multiple times in this resource
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
This is a old legacy leftover from LWRP-land
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| |
| |
| | |
More passphrase_cmd and software_license_agreement over to helper methods that we can potentially test later on.
Improve the requires EULA error message
Use a default value for volumes_dir that sets it to the value of the app property instead of creating a variable later.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Do this natively in Ruby.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
This isn't necessary since this is a custom resource
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
We created a variable with the same name as the property and this probably did the right thing in Chef 11, but what we really want is dmg_name to take on the app name by default. Now it does.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
This was probably added before use_inline_resources was a thing
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Remove the need for tracking state in the installed property
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Backport: Add windows_share and windows_certificate resources
|
| | |
| | |
| | |
| | |
| | |
| | | |
I missed the 14.6 window
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | |
| | |
| | |
| | |
| | |
| | | |
We're doing this same thing in the execute resource.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks @stuartpreston
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |/
| |
| |
| |
| |
| | |
Move two additional resources over from the windows cookbook. With these moved we're pretty close to fully deprecating the windows cookbook.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
Moving towards a world where we properly load the current state. Adds a method that grabs the current timezone and properly fails with a warning message if we don't have the privs we need. Using converge_by and shell_out to set the timezone so we get a nice clean converge messaging vs. execute resources. Also improves the description to give a link to where users can find all the TZ options.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\
| |
| | |
Automated resource documentation improvements
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
skip_docs is used to specify a property that we don't want to include in the documentation. We have several of these.
default_description is used to describe the default in a way we'd want to put on the docs site. This is particularly useful for describing all our lazy / computed values.
I've used both of these in resources to show how I think we'll use them.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
Minor syncs from the docs site.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
|
| |
We try to coerce the array into a Hash, but we don't allow the Array
value. This makes this actually work as we documented it.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
There was a double source in the command, which would fail.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Anton Kvashenkin <anton.jugatsu@gmail.com>
|
|
|
|
|
|
|
| |
Simplifies this code a bit, but it also the safe thing to do in the
event that the timezone has a space.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Adding this resource to core Chef with permission from @dragonsmith
Signed-off-by: Tim Smith <tsmith@chef.io>
|