Skip to content

erinlkolp/chef-aws-storage-gateway-kvm

Repository files navigation

aws-storage-gateway-kvm

This cookbook provides a custom resource to configure and manage Amazon Web Services Storage Gateway virtual machines on RHEL9/KVM.

Requirements

None.

Resources/Providers

The aws_sgw custom resource manages an AWS Storage Gateway Virtual Machine.

Actions

  • :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

Attribute Parameters

  • aws_partition - (String) AWS Partition. Default: commercial
  • cpu_allocation - (Integer) The number of virtual CPUs to be allocated by the virtual machine. Default: 2
  • mem_allocation - (Integer) The amount of memory (in kilobytes) to be allocated for the virtual machine. Default: 16384
  • primary_disk - (Integer) The amount of storage (in gigabytes) to be initially allocated for the virtual machine. Default: 80
  • cache_disk - (Integer) The amount of storage (in gigabytes) to be initially allocated for the virtual machine. Default: 160

Usage

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

Contributing

  1. Fork the project on GitHub
  2. Commit your changes to your fork
  3. Send a pull request

License & Author

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.

About

A Chef custom resource to deploy AWS Storage Gateway File Gateway appliances on RHEL9/KVM.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages