diff options
author | Tim Smith <tsmith@chef.io> | 2021-06-07 10:31:33 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2021-06-13 13:11:07 -0700 |
commit | 494e7ed6ae56438aad952d8b072bc5a3c3615224 (patch) | |
tree | 1073a020f2760eb59ece36a25e9f15d97818f9d3 /kitchen-tests/cookbooks | |
parent | a5c04443634b7a780a764191f3a80bed2c8c2218 (diff) | |
download | chef-494e7ed6ae56438aad952d8b072bc5a3c3615224.tar.gz |
Add the ability to attach to an existing printer port
The windows_printer_port resource offers a number of options for
creating an advanced printer port. Let users create a printer that
attaches to a port.
This also properly builds current_resource and nukes the terrible
printer_exists?
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests/cookbooks')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_windows_printer.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_windows_printer.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_printer.rb index 9b7f5c91d8..18da8af3b0 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/_windows_printer.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_printer.rb @@ -22,3 +22,17 @@ end windows_printer_port "10.4.64.37" do action :delete end + +# create a printer that will also create the port +windows_printer "HP LaserJet 6th Floor" do + ipv4_address "10.4.64.40" + driver_name "Generic / Text Only" +end + +# create a printer that uses an existing port +windows_printer "HP LaserJet 5th Floor" do + ipv4_address "10.4.64.41" + driver_name "Generic / Text Only" + port_name "My awesome printer port" + create_port false +end |