This cookbook provides a custom resource to configure and manage Amazon Web Services Storage Gateway virtual machines on RHEL9/KVM.
None.
The aws_sgw custom resource manages an AWS Storage Gateway Virtual Machine.
:install- Installs KVM and caches the VM templates (required before :create):create- Creates a new AWS Storage Gateway VM:delete- Removes a pre-existing AWS Storage Gateway VM
aws_partition- (String) AWS Partition. Default:commercialcpu_allocation- (Integer) The number of virtual CPUs to be allocated by the virtual machine. Default:2mem_allocation- (Integer) The amount of memory (in kilobytes) to be allocated for the virtual machine. Default:16384primary_disk- (Integer) The amount of storage (in gigabytes) to be initially allocated for the virtual machine. Default:80cache_disk- (Integer) The amount of storage (in gigabytes) to be initially allocated for the virtual machine. Default:160
In metadata.rb you should declare a dependency on this cookbook. For example:
depends 'aws-storage-gateway-kvm'A recipe using this custom resource may look like this:
aws_sgw 'devcomm-sgw' do
aws_partition 'commercial'
cpu_allocation 2
mem_allocation 8192
primary_disk 2
cache_disk 1
action %i(install create delete)
end- Fork the project on GitHub
- Commit your changes to your fork
- Send a pull request
- Author:: Erin L. Kolp (erinlkolpfoss@gmail.com)
Copyright (c) 2025 Erin L. Kolp
Licensed under the MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.