Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Cookbook to Resource-Based (#350)
* Custom resources, library helpers, passing source tests * Add missing resources back to test cookbook Signed-off-by: Lance Albertson <lance@osuosl.org> * Various fixes and refactoring Signed-off-by: Lance Albertson <lance@osuosl.org> * Fixing errors, trying to make community work * Amazon Linux + Centos kinda working * Trying to fix debian * Update metadata.rb * Update metadata.rb * Update metadata.rb * Update community.rb * Update install.rb * Update community.rb * Update install.rb * Update metadata.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update ci.yml * Update metadata.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Update community.rb * Fix amazonlinux version number * Uncomment idempotency lines Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Revert "Fix amazonlinux version number" This reverts commit 8bc17c1. * Uncomment source install code Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Update properties Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Fix cookstyle Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Rename config.rb to ini.rb Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Update default recipe and remove unnecessary helpers Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Comment out source install since @ramereth wants to remove it Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Fix ini resource name and remove default action Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> * Clean up unnecessary code Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix helpers that depend on install_method Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove `new_resource.` from beginning in properties Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove options for source install Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix php_conf_dir being pulled from property instead of helper Signed-off-by: ArtofBugs <oweng@osuosl.org> * Revert order between apt update and php installation Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix nested package resources Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix php_ext_dir substitution in templates Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix cookstyle Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove source from run lists Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove source-install suite from jobs Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix default package installation being inside community conditional Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix cookstyle Signed-off-by: ArtofBugs <oweng@osuosl.org> * Move community and source install content out of php_install resource Signed-off-by: ArtofBugs <oweng@osuosl.org> * Edit properties for customization for community installs Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix conditionals for cookstyle Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix missing assignment operators Signed-off-by: ArtofBugs <oweng@osuosl.org> * Pin php package version for amazon Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix name clash Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix missing fpm_service property Signed-off-by: ArtofBugs <oweng@osuosl.org> * Test and fix fpm_ini_control from #241 Signed-off-by: ArtofBugs <oweng@osuosl.org> * Move fpm ini management to fpm_pool Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix fpm_conf_dir location on RHEL; minor new properties for fpm_pool resource Signed-off-by: ArtofBugs <oweng@osuosl.org> * Skip Ubuntu 18.04 when installing from community repo Signed-off-by: ArtofBugs <oweng@osuosl.org> * Fix amazonlinux remi installation Signed-off-by: ArtofBugs <oweng@osuosl.org> * Exclude ubuntu-18.04 from community run Signed-off-by: ArtofBugs <oweng@osuosl.org> * Skip Amazon Linux for community install Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove already-symlinked pear binary location Signed-off-by: ArtofBugs <oweng@osuosl.org> * Rename config_spec.rb to ini_spec.rb Signed-off-by: ArtofBugs <oweng@osuosl.org> * Add :remove action to php_ini Signed-off-by: ArtofBugs <oweng@osuosl.org> * Move depends from main metadata.rb to test metadata.rb Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove default recipe Signed-off-by: ArtofBugs <oweng@osuosl.org> * Update documentation Signed-off-by: ArtofBugs <oweng@osuosl.org> * Disable md-link check on README temporarily; rename master branch to main branch in all links Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove all source install Signed-off-by: ArtofBugs <oweng@osuosl.org> * Pin Amazon package versions Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove duplicated comment Signed-off-by: ArtofBugs <oweng@osuosl.org> * Change root_group to just "root" Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove unnecessary helpers code for ext_dir Signed-off-by: ArtofBugs <oweng@osuosl.org> * Change documentation links to be relative Signed-off-by: ArtofBugs <oweng@osuosl.org> * Remove Dangerfile Signed-off-by: ArtofBugs <oweng@osuosl.org> * Use php_version helper instead of case statements in helpers; change php_version to use major-minor only Signed-off-by: ArtofBugs <oweng@osuosl.org> * Update spec tests Signed-off-by: ArtofBugs <oweng@osuosl.org> * Pin amazon php version to 8.2 Signed-off-by: ArtofBugs <oweng@osuosl.org> Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Include helpers in recipes and resources by default Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Add UPGRADING.md Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Add clarifications Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Add attributes conversion table Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Update CHANGELOG Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Remove dead ticket links Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Remove unnecessary helpers Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Add note about version helper format change to major-minor only Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Fix php-xml version from package manager being ahead on ubuntu/debian Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Fix extension location not being found and added to ini Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Get most recent stable version by querying the PEAR REST API since the search command ignores preferred state Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Fix adding channel name to url Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Fix missing trailing pipe in md table Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Search for pear preferred state instead of hardcoding stable Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Update to match kitchen.global.yml supported platforms Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Update versions helper Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> * Update Changelog Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> --------- Signed-off-by: Lance Albertson <lance@osuosl.org> Signed-off-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu> Signed-off-by: ArtofBugs <oweng@osuosl.org> Signed-off-by: ArtofBugs <74070945+ArtofBugs@users.noreply.github.com> Co-authored-by: Abi <91515654+awhittle2@users.noreply.github.com> Co-authored-by: Lance Albertson <lance@osuosl.org> Co-authored-by: ArtofBugs <oweng@scarlet.workstation.cass.oregonstate.edu>
- Loading branch information